Utopia  2
Framework for studying models of complex & adaptive systems.
Classes | Functions
WriteTask

Provides a class which encapsulates the process of acquiring resources to write data to, writing data to that resource, and handling meta information. More...

Collaboration diagram for WriteTask:

Classes

struct  Utopia::DataIO::WriteTask< BGB, DW, DB, AWG, AWD >
 Encapsulate a task for writing data to a destination. Containes a callable 'writer' responisible for writing data to a held dataset. Contains a callabel 'build_dataset' which builds or opens a dataset for writing to in a held HDFGroup. A WriteTask is bound to a group for its entire lifetime. More...
 

Functions

template<class BGB , class DW , class DB , class AWG , class AWD >
void Utopia::DataIO::swap (WriteTask< BGB, DW, DB, AWG, AWD > &lhs, WriteTask< BGB, DW, DB, AWG, AWD > &rhs)
 Swaps the state of lhs and rhs. More...
 
template<typename Basegroupbuilder , typename Writertype , typename Buildertype , typename AWritertypeG , typename AWritertypeD >
 Utopia::DataIO::WriteTask (Basegroupbuilder &&bgb, Writertype &&w, Buildertype &&b, AWritertypeG &&ad, AWritertypeD &&ag) -> WriteTask< std::decay_t< Basegroupbuilder >, std::decay_t< Writertype >, std::decay_t< Buildertype >, std::decay_t< AWritertypeG >, std::decay_t< AWritertypeD > >
 

Detailed Description

Provides a class which encapsulates the process of acquiring resources to write data to, writing data to that resource, and handling meta information.

Function Documentation

◆ swap()

template<class BGB , class DW , class DB , class AWG , class AWD >
void Utopia::DataIO::swap ( WriteTask< BGB, DW, DB, AWG, AWD > &  lhs,
WriteTask< BGB, DW, DB, AWG, AWD > &  rhs 
)

Swaps the state of lhs and rhs.

Template Parameters
WriterType of writer member of the WriteTaskcl
BuilderType of build_dataset member of the WriteTask
Parameters
lhs
rhs

◆ WriteTask()

template<typename Basegroupbuilder , typename Writertype , typename Buildertype , typename AWritertypeG , typename AWritertypeD >
Utopia::DataIO::WriteTask ( Basegroupbuilder &&  bgb,
Writertype &&  w,
Buildertype &&  b,
AWritertypeG &&  ad,
AWritertypeD &&  ag 
) -> WriteTask< std::decay_t< Basegroupbuilder >, std::decay_t< Writertype >, std::decay_t< Buildertype >, std::decay_t< AWritertypeG >, std::decay_t< AWritertypeD > >