g2o
Loading...
Searching...
No Matches
g2o::HyperGraph::Data Class Referenceabstract

data packet for a vertex. Extend this class to store in the vertices the potential additional information you need (e.g. images, laser scans, ...). More...

#include <hyper_graph.h>

Inheritance diagram for g2o::HyperGraph::Data:
Collaboration diagram for g2o::HyperGraph::Data:

Public Member Functions

 Data ()
 ~Data ()
virtual bool read (std::istream &is)=0
 read the data from a stream
virtual bool write (std::ostream &os) const =0
 write the data to a stream
virtual HyperGraph::HyperGraphElementType elementType () const
const Data * next () const
Data * next ()
void setNext (Data *next_)
DataContainer * dataContainer ()
const DataContainer * dataContainer () const
void setDataContainer (DataContainer *dataContainer_)
Public Member Functions inherited from g2o::HyperGraph::HyperGraphElement
virtual ~HyperGraphElement ()

Protected Attributes

Data * _next
DataContainer * _dataContainer

Detailed Description

data packet for a vertex. Extend this class to store in the vertices the potential additional information you need (e.g. images, laser scans, ...).

Definition at line 93 of file hyper_graph.h.

Constructor & Destructor Documentation

◆ Data()

g2o::HyperGraph::Data::Data ( )

Definition at line 39 of file hyper_graph.cpp.

References _dataContainer, and _next.

Referenced by next(), next(), g2o::RobotData::RobotData(), and setNext().

◆ ~Data()

g2o::HyperGraph::Data::~Data ( )

Definition at line 44 of file hyper_graph.cpp.

References _next.

Member Function Documentation

◆ dataContainer() [1/2]

DataContainer * g2o::HyperGraph::Data::dataContainer ( )
inline

Definition at line 107 of file hyper_graph.h.

References _dataContainer.

◆ dataContainer() [2/2]

const DataContainer * g2o::HyperGraph::Data::dataContainer ( ) const
inline

Definition at line 108 of file hyper_graph.h.

References _dataContainer.

◆ elementType()

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

returns the type of the graph element, see HyperGraphElementType

Implements g2o::HyperGraph::HyperGraphElement.

Definition at line 101 of file hyper_graph.h.

◆ next() [1/2]

Data * g2o::HyperGraph::Data::next ( )
inline

Definition at line 105 of file hyper_graph.h.

References _next, and Data().

◆ next() [2/2]

const Data * g2o::HyperGraph::Data::next ( ) const
inline

Definition at line 104 of file hyper_graph.h.

References _next, and Data().

Referenced by g2o::OptimizableGraph::saveUserData().

◆ read()

virtual bool g2o::HyperGraph::Data::read ( std::istream & is)
pure virtual

read the data from a stream

Implemented in g2o::RawLaser, g2o::RobotLaser, g2o::VertexEllipse, and g2o::VertexTag.

◆ setDataContainer()

void g2o::HyperGraph::Data::setDataContainer ( DataContainer * dataContainer_)
inline

Definition at line 109 of file hyper_graph.h.

References _dataContainer.

◆ setNext()

void g2o::HyperGraph::Data::setNext ( Data * next_)
inline

Definition at line 106 of file hyper_graph.h.

References _next, and Data().

Referenced by g2o::HyperGraph::DataContainer::addUserData().

◆ write()

virtual bool g2o::HyperGraph::Data::write ( std::ostream & os) const
pure virtual

Member Data Documentation

◆ _dataContainer

DataContainer* g2o::HyperGraph::Data::_dataContainer
protected

Definition at line 115 of file hyper_graph.h.

Referenced by Data(), dataContainer(), dataContainer(), and setDataContainer().

◆ _next

Data* g2o::HyperGraph::Data::_next
protected

Definition at line 114 of file hyper_graph.h.

Referenced by Data(), next(), next(), setNext(), and ~Data().


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