fipa_acl  1.4
Classes | Public Types | Public Member Functions | List of all members
convertToCharVectorImpl Struct Reference

#include <grammar_common.h>

Classes

struct  result
 

Public Types

typedef std::vector< unsigned
char > 
result_type
 

Public Member Functions

template<typename T >
result_type operator() (T arg) const
 

Detailed Description

Convert types to vector of characters

Definition at line 417 of file grammar_common.h.

Member Typedef Documentation

typedef std::vector<unsigned char> convertToCharVectorImpl::result_type

Definition at line 419 of file grammar_common.h.

Member Function Documentation

template<typename T >
result_type convertToCharVectorImpl::operator() ( arg) const
inline

Definition at line 428 of file grammar_common.h.

429  {
430  int length = arg.size();
431  std::vector<unsigned char> tmp;
432 
433  for(int i = 0; i < length; i++)
434  {
435  tmp.push_back((unsigned char) arg[i]);
436 
437  }
438  return tmp;
439  }

The documentation for this struct was generated from the following file: