lestes::lang::cplus::lex::line_numbers Class Reference

Token numbering filter. More...

#include <line_numbers.hh>

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

Inheritance graph
[legend]
List of all members.

Public Types

typedef ulint count_type
 Common type for counting tokens.

Public Member Functions

ptr< ucn_tokenread (void)
 Reads next token from input.

Static Public Member Functions

static ptr< line_numberscreate (void)
 Returns new instance, initialize with first row and column.

Protected Member Functions

 line_numbers (void)
 Creates the object, initializes with first row and column.

Private Member Functions

 line_numbers (const line_numbers &)
 Hides copy constructor.
line_numbersoperator= (const line_numbers &)
 Hides assignment operator.

Private Attributes

count_type line
 Line of the coming token.
count_type column
 Column of the coming token.

Detailed Description

Token numbering filter.

Performs assignment of relative line numbers and columns to tokens.


Member Typedef Documentation

typedef ulint lestes::lang::cplus::lex::line_numbers::count_type

Common type for counting tokens.


Constructor & Destructor Documentation

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

Creates the object, initializes with first row and column.

Creates the object, initializes with first line and column.

Postcondition:
line == 1

column == 1

lestes::lang::cplus::lex::line_numbers::line_numbers ( const line_numbers  )  [private]

Hides copy constructor.


Member Function Documentation

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

Reads next token from input.

Reads next token, assigns line and column numbers. The line number is relative to the physical start of the file. It does not reflect the line directives yet.

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

ptr< line_numbers > lestes::lang::cplus::lex::line_numbers::create ( void   )  [static]

Returns new instance, initialize with first row and column.

Returns new instance.

Returns:
New instance of this class.

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

Hides assignment operator.


Member Data Documentation

count_type lestes::lang::cplus::lex::line_numbers::line [private]

Line of the coming token.

count_type lestes::lang::cplus::lex::line_numbers::column [private]

Column of the coming token.


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