#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 50 of file location.hh.
example::location::location | ( | ) | [inline] |
void example::location::initialize | ( | std::string * | fn | ) | [inline] |
Initialization.
Definition at line 61 of file location.hh.
References begin, end, and example::position::initialize().
void example::location::step | ( | ) | [inline] |
void example::location::columns | ( | unsigned int | count = 1 |
) | [inline] |
Extend the current location to the COUNT next columns.
Definition at line 77 of file location.hh.
References end.
Referenced by example::operator+(), and example::operator+=().
void example::location::lines | ( | unsigned int | count = 1 |
) | [inline] |
Extend the current location to the COUNT next lines.
Definition at line 83 of file location.hh.
References end, and example::position::lines().
Beginning of the located region.
Definition at line 92 of file location.hh.
Referenced by initialize(), example::operator<<(), example::Parser::parse(), and step().
End of the located region.
Definition at line 94 of file location.hh.
Referenced by columns(), initialize(), lines(), example::operator+(), example::operator<<(), example::Parser::parse(), and step().