spot  0.8.3
Public Member Functions | Public Attributes
sautyy::position Class Reference

Abstract a position. More...

#include <sautparse/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.


Constructor & Destructor Documentation

Construct a position.


Member Function Documentation

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

(column related) Advance to the COUNT next columns.

References column.

Referenced by sautyy::operator+=().

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

Initialization.

References column, filename, and line.

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

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

(line related) Advance to the COUNT next lines.

References column, and line.

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


Member Data Documentation

Current column number.

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

File name to which this position refers.

Referenced by initialize(), and sautyy::operator<<().

unsigned int sautyy::position::line

Current line number.

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


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 Mar 9 2012 13:52:10 for spot by doxygen 1.7.6.1