Utopia
2
Framework for studying models of complex & adaptive systems.
|
A bundle wrapping a (iterative) function with metadata. More...
#include <func_bundle.hh>
Public Member Functions | |
FuncBundle (std::string name, Func func, bool invoke_at_initialization=true, bool invoke_always=true, std::set< Time > times={}) | |
When to invoke. More... | |
Public Attributes | |
std::string | name |
Func | func |
The name of the function. More... | |
bool | invoke_at_initialization |
The function. More... | |
bool | invoke_always |
Whether to invoke at initialization. More... | |
std::set< Time > | times |
Whether to invoke in every timestep. More... | |
A bundle wrapping a (iterative) function with metadata.
This gathers a function alongside some metadata into a custom construct. The function is ment to be applied within an iterative model.
|
inline |
When to invoke.
Func Utopia::Models::Environment::FuncBundle::FuncBundle< Func, Time >::func |
The name of the function.
bool Utopia::Models::Environment::FuncBundle::FuncBundle< Func, Time >::invoke_always |
Whether to invoke at initialization.
bool Utopia::Models::Environment::FuncBundle::FuncBundle< Func, Time >::invoke_at_initialization |
The function.
std::string Utopia::Models::Environment::FuncBundle::FuncBundle< Func, Time >::name |
std::set<Time> Utopia::Models::Environment::FuncBundle::FuncBundle< Func, Time >::times |
Whether to invoke in every timestep.