g2o
Public Member Functions | Public Attributes | List of all members
SlamParser::location Class Reference

Abstract a location. More...

#include <location.hh>

Collaboration diagram for SlamParser::location:
Collaboration graph
[legend]

Public Member Functions

 location ()
 Construct a location. More...
 
void initialize (std::string *fn)
 Initialization. More...
 
Line and Column related manipulators
void step ()
 Reset initial location to final location. More...
 
void columns (unsigned int count=1)
 Extend the current location to the COUNT next columns. More...
 
void lines (unsigned int count=1)
 Extend the current location to the COUNT next lines. More...
 

Public Attributes

position begin
 Beginning of the located region. More...
 
position end
 End of the located region. More...
 

Detailed Description

Abstract a location.

Definition at line 56 of file location.hh.

Constructor & Destructor Documentation

SlamParser::location::location ( )
inline

Construct a location.

Definition at line 61 of file location.hh.

62  : begin (), end ()
63  {
64  }
position begin
Beginning of the located region.
Definition: location.hh:99
position end
End of the located region.
Definition: location.hh:101

Member Function Documentation

void SlamParser::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 SlamParser::operator+(), and SlamParser::operator+=().

85  {
86  end += count;
87  }
position end
End of the located region.
Definition: location.hh:101
void SlamParser::location::initialize ( std::string *  fn)
inline

Initialization.

Definition at line 68 of file location.hh.

References begin, end, and SlamParser::position::initialize().

69  {
70  begin.initialize (fn);
71  end = begin;
72  }
position begin
Beginning of the located region.
Definition: location.hh:99
void initialize(std::string *fn)
Initialization.
Definition: position.hh:67
position end
End of the located region.
Definition: location.hh:101
void SlamParser::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 SlamParser::position::lines().

91  {
92  end.lines (count);
93  }
void lines(int count=1)
(line related) Advance to the COUNT next lines.
Definition: position.hh:78
position end
End of the located region.
Definition: location.hh:101
void SlamParser::location::step ( )
inline

Reset initial location to final location.

Definition at line 78 of file location.hh.

References begin, and end.

79  {
80  begin = end;
81  }
position begin
Beginning of the located region.
Definition: location.hh:99
position end
End of the located region.
Definition: location.hh:101

Member Data Documentation

position SlamParser::location::begin

Beginning of the located region.

Definition at line 99 of file location.hh.

Referenced by initialize(), SlamParser::operator+(), SlamParser::operator<<(), SlamParser::operator==(), SlamParser::Parser::parse(), and step().

position SlamParser::location::end

The documentation for this class was generated from the following file: