g2o
Loading...
Searching...
No Matches
g2o::HyperGraphActionLibrary Class Reference

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ HyperGraphActionLibrary() [1/2]

g2o::HyperGraphActionLibrary::HyperGraphActionLibrary ( HyperGraphActionLibrary const & )
delete

◆ HyperGraphActionLibrary() [2/2]

g2o::HyperGraphActionLibrary::HyperGraphActionLibrary ( )
protecteddefault

Member Function Documentation

◆ actionByName()

HyperGraphElementAction * g2o::HyperGraphActionLibrary::actionByName ( const std::string & name)

◆ actionMap()

HyperGraphElementAction::ActionMap & g2o::HyperGraphActionLibrary::actionMap ( )
inline

Definition at line 168 of file hyper_graph_action.h.

References _actionMap.

◆ destroy()

void g2o::HyperGraphActionLibrary::destroy ( )
static

free the instance

Definition at line 135 of file hyper_graph_action.cpp.

References actionLibInstance.

◆ instance()

◆ operator=()

HyperGraphActionLibrary & g2o::HyperGraphActionLibrary::operator= ( HyperGraphActionLibrary const & )
delete

◆ registerAction()

◆ unregisterAction()

bool g2o::HyperGraphActionLibrary::unregisterAction ( const HyperGraphElementAction::HyperGraphElementActionPtr & action)

Member Data Documentation

◆ _actionMap

HyperGraphElementAction::ActionMap g2o::HyperGraphActionLibrary::_actionMap
protected

Definition at line 172 of file hyper_graph_action.h.

Referenced by actionByName(), actionMap(), registerAction(), and unregisterAction().

◆ actionLibInstance

std::unique_ptr< HyperGraphActionLibrary > g2o::HyperGraphActionLibrary::actionLibInstance
staticprivate

Definition at line 175 of file hyper_graph_action.h.

Referenced by destroy(), and instance().


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