lestes::lang::cplus::lex::encoder_test< Discriminator > Class Template Reference

Test encoder. More...

Inheritance diagram for lestes::lang::cplus::lex::encoder_test< Discriminator >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ucn_tokenread (void)
 Reads next token.

Static Public Member Functions

static ptr< encoder_test<
Discriminator > > 
create (void)
 Returns new instance.

Protected Member Functions

 encoder_test (void)
 Creates the object.

Private Member Functions

 encoder_test (const encoder_test< Discriminator > &)
 Hides copy constructor.
encoder_test< Discriminator > & operator= (const encoder_test< Discriminator > &)
 Hides assignment operator.

Detailed Description

template<ulint Discriminator>
class lestes::lang::cplus::lex::encoder_test< Discriminator >

Test encoder.

Simple encoder to test the encoder_factory. Returns specific token according to the template parameter.

Parameters:
Discriminator The value to


Constructor & Destructor Documentation

template<ulint Discriminator>
lestes::lang::cplus::lex::encoder_test< Discriminator >::encoder_test< Discriminator > ( void   )  [inline, protected]

Creates the object.

Creates the encoder.

template<ulint Discriminator>
lestes::lang::cplus::lex::encoder_test< Discriminator >::encoder_test ( const encoder_test< Discriminator > &   )  [private]

Hides copy constructor.


Member Function Documentation

template<ulint Discriminator>
ptr< ucn_token > lestes::lang::cplus::lex::encoder_test< Discriminator >::read ( void   )  [inline, virtual]

Reads next token.

Returns token to distinguish instances. The token value corresponds to Discriminator.

Returns:
The token with value set to the discriminator.

Implements lestes::lang::cplus::lex::ucn_filter.

template<ulint Discriminator>
ptr< encoder_test< Discriminator > > lestes::lang::cplus::lex::encoder_test< Discriminator >::create ( void   )  [inline, static]

Returns new instance.

Returns new instance of first type.

Returns:
The new instance.

template<ulint Discriminator>
encoder_test<Discriminator>& lestes::lang::cplus::lex::encoder_test< Discriminator >::operator= ( const encoder_test< Discriminator > &   )  [private]

Hides assignment operator.


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