spot
1.2.6
|
Abstract a position. More...
#include <tgbaparse/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... | |
Abstract a position.
|
inlineexplicit |
Construct a position.
|
inline |
(column related) Advance to the COUNT next columns.
References column.
|
inline |
Initialization.
References column, filename, and line.
Referenced by tgbayy::location::initialize().
|
inline |
(line related) Advance to the COUNT next lines.
Referenced by tgbayy::location::lines().
unsigned int tgbayy::position::column |
Current column number.
Referenced by columns(), and initialize().
std::string* tgbayy::position::filename |
File name to which this position refers.
Referenced by initialize().
unsigned int tgbayy::position::line |
Current line number.
Referenced by initialize().