Registry of all optimization algorithms.
More...
#include <algorithm_registry.h>
Registry of all optimization algorithms.
Definition at line 30 of file algorithm_registry.h.
◆ AlgorithmRegistry()
bdm::experimental::AlgorithmRegistry::AlgorithmRegistry |
( |
| ) |
|
|
privatedefault |
◆ ~AlgorithmRegistry()
bdm::experimental::AlgorithmRegistry::~AlgorithmRegistry |
( |
| ) |
|
|
private |
◆ AddAlgorithm()
bool bdm::experimental::AlgorithmRegistry::AddAlgorithm |
( |
const std::string & |
algo_name, |
|
|
Algorithm * |
algo |
|
) |
| |
Adds an algorithm to the registry
- Parameters
-
[in] | algo_name | The algorithm's name |
| algo | The algorithm |
- Returns
- Returns true when the algorithm is successfully added to registry
Definition at line 46 of file algorithm_registry.cc.
◆ GetAlgorithm()
Algorithm * bdm::experimental::AlgorithmRegistry::GetAlgorithm |
( |
const std::string & |
algo_name | ) |
|
Gets the algorithm
- Parameters
-
[in] | algo_name | The algorithm's name |
- Returns
- The algorithm pointer
Definition at line 32 of file algorithm_registry.cc.
◆ GetInstance()
◆ algorithms_
std::unordered_map<std::string, Algorithm *> bdm::experimental::AlgorithmRegistry::algorithms_ |
|
private |
The map containing the algorithms; accessible by their name.
Definition at line 54 of file algorithm_registry.h.
The documentation for this struct was generated from the following files: