MCPcopy Create free account
hub / github.com/UZ-SLAMLab/ORB_SLAM3 / construct

Method construct

Thirdparty/g2o/g2o/core/optimization_algorithm_factory.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 OptimizationAlgorithm* OptimizationAlgorithmFactory::construct(const std::string& name, OptimizationAlgorithmProperty& solverProperty) const
85 {
86 CreatorList::const_iterator foundIt = findSolver(name);
87 if (foundIt != _creator.end()) {
88 solverProperty = (*foundIt)->property();
89 return (*foundIt)->construct();
90 }
91 cerr << "SOLVER FACTORY WARNING: Unable to create solver " << name << endl;
92 return 0;
93 }
94
95 void OptimizationAlgorithmFactory::destroy()
96 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected