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

#include <factory.h>

Public Member Functions

 RegisterTypeProxy (const std::string &name)
 
 ~RegisterTypeProxy ()
 

Private Attributes

std::string _name
 

Detailed Description

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

Definition at line 131 of file factory.h.

Constructor & Destructor Documentation

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

Definition at line 134 of file factory.h.

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

134  : _name(name)
135  {
136 #ifdef G2O_DEBUG_FACTORY
137  std::cout << __FUNCTION__ << ": Registering " << _name << " of type " << typeid(T).name() << std::endl;
138 #endif
139  Factory::instance()->registerType(_name, new HyperGraphElementCreator<T>());
140  }
static Factory * instance()
return the instance
Definition: factory.cpp:61
std::string _name
Definition: factory.h:151
void registerType(const std::string &tag, AbstractHyperGraphElementCreator *c)
Definition: factory.cpp:73
template<typename T >
g2o::RegisterTypeProxy< T >::~RegisterTypeProxy ( )
inline

Definition at line 142 of file factory.h.

References g2o::Factory::instance(), and g2o::Factory::unregisterType().

143  {
144 #ifdef G2O_DEBUG_FACTORY
145  std::cout << __FUNCTION__ << ": Unregistering " << _name << " of type " << typeid(T).name() << std::endl;
146 #endif
148  }
static Factory * instance()
return the instance
Definition: factory.cpp:61
std::string _name
Definition: factory.h:151
void unregisterType(const std::string &tag)
Definition: factory.cpp:128

Member Data Documentation

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

Definition at line 151 of file factory.h.


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