CPP_String_Token_Source Class Reference

#include <cpp_token_stream.h>

Inheritance diagram for CPP_String_Token_Source:
Inheritance graph
Collaboration diagram for CPP_String_Token_Source:
Collaboration graph

List of all members.

Public Member Functions

 CPP_String_Token_Source (std::string s)
void operator() (CPP_Token &token)
 read the next token from the string

Private Attributes

std::string copy_
 copy of string being parsed
< std::string::const_iterator
 token stream pointing to this string

Detailed Description

Definition at line 1302 of file cpp_token_stream.h.

Constructor & Destructor Documentation

CPP_String_Token_Source ( std::string  s  ) 

Construct a token source (ie source of multiple tokens) from a string

s is the string to convert into a sequence of tokens

Definition at line 1312 of file cpp_token_stream.h.

Member Function Documentation

void operator() ( CPP_Token token  )  [virtual]

read the next token from the string

token is the token parsed from the string (one of many)

Implements CPP_Token_Source.

Definition at line 1322 of file cpp_token_stream.h.

Member Data Documentation

std::string copy_ [private]

copy of string being parsed

Definition at line 1306 of file cpp_token_stream.h.

token stream pointing to this string

Definition at line 1308 of file cpp_token_stream.h.

The documentation for this class was generated from the following file:
Generated on Wed Feb 29 22:52:43 2012 for CXXUtilities by  doxygen 1.6.3