g2o
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 More...
 
virtual bool write (std::ostream &os) const =0
 write the data to a stream More...
 
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 ()
 
HyperGraphElementclone () const
 

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 97 of file hyper_graph.h.

Constructor & Destructor Documentation

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

Definition at line 34 of file hyper_graph.cpp.

References _dataContainer, and _next.

34  {
35  _next = 0;
36  _dataContainer = 0;
37  }
DataContainer * _dataContainer
Definition: hyper_graph.h:114
g2o::HyperGraph::Data::~Data ( )

Definition at line 39 of file hyper_graph.cpp.

References _next.

39  {
40  delete _next;
41  }

Member Function Documentation

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

Definition at line 109 of file hyper_graph.h.

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

109 { return _dataContainer;}
DataContainer * _dataContainer
Definition: hyper_graph.h:114
const DataContainer* g2o::HyperGraph::Data::dataContainer ( ) const
inline

Definition at line 110 of file hyper_graph.h.

110 { return _dataContainer;}
DataContainer * _dataContainer
Definition: hyper_graph.h:114
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 105 of file hyper_graph.h.

References HGET_DATA.

105 { return HyperGraph::HGET_DATA;}
HGET_DATA
Definition: hyper_graph.h:63
const Data* g2o::HyperGraph::Data::next ( ) const
inline
Data* g2o::HyperGraph::Data::next ( )
inline

Definition at line 107 of file hyper_graph.h.

107 {return _next;}
virtual bool g2o::HyperGraph::Data::read ( std::istream &  is)
pure virtual

read the data from a stream

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

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

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

Definition at line 111 of file hyper_graph.h.

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

111 { _dataContainer = dataContainer_;}
DataContainer * _dataContainer
Definition: hyper_graph.h:114
void g2o::HyperGraph::Data::setNext ( Data next_)
inline

Definition at line 108 of file hyper_graph.h.

Referenced by g2o::HyperGraph::DataContainer::addUserData(), and g2o::OptimizableGraph::setFixed().

108 { _next = next_; }
virtual bool g2o::HyperGraph::Data::write ( std::ostream &  os) const
pure virtual

Member Data Documentation

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

Definition at line 114 of file hyper_graph.h.

Referenced by Data().

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

Definition at line 113 of file hyper_graph.h.

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


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