#include <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. |
Definition at line 49 of file position.hh.
example::position::position | ( | ) | [inline] |
void example::position::initialize | ( | std::string * | fn | ) | [inline] |
Initialization.
Definition at line 60 of file position.hh.
References column, filename, and line.
Referenced by example::location::initialize().
void example::position::lines | ( | int | count = 1 |
) | [inline] |
(line related) Advance to the COUNT next lines.
Definition at line 71 of file position.hh.
Referenced by example::location::lines().
void example::position::columns | ( | int | count = 1 |
) | [inline] |
(column related) Advance to the COUNT next columns.
Definition at line 78 of file position.hh.
References column.
Referenced by example::operator+=().
std::string* example::position::filename |
File name to which this position refers.
Definition at line 91 of file position.hh.
Referenced by initialize(), example::operator<<(), and example::Parser::parse().
unsigned int example::position::line |
Current line number.
Definition at line 93 of file position.hh.
Referenced by initialize(), lines(), and example::operator<<().
unsigned int example::position::column |
Current column number.
Definition at line 95 of file position.hh.
Referenced by columns(), initialize(), lines(), and example::operator<<().