Utopia  2
Framework for studying models of complex & adaptive systems.
Classes | Typedefs | Variables
Utopia::DataIO::Default Namespace Reference

Classes

struct  DefaultExecutionProcess
 Functor representing what is considered the most widely used execution process for writing data. More...
 
struct  Decider
 Common interface for all deciders (and triggers, for that matter). Every decider/Trigger must inherit from this, and implement its virtual functions 'bool operator()(Model&)' and 'void set_from_cfg(const Config&)'. More...
 
struct  IntervalDecider
 A decider that returns true when within certain time intervals. More...
 
struct  OnceDecider
 Decider which only returns true at a certain time. More...
 
struct  AlwaysDecider
 Decider which always returns true. More...
 
struct  CompositeDecider
 Combines a number of deciders; returns true if any of them is true. More...
 

Typedefs

template<typename Model >
using DefaultDataManager = DataManager< DataManagerTraits< Default::DefaultWriteTask< Model >, Default::Decider< Model >, Default::Trigger< Model >, Default::DefaultExecutionProcess > >
 A default DataManager type This uses all the default types for deciders, triggers, write task, and execution process. More...
 
using DefaultBaseGroupBuilder = std::function< std::shared_ptr< HDFGroup >(std::shared_ptr< HDFGroup > &&) >
 Type of the default group builder. More...
 
template<typename Model >
using DefaultDataWriter = std::function< void(std::shared_ptr< HDFDataset > &, Model &) >
 Type of the default data writer. More...
 
template<typename Model >
using DefaultBuilder = std::function< std::shared_ptr< HDFDataset >(std::shared_ptr< HDFGroup > &, Model &) >
 Type of the default dataset builder. More...
 
template<typename Model >
using DefaultAttributeWriterGroup = std::function< void(std::shared_ptr< HDFGroup > &, Model &) >
 Type of the default attribute writer for groups. More...
 
template<typename Model >
using DefaultAttributeWriterDataset = std::function< void(std::shared_ptr< HDFDataset > &, Model &) >
 Type of the default attribute writer for datasets. More...
 
template<typename Model >
using DefaultWriteTask = WriteTask< DefaultBaseGroupBuilder, DefaultDataWriter< Model >, DefaultBuilder< Model >, DefaultAttributeWriterGroup< Model >, DefaultAttributeWriterDataset< Model > >
 A default WriteTask definition. More...
 
template<typename Model >
using DefaultDecidermap = std::unordered_map< std::string, std::function< std::shared_ptr< Decider< Model > >() > >
 
template<typename Model >
using Trigger = Decider< Model >
 
template<typename Model >
using IntervalTrigger = IntervalDecider< Model >
 
template<typename Model >
using BuildOnceTrigger = OnceDecider< Model >
 
template<typename Model >
using BuildAlwaysTrigger = AlwaysDecider< Model >
 
template<typename Model , typename... Deciders>
using CompositeTrigger = CompositeDecider< Model, Deciders... >
 
template<typename Model >
using DefaultTriggermap = DefaultDecidermap< Model >
 

Variables

template<typename Model >
static DefaultDecidermap< Modeldefault_deciders
 Map that names the deciders supplied by default such that they can be addressed in a config file. More...
 
template<typename Model >
static DefaultTriggermap< Modeldefault_triggers = default_deciders< Model >
 Default trigger factories. Equal to deciders because while the task they fullfill is different, their functionality is not. More...
 

Typedef Documentation

◆ DefaultDataManager

A default DataManager type This uses all the default types for deciders, triggers, write task, and execution process.

Note
Cannot go anywhere else currently... Once possible, move to a more suitable location