#include <location.hh>
Public Member Functions | |
location () | |
Construct a location. | |
void | initialize (std::string *fn) |
Initialization. | |
Line and Column related manipulators | |
void | step () |
Reset initial location to final location. | |
void | columns (unsigned int count=1) |
Extend the current location to the COUNT next columns. | |
void | lines (unsigned int count=1) |
Extend the current location to the COUNT next lines. | |
Public Attributes | |
position | begin |
Beginning of the located region. | |
position | end |
End of the located region. |
Definition at line 56 of file location.hh.
example::location::location | ( | ) | [inline] |
void example::location::columns | ( | unsigned int | count = 1 |
) | [inline] |
Extend the current location to the COUNT next columns.
Definition at line 84 of file location.hh.
References end.
Referenced by example::operator+(), and example::operator+=().
void example::location::initialize | ( | std::string * | fn | ) | [inline] |
Initialization.
Definition at line 68 of file location.hh.
References begin, end, and example::position::initialize().
void example::location::lines | ( | unsigned int | count = 1 |
) | [inline] |
Extend the current location to the COUNT next lines.
Definition at line 90 of file location.hh.
References end, and example::position::lines().
void example::location::step | ( | ) | [inline] |
Beginning of the located region.
Definition at line 99 of file location.hh.
Referenced by initialize(), example::operator<<(), example::operator==(), example::Parser::parse(), and step().
End of the located region.
Definition at line 101 of file location.hh.
Referenced by columns(), initialize(), lines(), example::operator+(), example::operator<<(), example::operator==(), example::Parser::parse(), and step().