g2o
Loading...
Searching...
No Matches
SlamParser::AddNode Class Reference

#include <commands.h>

Inheritance diagram for SlamParser::AddNode:
Collaboration diagram for SlamParser::AddNode:

Public Member Functions

 AddNode (const std::string &tag, int id, int dimension, const std::vector< double > &values=std::vector< double >())
int id () const
int dimension () const
const std::vector< double > & values ()
Public Member Functions inherited from SlamParser::CommandNode
 CommandNode (CommandType commandType, const std::string &tag)
virtual ~CommandNode ()
CommandType commandType () const
const std::string & tag () const

Protected Attributes

int _id
int _dimension
std::vector< double > _values
Protected Attributes inherited from SlamParser::CommandNode
CommandType _commandType
std::string _tag

Detailed Description

Definition at line 56 of file commands.h.

Constructor & Destructor Documentation

◆ AddNode()

SlamParser::AddNode::AddNode ( const std::string & tag,
int id,
int dimension,
const std::vector< double > & values = std::vector<double>() )
inline

Definition at line 58 of file commands.h.

61 _id(id),
63 _values(values) {}
const std::vector< double > & values()
Definition commands.h:67
int dimension() const
Definition commands.h:66
std::vector< double > _values
Definition commands.h:72
CommandNode(CommandType commandType, const std::string &tag)
Definition commands.h:45
const std::string & tag() const
Definition commands.h:49
@ CT_ADD_NODE
Definition commands.h:36

References _dimension, _id, _values, SlamParser::CommandNode::CommandNode(), SlamParser::CT_ADD_NODE, dimension(), id(), SlamParser::CommandNode::tag(), and values().

Member Function Documentation

◆ dimension()

int SlamParser::AddNode::dimension ( ) const
inline

Definition at line 66 of file commands.h.

66{ return _dimension; }

References _dimension.

Referenced by AddNode(), and SlamParser::SlamContextInterface::process().

◆ id()

int SlamParser::AddNode::id ( ) const
inline

Definition at line 65 of file commands.h.

65{ return _id; }

References _id.

Referenced by AddNode(), and SlamParser::SlamContextInterface::process().

◆ values()

const std::vector< double > & SlamParser::AddNode::values ( )
inline

Definition at line 67 of file commands.h.

67{ return _values; }

References _values.

Referenced by AddNode(), and SlamParser::SlamContextInterface::process().

Member Data Documentation

◆ _dimension

int SlamParser::AddNode::_dimension
protected

Definition at line 71 of file commands.h.

Referenced by AddNode(), and dimension().

◆ _id

int SlamParser::AddNode::_id
protected

Definition at line 70 of file commands.h.

Referenced by AddNode(), and id().

◆ _values

std::vector<double> SlamParser::AddNode::_values
protected

Definition at line 72 of file commands.h.

Referenced by AddNode(), and values().


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