g2o
Public Member Functions | Protected Attributes | List of all members
g2o::HyperGraph::DataContainer Class Reference

Container class that implements an interface for adding/removing Data elements in a linked list. More...

#include <hyper_graph.h>

Inheritance diagram for g2o::HyperGraph::DataContainer:
Inheritance graph
[legend]
Collaboration diagram for g2o::HyperGraph::DataContainer:
Collaboration graph
[legend]

Public Member Functions

 DataContainer ()
 
virtual ~DataContainer ()
 
const DatauserData () const
 the user data associated with this vertex More...
 
DatauserData ()
 
void setUserData (Data *obs)
 
void addUserData (Data *obs)
 

Protected Attributes

Data_userData
 

Detailed Description

Container class that implements an interface for adding/removing Data elements in a linked list.

Definition at line 121 of file hyper_graph.h.

Constructor & Destructor Documentation

g2o::HyperGraph::DataContainer::DataContainer ( )
inline

Definition at line 123 of file hyper_graph.h.

virtual g2o::HyperGraph::DataContainer::~DataContainer ( )
inlinevirtual

Definition at line 124 of file hyper_graph.h.

124 { delete _userData;}

Member Function Documentation

void g2o::HyperGraph::DataContainer::addUserData ( Data obs)
inline

Definition at line 129 of file hyper_graph.h.

References g2o::HyperGraph::Data::setNext().

129 { if (obs) { obs->setNext(_userData); _userData=obs; } }
void g2o::HyperGraph::DataContainer::setUserData ( Data obs)
inline
const Data* g2o::HyperGraph::DataContainer::userData ( ) const
inline
Data* g2o::HyperGraph::DataContainer::userData ( )
inline

Definition at line 127 of file hyper_graph.h.

127 { return _userData; }

Member Data Documentation

Data* g2o::HyperGraph::DataContainer::_userData
protected

Definition at line 131 of file hyper_graph.h.


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