Abstract a position. More...
#include <eltlparse/position.hh>
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. |
Abstract a position.
eltlyy::position::position | ( | ) | [inline] |
Construct a position.
void eltlyy::position::columns | ( | int | count = 1 |
) | [inline] |
(column related) Advance to the COUNT next columns.
References column.
Referenced by eltlyy::operator+=().
void eltlyy::position::initialize | ( | std::string * | fn | ) | [inline] |
void eltlyy::position::lines | ( | int | count = 1 |
) | [inline] |
unsigned int eltlyy::position::column |
Current column number.
Referenced by columns(), initialize(), lines(), eltlyy::operator<<(), and eltlyy::operator==().
std::string* eltlyy::position::filename |
File name to which this position refers.
Referenced by initialize(), eltlyy::operator<<(), and eltlyy::operator==().
unsigned int eltlyy::position::line |
Current line number.
Referenced by initialize(), lines(), eltlyy::operator<<(), and eltlyy::operator==().