lestes::lang::cplus::lex::ucn_filter Class Reference

Token filter. More...

#include <ucn_filter.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void input_set (const ptr< ucn_filter > &a_input)
 Sets the input coming into filter.
virtual ptr< ucn_filterinput_get (void) const
 Returns input coming into filter.
virtual ptr< ucn_tokenread (void) override
 Reads single token from the filter.

Protected Member Functions

 ucn_filter (void)
 Creates new object, initializes with no input.
ptr< ucn_tokeninput_read (void)
 Reads single token from input.
virtual void gc_mark (void)
 Marks the object.

Private Member Functions

 ucn_filter (const ucn_filter &copy)
 Hides copy constructor.
ucn_filteroperator= (const ucn_filter &rhs)
 Hides assignment operator.

Private Attributes

srp< ucn_filterinput
 Input into this filter.

Detailed Description

Token filter.

Represents filter of one-character tokens.


Constructor & Destructor Documentation

lestes::lang::cplus::lex::ucn_filter::ucn_filter ( void   )  [protected]

Creates new object, initializes with no input.

Creates new filter with no input.

Postcondition:
input == NULL

lestes::lang::cplus::lex::ucn_filter::ucn_filter ( const ucn_filter copy  )  [private]

Hides copy constructor.


Member Function Documentation

void lestes::lang::cplus::lex::ucn_filter::input_set ( const ptr< ucn_filter > &  a_input  )  [virtual]

Sets the input coming into filter.

Sets input into this filter.

Parameters:
a_input The new input.

ptr< ucn_filter > lestes::lang::cplus::lex::ucn_filter::input_get ( void   )  const [virtual]

Returns input coming into filter.

Returns current input into the filter.

Returns:
The current input.

virtual ptr<ucn_token> lestes::lang::cplus::lex::ucn_filter::read ( void   )  [pure virtual]

Reads single token from the filter.

Implemented in lestes::lang::cplus::lex::encoder_ascii7, lestes::lang::cplus::lex::encoder_test< Discriminator >, lestes::lang::cplus::lex::encoder_host, lestes::lang::cplus::lex::encoder_utf8, lestes::lang::cplus::lex::line_join, lestes::lang::cplus::lex::line_numbers, lestes::lang::cplus::lex::special_tokens, lestes::lang::cplus::lex::stream_source, lestes::lang::cplus::lex::string_source, and lestes::lang::cplus::lex::trigraphs.

ptr< ucn_token > lestes::lang::cplus::lex::ucn_filter::input_read ( void   )  [inline, protected]

Reads single token from input.

Reads next token from input into this filter.

Precondition:
input != NULL
Returns:
Next token from input.

void lestes::lang::cplus::lex::ucn_filter::gc_mark ( void   )  [protected, virtual]

Marks the object.

Marks the object.

Reimplemented from lestes::std::mem::keystone.

Reimplemented in lestes::lang::cplus::lex::encoder_ascii7, lestes::lang::cplus::lex::encoder_host, lestes::lang::cplus::lex::encoder_utf8, lestes::lang::cplus::lex::line_join, lestes::lang::cplus::lex::special_tokens, lestes::lang::cplus::lex::stream_source, and lestes::lang::cplus::lex::trigraphs.

ucn_filter& lestes::lang::cplus::lex::ucn_filter::operator= ( const ucn_filter rhs  )  [private]

Hides assignment operator.


Member Data Documentation

srp<ucn_filter> lestes::lang::cplus::lex::ucn_filter::input [private]

Input into this filter.


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