Utopia
2
Framework for studying models of complex & adaptive systems.
|
Combines a number of deciders; returns true if any of them is true. More...
#include <defaults.hh>
Public Types | |
using | Base = Decider< Model > |
The type of the base decider class. More... | |
Public Member Functions | |
virtual bool | operator() (Model &m) override |
Evaluates the composite deciders; returns true if any is true. More... | |
virtual void | set_from_cfg (const Config &cfg) override |
Set the decider up from a given config node. More... | |
CompositeDecider ()=default | |
CompositeDecider (const CompositeDecider &)=default | |
CompositeDecider & | operator= (const CompositeDecider &)=default |
CompositeDecider & | operator= (CompositeDecider &&)=default |
virtual | ~CompositeDecider ()=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::tuple< Deciders... > | held_deciders |
Tuple of associated decider objects. More... | |
Combines a number of deciders; returns true if any of them is true.
Model | The model |
Deciders | The decider types to combine as composite |
using Utopia::DataIO::Default::CompositeDecider< Model, Deciders >::Base = Decider< Model > |
The type of the base decider class.
|
default |
|
default |
|
virtualdefault |
|
inlineoverridevirtual |
Evaluates the composite deciders; returns true if any is true.
m | The model reference, passed on to decider objects |
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::tuple< Deciders... > Utopia::DataIO::Default::CompositeDecider< Model, Deciders >::held_deciders |
Tuple of associated decider objects.