g2o
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for g2o::HyperGraph::Data:
Collaboration graph
[legend]

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 Datanext () const
 
Datanext ()
 
void setNext (Data *next_)
 
DataContainerdataContainer ()
 
const DataContainerdataContainer () 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.

39 {
40 _next = 0;
42}
DataContainer * _dataContainer

References _dataContainer, and _next.

◆ ~Data()

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

Definition at line 44 of file hyper_graph.cpp.

44{ delete _next; }

Member Function Documentation

◆ dataContainer() [1/2]

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

Definition at line 107 of file hyper_graph.h.

107{ return _dataContainer; }

◆ dataContainer() [2/2]

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

Definition at line 108 of file hyper_graph.h.

108{ return _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.

101 {
102 return HyperGraph::HGET_DATA;
103 }

◆ next() [1/2]

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

Definition at line 105 of file hyper_graph.h.

105{ return _next; }

◆ next() [2/2]

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

Definition at line 104 of file hyper_graph.h.

104{ return _next; }

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.

109 {
110 _dataContainer = dataContainer_;
111 }

◆ setNext()

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

Definition at line 106 of file hyper_graph.h.

106{ _next = next_; }

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().

◆ _next

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

Definition at line 114 of file hyper_graph.h.

Referenced by Data().


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