Inheritance diagram for lestes::lang::cplus::lex::testing_token:

Public Member Functions | |
| ptr< testing_token > | clone (void) const |
| Clones the token. | |
Static Public Member Functions | |
| static ptr< testing_token > | create (const location_type &a_location, const type_type &a_type, const value_type &a_value) |
| Returns new token. | |
Protected Member Functions | |
| testing_token (const location_type &a_location, const type_type &a_type, const value_type &a_value) | |
| Creates new token. | |
Template instance to test basic_token.
Definition at line 106 of file basic_token.test.cc.
| lestes::lang::cplus::lex::testing_token::testing_token | ( | const location_type & | a_location, | |
| const type_type & | a_type, | |||
| const value_type & | a_value | |||
| ) | [protected] |
Creates new token.
Creates new token, initializes all fields.
| a_location | The initial location. | |
| a_type | The initial token type. | |
| a_value | The initial token value. |
Definition at line 125 of file basic_token.test.cc.
Referenced by clone(), and create().
00126 : 00127 basic_testing_token(a_location,a_type,a_value) 00128 { 00129 }
| ptr< testing_token > lestes::lang::cplus::lex::testing_token::clone | ( | void | ) | const |
Clones the token.
Clones the token.
Definition at line 136 of file basic_token.test.cc.
References lestes::lang::cplus::lex::basic_token< ttype, ptr< loc >, int >::location_get(), testing_token(), lestes::lang::cplus::lex::basic_token< ttype, ptr< loc >, int >::type_get(), and lestes::lang::cplus::lex::basic_token< ttype, ptr< loc >, int >::value_get().
00137 { 00138 return new testing_token(location_get(),type_get(),value_get()); 00139 }
| ptr< testing_token > lestes::lang::cplus::lex::testing_token::create | ( | const location_type & | a_location, | |
| const type_type & | a_type, | |||
| const value_type & | a_value | |||
| ) | [static] |
Returns new token.
Creates new token, initializes all fields.
| a_location | The initial location. | |
| a_type | The initial token type. | |
| a_value | The initial token value. |
Definition at line 147 of file basic_token.test.cc.
References testing_token().
Referenced by lestes::lang::cplus::lex::basic_token_test().
00149 { 00150 return new testing_token(a_location,a_type,a_value); 00151 }
1.5.1-20070107