Utopia  2
Framework for studying models of complex & adaptive systems.
Public Types | Public Member Functions | Public Attributes | List of all members
Utopia::DataIO::Default::OnceDecider< Model > Struct Template Reference

Decider which only returns true at a certain time. More...

#include <defaults.hh>

Inheritance diagram for Utopia::DataIO::Default::OnceDecider< Model >:
Inheritance graph
[legend]
Collaboration diagram for Utopia::DataIO::Default::OnceDecider< Model >:
Collaboration graph
[legend]

Public Types

using Base = Decider< Model >
 The type of the base decider 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...
 
 OnceDecider ()=default
 Construct a OnceDecider that evaluates to true at time zero. More...
 
 OnceDecider (const OnceDecider &)=default
 
 OnceDecider (OnceDecider &&)=default
 
OnceDecideroperator= (const OnceDecider &)=default
 
OnceDecideroperator= (OnceDecider &&)=default
 
virtual ~OnceDecider ()=default
 
- Public Member Functions inherited from Utopia::DataIO::Default::Decider< Model >
 Decider ()=default
 
 Decider (const Decider &)=default
 
 Decider (Decider &&)=default
 
Decideroperator= (const Decider &)=default
 
Decideroperator= (Decider &&)=default
 
virtual ~Decider ()=default
 

Public Attributes

std::size_t time
 

Detailed Description

template<typename Model>
struct Utopia::DataIO::Default::OnceDecider< Model >

Decider which only returns true at a certain time.

Member Typedef Documentation

◆ Base

template<typename Model >
using Utopia::DataIO::Default::OnceDecider< Model >::Base = Decider< Model >

The type of the base decider class.

Constructor & Destructor Documentation

◆ OnceDecider() [1/3]

template<typename Model >
Utopia::DataIO::Default::OnceDecider< Model >::OnceDecider ( )
default

Construct a OnceDecider that evaluates to true at time zero.

◆ OnceDecider() [2/3]

template<typename Model >
Utopia::DataIO::Default::OnceDecider< Model >::OnceDecider ( const OnceDecider< Model > &  )
default

◆ OnceDecider() [3/3]

template<typename Model >
Utopia::DataIO::Default::OnceDecider< Model >::OnceDecider ( OnceDecider< Model > &&  )
default

◆ ~OnceDecider()

template<typename Model >
virtual Utopia::DataIO::Default::OnceDecider< Model >::~OnceDecider ( )
virtualdefault

Member Function Documentation

◆ operator()()

template<typename Model >
virtual bool Utopia::DataIO::Default::OnceDecider< Model >::operator() ( Model m)
inlineoverridevirtual

◆ operator=() [1/2]

template<typename Model >
OnceDecider& Utopia::DataIO::Default::OnceDecider< Model >::operator= ( const OnceDecider< Model > &  )
default

◆ operator=() [2/2]

template<typename Model >
OnceDecider& Utopia::DataIO::Default::OnceDecider< Model >::operator= ( OnceDecider< Model > &&  )
default

◆ set_from_cfg()

template<typename Model >
virtual void Utopia::DataIO::Default::OnceDecider< Model >::set_from_cfg ( const Config cfg)
inlineoverridevirtual

Set the decider up from a given config node.

Parameters
cfgconfig node containing arguments for this decider

Implements Utopia::DataIO::Default::Decider< Model >.

Member Data Documentation

◆ time

template<typename Model >
std::size_t Utopia::DataIO::Default::OnceDecider< Model >::time

The documentation for this struct was generated from the following file: