|
g2o
|
library of actions, indexed by the action name; More...
#include <hyper_graph_action.h>
Public Member Functions | |
| HyperGraphActionLibrary (HyperGraphActionLibrary const &)=delete | |
| HyperGraphActionLibrary & | operator= (HyperGraphActionLibrary const &)=delete |
| HyperGraphElementAction * | actionByName (const std::string &name) |
| bool | registerAction (const HyperGraphElementAction::HyperGraphElementActionPtr &action) |
| bool | unregisterAction (const HyperGraphElementAction::HyperGraphElementActionPtr &action) |
| HyperGraphElementAction::ActionMap & | actionMap () |
Static Public Member Functions | |
| static HyperGraphActionLibrary * | instance () |
| return the single instance of the HyperGraphActionLibrary | |
| static void | destroy () |
| free the instance | |
Protected Member Functions | |
| HyperGraphActionLibrary ()=default | |
Protected Attributes | |
| HyperGraphElementAction::ActionMap | _actionMap |
Static Private Attributes | |
| static std::unique_ptr< HyperGraphActionLibrary > | actionLibInstance |
library of actions, indexed by the action name;
library of actions, indexed by the action name; one can use ti to register a collection of actions
Definition at line 150 of file hyper_graph_action.h.
|
delete |
|
protecteddefault |
| HyperGraphElementAction * g2o::HyperGraphActionLibrary::actionByName | ( | const std::string & | name | ) |
Definition at line 140 of file hyper_graph_action.cpp.
References _actionMap.
Referenced by g2o::G2oQGLViewer::draw(), g2o::dumpEdges(), g2o::DrawAction::initializeDrawActionsCache(), registerAction(), and g2o::saveGnuplot().
|
inline |
Definition at line 168 of file hyper_graph_action.h.
|
static |
free the instance
Definition at line 135 of file hyper_graph_action.cpp.
References actionLibInstance.
|
static |
return the single instance of the HyperGraphActionLibrary
Definition at line 127 of file hyper_graph_action.cpp.
References actionLibInstance.
Referenced by g2o::G2oQGLViewer::draw(), g2o::dumpEdges(), g2o::G2O_ATTRIBUTE_CONSTRUCTOR(), g2o::DrawAction::initializeDrawActionsCache(), g2o::RegisterActionProxy< T >::RegisterActionProxy(), and g2o::saveGnuplot().
|
delete |
| bool g2o::HyperGraphActionLibrary::registerAction | ( | const HyperGraphElementAction::HyperGraphElementActionPtr & | action | ) |
Definition at line 147 of file hyper_graph_action.cpp.
References __PRETTY_FUNCTION__, _actionMap, actionByName(), G2O_DEBUG, G2O_ERROR, and g2o::HyperGraphElementActionCollection::registerAction().
Referenced by g2o::G2O_ATTRIBUTE_CONSTRUCTOR(), and g2o::RegisterActionProxy< T >::RegisterActionProxy().
| bool g2o::HyperGraphActionLibrary::unregisterAction | ( | const HyperGraphElementAction::HyperGraphElementActionPtr & | action | ) |
Definition at line 175 of file hyper_graph_action.cpp.
References _actionMap, g2o::HyperGraphElementActionCollection::actionMap(), and g2o::HyperGraphElementActionCollection::unregisterAction().
|
protected |
Definition at line 172 of file hyper_graph_action.h.
Referenced by actionByName(), registerAction(), and unregisterAction().
|
staticprivate |
Definition at line 175 of file hyper_graph_action.h.
Referenced by destroy(), and instance().