g2o
Loading...
Searching...
No Matches
g2o::RegisterTypeProxy< T > Class Template Reference

#include <factory.h>

Public Member Functions

 RegisterTypeProxy (const std::string &name)

Private Attributes

std::string _name
std::shared_ptr< AbstractHyperGraphElementCreator > _creator

Detailed Description

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

Definition at line 121 of file factory.h.

Constructor & Destructor Documentation

◆ RegisterTypeProxy()

template<typename T>
g2o::RegisterTypeProxy< T >::RegisterTypeProxy ( const std::string & name)
inline

Definition at line 123 of file factory.h.

123 : _name(name) {
124#ifdef G2O_DEBUG_FACTORY
125 std::cout << __FUNCTION__ << ": Registering " << _name << " of type "
126 << typeid(T).name() << std::endl;
127#endif
130 }
static Factory * instance()
return the instance
Definition factory.cpp:46
void registerType(const std::string &tag, const std::shared_ptr< AbstractHyperGraphElementCreator > &c)
Definition factory.cpp:58
std::string _name
Definition factory.h:133
std::shared_ptr< AbstractHyperGraphElementCreator > _creator
Definition factory.h:134

References _creator, _name, g2o::Factory::instance(), and g2o::Factory::registerType().

Member Data Documentation

◆ _creator

template<typename T>
std::shared_ptr<AbstractHyperGraphElementCreator> g2o::RegisterTypeProxy< T >::_creator
private

Definition at line 134 of file factory.h.

Referenced by RegisterTypeProxy().

◆ _name

template<typename T>
std::string g2o::RegisterTypeProxy< T >::_name
private

Definition at line 133 of file factory.h.

Referenced by RegisterTypeProxy().


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