|
g2o
|
Two points in a source file. More...
#include <location.hh>

Public Types | |
| typedef position::filename_type | filename_type |
| Type for file name. | |
| typedef position::counter_type | counter_type |
| Type for line and column numbers. | |
Public Member Functions | |
| location (const position &b, const position &e) | |
| Construct a location from b to e. | |
| location (const position &p=position()) | |
| Construct a 0-width location in p. | |
| location (filename_type *f, counter_type l=1, counter_type c=1) | |
| Construct a 0-width location in f, l, c. | |
| void | initialize (filename_type *f=YY_NULLPTR, counter_type l=1, counter_type c=1) |
| Initialization. | |
Line and Column related manipulators | |
| void | step () |
| Reset initial location to final location. | |
| void | columns (counter_type count=1) |
| Extend the current location to the COUNT next columns. | |
| void | lines (counter_type 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. | |
Two points in a source file.
Definition at line 142 of file location.hh.
Type for line and column numbers.
Definition at line 147 of file location.hh.
Type for file name.
Definition at line 145 of file location.hh.
Construct a location from b to e.
Definition at line 150 of file location.hh.
Referenced by SlamParser::Parser::context::location().
Construct a 0-width location in p.
Definition at line 153 of file location.hh.
|
inlineexplicit |
Construct a 0-width location in f, l, c.
Definition at line 156 of file location.hh.
|
inline |
Extend the current location to the COUNT next columns.
Definition at line 173 of file location.hh.
References end.
Referenced by SlamParser::operator+=().
|
inline |
Initialization.
Definition at line 160 of file location.hh.
References begin, end, and SlamParser::position::initialize().
|
inline |
Extend the current location to the COUNT next lines.
Definition at line 176 of file location.hh.
References end, and SlamParser::position::lines().
|
inline |
| position SlamParser::location::begin |
Beginning of the located region.
Definition at line 181 of file location.hh.
Referenced by initialize(), SlamParser::Parser::parse(), and step().
| position SlamParser::location::end |
End of the located region.
Definition at line 183 of file location.hh.
Referenced by columns(), initialize(), lines(), SlamParser::operator+=(), SlamParser::Parser::parse(), and step().