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 55 of file position.hh.


Constructor & Destructor Documentation

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

Construct a position.

Definition at line 60 of file position.hh.


Member Function Documentation

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

(column related) Advance to the COUNT next columns.

Definition at line 85 of file position.hh.

Referenced by example::operator+=().

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

Initialization.

Definition at line 67 of file position.hh.

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

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

(line related) Advance to the COUNT next lines.

Definition at line 78 of file position.hh.

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


Member Data Documentation

Current column number.

Definition at line 97 of file position.hh.

Referenced by example::operator<<(), and example::operator==().

File name to which this position refers.

Definition at line 93 of file position.hh.

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

Current line number.

Definition at line 95 of file position.hh.

Referenced by example::operator<<(), and example::operator==().


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

Generated on Sat Sep 5 10:26:25 2009 for Flex Bison C++ Example by  doxygen 1.5.9