Utopia
2
Framework for studying models of complex & adaptive systems.
|
A decider that returns true when within certain time intervals. More...
#include <defaults.hh>
Public Types | |
using | Base = Decider< Model > |
The base class. More... | |
Public Member Functions | |
virtual bool | operator() (Model &m) override |
virtual void | set_from_cfg (const Config &cfg) override |
Set the decider up from a given config node. More... | |
IntervalDecider ()=default | |
IntervalDecider (const IntervalDecider &)=default | |
IntervalDecider (IntervalDecider &&)=default | |
IntervalDecider & | operator= (const IntervalDecider &)=default |
IntervalDecider & | operator= (IntervalDecider &&)=default |
virtual | ~IntervalDecider ()=default |
Public Member Functions inherited from Utopia::DataIO::Default::Decider< Model > | |
Decider ()=default | |
Decider (const Decider &)=default | |
Decider (Decider &&)=default | |
Decider & | operator= (const Decider &)=default |
Decider & | operator= (Decider &&)=default |
virtual | ~Decider ()=default |
Public Attributes | |
std::list< std::array< std::size_t, 3 > > | intervals |
The sequence of intervals within to return true. More... | |
A decider that returns true when within certain time intervals.
Every interval is of shape [start, stop), stride
where the third argument is optional and defines a stepping size.
using Utopia::DataIO::Default::IntervalDecider< Model >::Base = Decider< Model > |
The base class.
|
default |
|
default |
|
default |
|
virtualdefault |
|
inlineoverridevirtual |
Implements Utopia::DataIO::Default::Decider< Model >.
|
default |
|
default |
|
inlineoverridevirtual |
Set the decider up from a given config node.
cfg | config node containing arguments for this decider |
Implements Utopia::DataIO::Default::Decider< Model >.
std::list< std::array< std::size_t, 3 > > Utopia::DataIO::Default::IntervalDecider< Model >::intervals |
The sequence of intervals within to return true.