lestes::lang::cplus::lex::testing_token Class Reference

Testing token. More...

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

lestes::lang::cplus::lex::basic_token< ttype, ptr< loc >, int > lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

ptr< testing_tokenclone (void) const
 Clones the token.

Static Public Member Functions

static ptr< testing_tokencreate (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.

Detailed Description

Testing token.

Template instance to test basic_token.

Definition at line 106 of file basic_token.test.cc.


Constructor & Destructor Documentation

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.

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


Member Function Documentation

ptr< testing_token > lestes::lang::cplus::lex::testing_token::clone ( void   )  const

Clones the token.

Clones the token.

Postcondition:
is_equal(this,returned)
Returns:
New token with equal values.

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.

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


The documentation for this class was generated from the following file:
Generated on Mon Feb 12 18:24:16 2007 for lestes by doxygen 1.5.1-20070107