torc::generic::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 54 of file position.hh.


Constructor & Destructor Documentation

torc::generic::position::position (  )  [inline]

Construct a position.

Definition at line 59 of file position.hh.


Member Function Documentation

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

Initialization.

Definition at line 66 of file position.hh.

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

(line related) Advance to the COUNT next lines.

Definition at line 77 of file position.hh.

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

(column related) Advance to the COUNT next columns.

Definition at line 84 of file position.hh.


Member Data Documentation

File name to which this position refers.

Definition at line 92 of file position.hh.

Current line number.

Definition at line 94 of file position.hh.

Current column number.

Definition at line 96 of file position.hh.


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

Generated on Thu Oct 13 16:50:42 2011 for TORC by  doxygen 1.5.6