BioDynaMo  v1.05.120-25dc9790
Macros
cpptoml.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BDM_ASSIGN_CONFIG_VALUE(variable, config_key)
 
#define BDM_ASSIGN_CONFIG_DOUBLE3_VALUE(variable, config_key)
 

Macro Definition Documentation

◆ BDM_ASSIGN_CONFIG_DOUBLE3_VALUE

#define BDM_ASSIGN_CONFIG_DOUBLE3_VALUE (   variable,
  config_key 
)
Value:
{ \
if (config->contains_qualified(config_key)) { \
auto value = config->get_array_of<real_t>(config_key); \
if (value) { \
auto vector = *value; \
if (vector.size() == variable.size()) { \
for (uint64_t i = 0; i < vector.size(); i++) { \
variable[i] = vector[i]; \
} \
} else { \
Log::Fatal("cpptoml parameter parsing", \
"An error occurred during parameter parsing of (", \
config_key, ". Array dimensions do not match"); \
} \
} \
} \
}

Definition at line 28 of file cpptoml.h.

◆ BDM_ASSIGN_CONFIG_VALUE

#define BDM_ASSIGN_CONFIG_VALUE (   variable,
  config_key 
)
Value:
{ \
if (config->contains_qualified(config_key)) { \
auto value = config->get_qualified_as<decltype(variable)>(config_key); \
if (value) { \
variable = *value; \
} \
} \
}

Definition at line 18 of file cpptoml.h.

bdm::real_t
double real_t
Definition: real_t.h:21