Public Member Functions | Protected Attributes | List of all members
g2o::HyperGraphElementActionCollection Class Reference

collection of actions More...

#include <hyper_graph_action.h>

Inheritance diagram for g2o::HyperGraphElementActionCollection:
Inheritance graph
[legend]

Public Member Functions

ActionMapactionMap ()
 
 HyperGraphElementActionCollection (const std::string &name_)
 constructor. name_ is the name of the action e.g.draw). More...
 
virtual HyperGraphElementActionoperator() (HyperGraph::HyperGraphElement *element, Parameters *parameters)
 
virtual HyperGraphElementActionoperator() (const HyperGraph::HyperGraphElement *element, Parameters *parameters)
 redefine this to do the action stuff. If successful, the action returns a pointer to itself More...
 
bool registerAction (HyperGraphElementAction *action)
 
bool unregisterAction (HyperGraphElementAction *action)
 
virtual ~HyperGraphElementActionCollection ()
 destructor: it deletes all actions in the pool. More...
 
- Public Member Functions inherited from g2o::HyperGraphElementAction
 HyperGraphElementAction (const std::string &typeName_="")
 
const std::string & name () const
 returns the name of an action, e.g "draw" More...
 
void setTypeName (const std::string &typeName_)
 sets the type on which an action has to operate More...
 
const std::string & typeName () const
 returns the typeid name of the action More...
 
virtual ~HyperGraphElementAction ()
 destroyed actions release the memory More...
 

Protected Attributes

ActionMap _actionMap
 
- Protected Attributes inherited from g2o::HyperGraphElementAction
std::string _name
 
std::string _typeName
 

Additional Inherited Members

- Public Types inherited from g2o::HyperGraphElementAction
typedef std::map< std::string, HyperGraphElementAction * > ActionMap
 

Detailed Description

collection of actions

collection of actions calls contains homogeneous actions operating on different types all collected actions have the same name and should have the same functionality

Definition at line 111 of file hyper_graph_action.h.

Constructor & Destructor Documentation

g2o::HyperGraphElementActionCollection::HyperGraphElementActionCollection ( const std::string &  name_)

constructor. name_ is the name of the action e.g.draw).

Definition at line 87 of file hyper_graph_action.cpp.

g2o::HyperGraphElementActionCollection::~HyperGraphElementActionCollection ( )
virtual

destructor: it deletes all actions in the pool.

Definition at line 92 of file hyper_graph_action.cpp.

Member Function Documentation

ActionMap& g2o::HyperGraphElementActionCollection::actionMap ( )
inline

Definition at line 121 of file hyper_graph_action.h.

HyperGraphElementAction * g2o::HyperGraphElementActionCollection::operator() ( HyperGraph::HyperGraphElement element,
HyperGraphElementAction::Parameters params 
)
virtual

calling functions, they return a pointer to the instance of action in actionMap that was active on element

Reimplemented from g2o::HyperGraphElementAction.

Definition at line 99 of file hyper_graph_action.cpp.

HyperGraphElementAction * g2o::HyperGraphElementActionCollection::operator() ( const HyperGraph::HyperGraphElement element,
HyperGraphElementAction::Parameters parameters 
)
virtual

redefine this to do the action stuff. If successful, the action returns a pointer to itself

Reimplemented from g2o::HyperGraphElementAction.

Definition at line 109 of file hyper_graph_action.cpp.

bool g2o::HyperGraphElementActionCollection::registerAction ( HyperGraphElementAction action)

inserts an action in the pool. The action should have the same name of the container. returns false on failure (the container has a different name than the action);

Definition at line 118 of file hyper_graph_action.cpp.

bool g2o::HyperGraphElementActionCollection::unregisterAction ( HyperGraphElementAction action)

Definition at line 130 of file hyper_graph_action.cpp.

Member Data Documentation

ActionMap g2o::HyperGraphElementActionCollection::_actionMap
protected

Definition at line 127 of file hyper_graph_action.h.


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


orb_slam2_with_maps_odom
Author(s): teng zhang
autogenerated on Fri Sep 25 2020 03:24:47