g2o
Public Member Functions | Private Attributes | List of all members
g2o::RegisterOptimizationAlgorithmProxy Class Reference

#include <optimization_algorithm_factory.h>

Collaboration diagram for g2o::RegisterOptimizationAlgorithmProxy:
Collaboration graph
[legend]

Public Member Functions

 RegisterOptimizationAlgorithmProxy (AbstractOptimizationAlgorithmCreator *c)
 
 ~RegisterOptimizationAlgorithmProxy ()
 

Private Attributes

AbstractOptimizationAlgorithmCreator_creator
 

Detailed Description

Definition at line 120 of file optimization_algorithm_factory.h.

Constructor & Destructor Documentation

g2o::RegisterOptimizationAlgorithmProxy::RegisterOptimizationAlgorithmProxy ( AbstractOptimizationAlgorithmCreator c)
inline

Definition at line 123 of file optimization_algorithm_factory.h.

References g2o::OptimizationAlgorithmFactory::instance(), g2o::OptimizationAlgorithmProperty::name, g2o::AbstractOptimizationAlgorithmCreator::property(), and g2o::OptimizationAlgorithmFactory::registerSolver().

124  {
125  _creator = c;
126 #ifdef G2O_DEBUG_OPTIMIZATION_ALGORITHM_FACTORY
127  std::cout << __FUNCTION__ << ": Registering " << _creator->property().name << " of type " << typeid(*_creator).name() << std::endl;
128 #endif
130  }
std::string name
name of the solver, e.g., var
const OptimizationAlgorithmProperty & property() const
return the properties of the solver
void registerSolver(AbstractOptimizationAlgorithmCreator *c)
static OptimizationAlgorithmFactory * instance()
return the instance
AbstractOptimizationAlgorithmCreator * _creator
g2o::RegisterOptimizationAlgorithmProxy::~RegisterOptimizationAlgorithmProxy ( )
inline

Definition at line 132 of file optimization_algorithm_factory.h.

References g2o::OptimizationAlgorithmFactory::instance(), and g2o::OptimizationAlgorithmFactory::unregisterSolver().

133  {
134 #ifdef G2O_DEBUG_OPTIMIZATION_ALGORITHM_FACTORY
135  std::cout << __FUNCTION__ << ": Unregistering " << _creator->property().name << std::endl;
136 #endif
138  }
std::string name
name of the solver, e.g., var
const OptimizationAlgorithmProperty & property() const
return the properties of the solver
static OptimizationAlgorithmFactory * instance()
return the instance
AbstractOptimizationAlgorithmCreator * _creator
void unregisterSolver(AbstractOptimizationAlgorithmCreator *c)

Member Data Documentation

AbstractOptimizationAlgorithmCreator* g2o::RegisterOptimizationAlgorithmProxy::_creator
private

Definition at line 140 of file optimization_algorithm_factory.h.


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