g2o
Public Member Functions | Protected Attributes | List of all members
g2o::HyperGraphElementCreator< T > Class Template Reference

templatized creator class which creates graph elements More...

#include <creators.h>

Inheritance diagram for g2o::HyperGraphElementCreator< T >:
Inheritance graph
[legend]
Collaboration diagram for g2o::HyperGraphElementCreator< T >:
Collaboration graph
[legend]

Public Member Functions

 HyperGraphElementCreator ()
 
HyperGraph::HyperGraphElementconstruct ()
 
virtual const std::string & name () const
 
- Public Member Functions inherited from g2o::AbstractHyperGraphElementCreator
virtual ~AbstractHyperGraphElementCreator ()
 

Protected Attributes

std::string _name
 

Detailed Description

template<typename T>
class g2o::HyperGraphElementCreator< T >

templatized creator class which creates graph elements

Definition at line 60 of file creators.h.

Constructor & Destructor Documentation

template<typename T >
g2o::HyperGraphElementCreator< T >::HyperGraphElementCreator ( )
inline

Definition at line 63 of file creators.h.

63 : _name(typeid(T).name()) {}
virtual const std::string & name() const
Definition: creators.h:68

Member Function Documentation

template<typename T >
HyperGraph::HyperGraphElement* g2o::HyperGraphElementCreator< T >::construct ( )
inlinevirtual

create a hyper graph element. Has to implemented in derived class.

Implements g2o::AbstractHyperGraphElementCreator.

Definition at line 67 of file creators.h.

67 { return new T;}
template<typename T >
virtual const std::string& g2o::HyperGraphElementCreator< T >::name ( ) const
inlinevirtual

name of the class to be created. Has to implemented in derived class.

Implements g2o::AbstractHyperGraphElementCreator.

Definition at line 68 of file creators.h.

68 { return _name;}

Member Data Documentation

template<typename T >
std::string g2o::HyperGraphElementCreator< T >::_name
protected

Definition at line 70 of file creators.h.


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