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

#include <hyper_graph_action.h>

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

Public Member Functions

 RegisterActionProxy ()
 
 ~RegisterActionProxy ()
 

Private Attributes

HyperGraphElementAction_action
 

Detailed Description

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

Definition at line 198 of file hyper_graph_action.h.

Constructor & Destructor Documentation

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

Definition at line 201 of file hyper_graph_action.h.

References g2o::HyperGraphActionLibrary::instance(), and g2o::HyperGraphActionLibrary::registerAction().

202  {
203 #ifdef G2O_DEBUG_ACTIONLIB
204  std::cout << __FUNCTION__ << ": Registering action of type " << typeid(T).name() << std::endl;
205 #endif
206  _action = new T();
208  }
static HyperGraphActionLibrary * instance()
return the single instance of the HyperGraphActionLibrary
bool registerAction(HyperGraphElementAction *action)
HyperGraphElementAction * _action
template<typename T >
g2o::RegisterActionProxy< T >::~RegisterActionProxy ( )
inline

Definition at line 210 of file hyper_graph_action.h.

References g2o::HyperGraphActionLibrary::instance(), and g2o::HyperGraphActionLibrary::unregisterAction().

211  {
212 #ifdef G2O_DEBUG_ACTIONLIB
213  std::cout << __FUNCTION__ << ": Unregistering action of type " << typeid(T).name() << std::endl;
214 #endif
216  delete _action;
217  }
static HyperGraphActionLibrary * instance()
return the single instance of the HyperGraphActionLibrary
HyperGraphElementAction * _action
bool unregisterAction(HyperGraphElementAction *action)

Member Data Documentation

template<typename T >
HyperGraphElementAction* g2o::RegisterActionProxy< T >::_action
private

Definition at line 220 of file hyper_graph_action.h.


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