CPP_String_Token_Source Class Reference

#include <cpp_token_stream.h>

Inheritance diagram for CPP_String_Token_Source:
Inheritance graph
[legend]
Collaboration diagram for CPP_String_Token_Source:
Collaboration graph
[legend]

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
CPP_Token_Stream
< std::string::const_iterator
stream_
 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

Parameters:
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

Parameters:
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