BioDynaMo  v1.05.120-25dc9790
Classes | Namespaces | Macros | Functions
algorithm_registry.h File Reference
#include <unordered_map>
#include "core/multi_simulation/algorithm/algorithm.h"
#include "core/multi_simulation/optimization_param.h"
#include "core/param/param.h"
Include dependency graph for algorithm_registry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bdm::experimental::AlgorithmRegistry
 Registry of all optimization algorithms. More...
 

Namespaces

 bdm
 
 bdm::experimental
 

Macros

#define BDM_REGISTER_ALGO(op)
 
#define BDM_ALGO_HEADER()
 

Functions

Algorithm * bdm::experimental::CreateOptimizationAlgorithm (OptimizationParam *opt_params)
 

Macro Definition Documentation

◆ BDM_ALGO_HEADER

#define BDM_ALGO_HEADER ( )
Value:
private: \
static bool registered_;

A convenient macro to hide some of the boilerplate code from the user in implementing new algorithms

Definition at line 66 of file algorithm_registry.h.

◆ BDM_REGISTER_ALGO

#define BDM_REGISTER_ALGO (   op)
Value:
bool op::registered_ = \
AlgorithmRegistry::GetInstance()->AddAlgorithm(#op, new op());

Definition at line 60 of file algorithm_registry.h.