|
g2o
|
A point in a source file. More...
#include <location.hh>
Public Types | |
| typedef const std::string | filename_type |
| Type for file name. | |
| typedef int | counter_type |
| Type for line and column numbers. | |
Public Member Functions | |
| position (filename_type *f=YY_NULLPTR, counter_type l=1, counter_type c=1) | |
| Construct a position. | |
| void | initialize (filename_type *fn=YY_NULLPTR, counter_type l=1, counter_type c=1) |
| Initialization. | |
Line and Column related manipulators | |
| void | lines (counter_type count=1) |
| (line related) Advance to the COUNT next lines. | |
| void | columns (counter_type count=1) |
| (column related) Advance to the COUNT next columns. | |
Public Attributes | |
| filename_type * | filename |
| File name to which this position refers. | |
| counter_type | line |
| Current line number. | |
| counter_type | column |
| Current column number. | |
Static Private Member Functions | |
| static counter_type | add_ (counter_type lhs, counter_type rhs, counter_type min) |
| Compute max (min, lhs+rhs). | |
A point in a source file.
Definition at line 60 of file location.hh.
| typedef int SlamParser::position::counter_type |
Type for line and column numbers.
Definition at line 65 of file location.hh.
| typedef const std::string SlamParser::position::filename_type |
Type for file name.
Definition at line 63 of file location.hh.
|
inlineexplicit |
Construct a position.
Definition at line 68 of file location.hh.
|
inlinestaticprivate |
Compute max (min, lhs+rhs).
Definition at line 103 of file location.hh.
|
inline |
(column related) Advance to the COUNT next columns.
Definition at line 91 of file location.hh.
References add_(), and column.
Referenced by SlamParser::operator+=().
|
inline |
Initialization.
Definition at line 73 of file location.hh.
References column, filename, and line.
Referenced by SlamParser::location::initialize().
|
inline |
(line related) Advance to the COUNT next lines.
Definition at line 83 of file location.hh.
References add_(), column, and line.
Referenced by SlamParser::location::lines().
| counter_type SlamParser::position::column |
Current column number.
Definition at line 99 of file location.hh.
Referenced by columns(), initialize(), and lines().
| filename_type* SlamParser::position::filename |
File name to which this position refers.
Definition at line 95 of file location.hh.
Referenced by initialize(), and SlamParser::Parser::parse().
| counter_type SlamParser::position::line |
Current line number.
Definition at line 97 of file location.hh.
Referenced by initialize(), and lines().