Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
yy::position Class Reference

Abstract a position. More...

#include <position.hh>

Public Member Functions

 position (std::string *f=YY_NULL, unsigned int l=1u, unsigned int c=1u)
 Construct a position. More...
 
void initialize (std::string *fn=YY_NULL, unsigned int l=1u, unsigned int c=1u)
 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.

Definition at line 59 of file position.hh.

Constructor & Destructor Documentation

yy::position::position ( std::string *  f = YY_NULL,
unsigned int  l = 1u,
unsigned int  c = 1u 
)
inlineexplicit

Construct a position.

Definition at line 64 of file position.hh.

Member Function Documentation

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

(column related) Advance to the COUNT next columns.

Definition at line 94 of file position.hh.

void yy::position::initialize ( std::string *  fn = YY_NULL,
unsigned int  l = 1u,
unsigned int  c = 1u 
)
inline

Initialization.

Definition at line 75 of file position.hh.

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

(line related) Advance to the COUNT next lines.

Definition at line 87 of file position.hh.

Member Data Documentation

unsigned int yy::position::column

Current column number.

Definition at line 105 of file position.hh.

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

File name to which this position refers.

Definition at line 101 of file position.hh.

unsigned int yy::position::line

Current line number.

Definition at line 103 of file position.hh.


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