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

A decider that returns true when within certain time intervals. More...

#include <defaults.hh>

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

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
 
IntervalDecideroperator= (const IntervalDecider &)=default
 
IntervalDecideroperator= (IntervalDecider &&)=default
 
virtual ~IntervalDecider ()=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::list< std::array< std::size_t, 3 > > intervals
 The sequence of intervals within to return true. More...
 

Detailed Description

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

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.

Member Typedef Documentation

◆ Base

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

The base class.

Constructor & Destructor Documentation

◆ IntervalDecider() [1/3]

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

◆ IntervalDecider() [2/3]

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

◆ IntervalDecider() [3/3]

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

◆ ~IntervalDecider()

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

Member Function Documentation

◆ operator()()

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

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ set_from_cfg()

template<typename Model >
virtual void Utopia::DataIO::Default::IntervalDecider< 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

◆ intervals

template<typename Model >
std::list< std::array< std::size_t, 3 > > Utopia::DataIO::Default::IntervalDecider< Model >::intervals

The sequence of intervals within to return true.


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