example::position Class Reference

Abstract a position. More...

#include <position.hh>

List of all members.

Public Member Functions

 position ()
 Construct a position.
void initialize (std::string *fn)
 Initialization.
Line and Column related manipulators
void lines (int count=1)
 (line related) Advance to the COUNT next lines.
void columns (int count=1)
 (column related) Advance to the COUNT next columns.

Public Attributes

std::string * filename
 File name to which this position refers.
unsigned int line
 Current line number.
unsigned int column
 Current column number.


Detailed Description

Abstract a position.

Definition at line 49 of file position.hh.


Constructor & Destructor Documentation

example::position::position (  )  [inline]

Construct a position.

Definition at line 54 of file position.hh.


Member Function Documentation

void example::position::initialize ( std::string *  fn  )  [inline]

Initialization.

Definition at line 60 of file position.hh.

References column, filename, and line.

Referenced by example::location::initialize().

void example::position::lines ( int  count = 1  )  [inline]

(line related) Advance to the COUNT next lines.

Definition at line 71 of file position.hh.

References column, and line.

Referenced by example::location::lines().

void example::position::columns ( int  count = 1  )  [inline]

(column related) Advance to the COUNT next columns.

Definition at line 78 of file position.hh.

References column.

Referenced by example::operator+=().


Member Data Documentation

File name to which this position refers.

Definition at line 91 of file position.hh.

Referenced by initialize(), example::operator<<(), and example::Parser::parse().

Current line number.

Definition at line 93 of file position.hh.

Referenced by initialize(), lines(), and example::operator<<().

Current column number.

Definition at line 95 of file position.hh.

Referenced by columns(), initialize(), lines(), and example::operator<<().


The documentation for this class was generated from the following file:

Generated on Thu Oct 23 11:13:54 2008 for Flex Bison C++ Example by  doxygen 1.5.6