Stride Reference Manual  1.0
stride::Hdf5Loader Class Reference

#include <Hdf5Loader.h>

Collaboration diagram for stride::Hdf5Loader:
Collaboration graph

Public Member Functions

 Hdf5Loader (const char *filename)
 
void loadFromTimestep (unsigned int timestep, shared_ptr< Simulator > sim) const
 Load from timestep, if the specified timestep is present in the hdf5 file. More...
 
void extendSimulation (shared_ptr< Simulator > sim) const
 Extend the simulation at the last saved timestep. More...
 
ptree getConfig () const
 
ptree getDisease () const
 
ptree getContact () const
 
unsigned int getLastSavedTimestep () const
 Retrieves the last saved timestep index in the hdf5 file. More...
 

Static Public Member Functions

static void extractConfigs (string filename)
 Extract the configuration files saved in the hdf5 file. More...
 

Detailed Description

Definition at line 27 of file Hdf5Loader.h.

Constructor & Destructor Documentation

stride::Hdf5Loader::Hdf5Loader ( const char *  filename)
inline

Definition at line 90 of file Hdf5Loader.h.

Member Function Documentation

void stride::Hdf5Loader::loadFromTimestep ( unsigned int  timestep,
shared_ptr< Simulator sim 
) const
inline

Load from timestep, if the specified timestep is present in the hdf5 file.

Definition at line 93 of file Hdf5Loader.h.

Referenced by stride::run::Runner::addLocalSimulator().

void stride::Hdf5Loader::extendSimulation ( shared_ptr< Simulator sim) const
inline

Extend the simulation at the last saved timestep.

Definition at line 96 of file Hdf5Loader.h.

ptree stride::Hdf5Loader::getConfig ( ) const
inline

Definition at line 100 of file Hdf5Loader.h.

ptree stride::Hdf5Loader::getDisease ( ) const
inline

Definition at line 101 of file Hdf5Loader.h.

ptree stride::Hdf5Loader::getContact ( ) const
inline

Definition at line 102 of file Hdf5Loader.h.

unsigned int stride::Hdf5Loader::getLastSavedTimestep ( ) const
inline

Retrieves the last saved timestep index in the hdf5 file.

Definition at line 105 of file Hdf5Loader.h.

Referenced by stride::run::Runner::addLocalSimulator().

void stride::Hdf5Loader::extractConfigs ( string  filename)
inlinestatic

Extract the configuration files saved in the hdf5 file.

Definition at line 109 of file Hdf5Loader.h.


The documentation for this class was generated from the following files: