g2o
Public Member Functions | Protected Attributes | List of all members
g2o::Parameter Class Referenceabstract

#include <parameter.h>

Inheritance diagram for g2o::Parameter:
Inheritance graph
[legend]
Collaboration diagram for g2o::Parameter:
Collaboration graph
[legend]

Public Member Functions

 Parameter ()
 
virtual ~Parameter ()
 
virtual bool read (std::istream &is)=0
 read the data from a stream More...
 
virtual bool write (std::ostream &os) const =0
 write the data to a stream More...
 
int id () const
 
void setId (int id_)
 
virtual HyperGraph::HyperGraphElementType elementType () const
 
- Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()
 
HyperGraphElementclone () const
 

Protected Attributes

int _id
 

Detailed Description

Definition at line 36 of file parameter.h.

Constructor & Destructor Documentation

g2o::Parameter::Parameter ( )

Definition at line 31 of file parameter.cpp.

31  : _id(-1)
32  {
33  }
virtual g2o::Parameter::~Parameter ( )
inlinevirtual

Definition at line 40 of file parameter.h.

40 {};

Member Function Documentation

virtual HyperGraph::HyperGraphElementType g2o::Parameter::elementType ( ) const
inlinevirtual

returns the type of the graph element, see HyperGraphElementType

Implements g2o::HyperGraph::HyperGraphElement.

Definition at line 47 of file parameter.h.

References HGET_PARAMETER.

HGET_PARAMETER
Definition: hyper_graph.h:63
int g2o::Parameter::id ( ) const
inline
virtual bool g2o::Parameter::read ( std::istream &  is)
pure virtual
void g2o::Parameter::setId ( int  id_)

Definition at line 35 of file parameter.cpp.

References _id.

Referenced by g2o::World::addParameter(), main(), and g2o::ParameterContainer::read().

36  {
37  _id = id_;
38  }
virtual bool g2o::Parameter::write ( std::ostream &  os) const
pure virtual

Member Data Documentation

int g2o::Parameter::_id
protected

Definition at line 49 of file parameter.h.

Referenced by setId().


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