![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
Function configurator entry class The function pointers are all of type <void ()>. The user is responsible for casting them for usage to proper type. The constructor is responsible for casting them for storage to void() using reinterpret_cast. More...
#include <Configurator.h>
Public Member Functions | |
CfgFunction (std::string a_name, CfgSecureLevel a_level, int a_numofvals, const double a_defval, std::string a_function_name, std::function< void()> funtocall) | |
CfgFunction (std::string a_name, CfgSecureLevel a_level, int a_numofvals, const double a_defval, std::string a_function_name) | |
CfgFunction (std::string a_name, CfgSecureLevel a_level, int a_numofvals, const double a_defval) | |
std::function< void()> | value () const |
std::string | fun_name () const |
void | set (std::vector< double > a_newval, std::string fun_name) |
virtual CfgType | gettype () |
![]() | |
CfgArray_Double (const std::string &a_name, CfgSecureLevel a_level, int a_numofvals, const std::vector< double > &a_defval) | |
CfgArray_Double (const std::string &a_name, CfgSecureLevel a_level, int a_numofvals, const std::vector< double > &a_defval, bool a_definconf) | |
CfgArray_Double (const std::string &a_key, CfgSecureLevel a_level, int a_numvals) | |
std::vector< double > | value () const |
void | set (std::vector< double > a_newval) |
int | get_array_size () |
double | value (unsigned a_index) |
![]() | |
CfgBase (const std::string &a_key, CfgSecureLevel a_level) | |
CfgBase (const std::string &a_key, CfgSecureLevel a_level, bool a_definedinconfig) | |
virtual | ~CfgBase () |
std::string | getkey () |
CfgSecureLevel | getlevel (void) |
void | set_definedinconfig (bool flag) |
bool | get_definedinconfig () const |
bool | get_rangetest () const |
Protected Attributes | |
std::function< void()> | funtocall |
std::string | function_name |
![]() | |
int | array_size {0} |
std::vector< double > | m_doublearray {} |
![]() | |
std::string | m_key |
CfgSecureLevel | m_level |
bool | m_rangetest |
bool | m_definedinconfig {false} |
Function configurator entry class The function pointers are all of type <void ()>. The user is responsible for casting them for usage to proper type. The constructor is responsible for casting them for storage to void() using reinterpret_cast.
CfgFunction::CfgFunction | ( | std::string | a_name, |
CfgSecureLevel | a_level, | ||
int | a_numofvals, | ||
const double | a_defval, | ||
std::string | a_function_name, | ||
std::function< void()> | funtocall | ||
) |
CfgFunction::CfgFunction | ( | std::string | a_name, |
CfgSecureLevel | a_level, | ||
int | a_numofvals, | ||
const double | a_defval, | ||
std::string | a_function_name | ||
) |
CfgFunction::CfgFunction | ( | std::string | a_name, |
CfgSecureLevel | a_level, | ||
int | a_numofvals, | ||
const double | a_defval | ||
) |
|
inline |
References function_name.
|
inlinevirtual |
void CfgFunction::set | ( | std::vector< double > | a_newval, |
std::string | fun_name | ||
) |
|
inline |
|
protected |
Referenced by fun_name().
|
protected |
Referenced by value().