g2o
Loading...
Searching...
No Matches
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 58 of file creators.h.

Constructor & Destructor Documentation

◆ HyperGraphElementCreator()

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

Definition at line 60 of file creators.h.

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

Member Function Documentation

◆ construct()

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 66 of file creators.h.

66 {
67 return new T;
68 }

◆ name()

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 69 of file creators.h.

69{ return _name; }

References g2o::HyperGraphElementCreator< T >::_name.

Member Data Documentation

◆ _name

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

Definition at line 72 of file creators.h.

Referenced by g2o::HyperGraphElementCreator< T >::name().


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