#include <cpp_token_stream.h>
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 |
Definition at line 1302 of file cpp_token_stream.h.
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.
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.
std::string copy_ [private] |
copy of string being parsed
Definition at line 1306 of file cpp_token_stream.h.
CPP_Token_Stream<std::string::const_iterator> stream_ [private] |
token stream pointing to this string
Definition at line 1308 of file cpp_token_stream.h.