Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

yy::position Class Reference

Abstract a position. More...

#include <ltlparse/position.hh>

List of all members.

Public Member Functions

Ctor & dtor.
 position ()
 Construct a position.
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.

Static Public Attributes

static const unsigned int initial_column = 0
 Initial column number.
static const unsigned int initial_line = 1
 Initial line number.


Detailed Description

Abstract a position.


Constructor & Destructor Documentation

yy::position::position  )  [inline]
 

Construct a position.


Member Function Documentation

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

(column related) Advance to the COUNT next columns.

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

(line related) Advance to the COUNT next lines.


Member Data Documentation

unsigned int yy::position::column
 

Current column number.

std::string* yy::position::filename
 

File name to which this position refers.

const unsigned int yy::position::initial_column = 0 [static]
 

Initial column number.

const unsigned int yy::position::initial_line = 1 [static]
 

Initial line number.

unsigned int yy::position::line
 

Current line number.


The documentation for this class was generated from the following file:
Please comment this page and report errors about it on the RefDocComments page.
Generated on Fri Apr 8 21:21:24 2005 for spot by doxygen 1.4.0