spot  1.1.2
Public Member Functions | Public Attributes | List of all members
neverclaimyy::position Class Reference

Abstract a position. More...

#include <neverparse/position.hh>

Collaboration diagram for neverclaimyy::position:
Collaboration graph

Public Member Functions

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

Public Attributes

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

Detailed Description

Abstract a position.

Constructor & Destructor Documentation

neverclaimyy::position::position ( )
inline

Construct a position.

Member Function Documentation

void neverclaimyy::position::columns ( int  count = 1)
inline

(column related) Advance to the COUNT next columns.

References column.

void neverclaimyy::position::initialize ( std::string *  fn)
inline

Initialization.

References column, filename, and line.

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

void neverclaimyy::position::lines ( int  count = 1)
inline

(line related) Advance to the COUNT next lines.

References column, and line.

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

Member Data Documentation

unsigned int neverclaimyy::position::column

Current column number.

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

std::string* neverclaimyy::position::filename

File name to which this position refers.

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

unsigned int neverclaimyy::position::line

Current line number.

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


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

Please direct any question, comment, or bug report to the Spot mailing list at spot@lrde.epita.fr.
Generated on Sun Jun 9 2013 18:11:07 for spot by doxygen 1.8.4