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