BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
19 namespace experimental {
29 return &algorithm_registry;
33 if (algo_name.empty()) {
35 "No algorithm name defined in parameter configuration.");
40 std::string msg =
"Algorithm not found in registry: " + algo_name;
41 Log::Fatal(
"AlgorithmRegistry::GetAlgorithm", msg);
43 return search->second;
51 algorithms_.insert(std::make_pair(algo_name, algo));
std::unordered_map< std::string, Algorithm * > algorithms_
The map containing the algorithms; accessible by their name.
An interface for creating new optimization algorithms.
Registry of all optimization algorithms.
static void Warning(const std::string &location, const Args &... parts)
Prints warning message.
bool AddAlgorithm(const std::string &algo_name, Algorithm *algo)
Algorithm * GetAlgorithm(const std::string &algo_name)
static void Fatal(const std::string &location, const Args &... parts)
Prints fatal error message.
static AlgorithmRegistry * GetInstance()
Singleton class - returns the static instance.