Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
g2o::HyperGraphElementAction Class Reference

Abstract action that operates on a graph entity. More...

#include <hyper_graph_action.h>

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

Classes

struct  Parameters
 

Public Types

typedef std::map< std::string, HyperGraphElementAction * > ActionMap
 

Public Member Functions

 HyperGraphElementAction (const std::string &typeName_="")
 
const std::string & name () const
 returns the name of an action, e.g "draw" More...
 
virtual HyperGraphElementActionoperator() (HyperGraph::HyperGraphElement *element, Parameters *parameters)
 redefine this to do the action stuff. If successful, the action returns a pointer to itself More...
 
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...
 
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

std::string _name
 
std::string _typeName
 

Detailed Description

Abstract action that operates on a graph entity.

Definition at line 72 of file hyper_graph_action.h.

Member Typedef Documentation

Definition at line 77 of file hyper_graph_action.h.

Constructor & Destructor Documentation

g2o::HyperGraphElementAction::HyperGraphElementAction ( const std::string &  typeName_ = "")

an action should be instantiated with the typeid.name of the graph element on which it operates

Definition at line 62 of file hyper_graph_action.cpp.

g2o::HyperGraphElementAction::~HyperGraphElementAction ( )
virtual

destroyed actions release the memory

Definition at line 83 of file hyper_graph_action.cpp.

Member Function Documentation

const std::string& g2o::HyperGraphElementAction::name ( ) const
inline

returns the name of an action, e.g "draw"

Definition at line 95 of file hyper_graph_action.h.

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

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

Reimplemented in g2o::HyperGraphElementActionCollection.

Definition at line 73 of file hyper_graph_action.cpp.

HyperGraphElementAction * g2o::HyperGraphElementAction::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 in g2o::HyperGraphElementActionCollection.

Definition at line 78 of file hyper_graph_action.cpp.

void g2o::HyperGraphElementAction::setTypeName ( const std::string &  typeName_)

sets the type on which an action has to operate

Definition at line 67 of file hyper_graph_action.cpp.

const std::string& g2o::HyperGraphElementAction::typeName ( ) const
inline

returns the typeid name of the action

Definition at line 92 of file hyper_graph_action.h.

Member Data Documentation

std::string g2o::HyperGraphElementAction::_name
protected

Definition at line 102 of file hyper_graph_action.h.

std::string g2o::HyperGraphElementAction::_typeName
protected

Definition at line 101 of file hyper_graph_action.h.


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


orb_slam2_ros
Author(s):
autogenerated on Wed Apr 21 2021 02:53:06