libspatialSEIR  0.1
Bayesian Spatial SEIR Modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | Public Attributes | List of all members
SpatialSEIR::IOProvider Class Reference

#include <IOProvider.hpp>

Public Member Functions

 IOProvider ()
 
 IOProvider (ModelContext *context, std::string *outFilePath, int *iterationStride)
 
int populate (ModelContext *context, std::string *outFilePath, int *iterationStride)
 
void setTrace (int locationIndex)
 
void setTrace (int locationIndex, int timeIndex)
 
int close ()
 
int fileInit ()
 
int catIter (int iteration)
 
 ~IOProvider ()
 

Public Attributes

ModelContext ** context
 
int * iterationStride
 
bool * isOpen
 
time_t * timer
 
time_t * startTime
 
std::vector< TimeLocationTrace * > * timeLocationTraces
 
std::vector< LocationTrace * > * locationTraces
 
std::ofstream * outFileStream
 
std::string * outFilePath
 

Detailed Description

The IOProvider class handles file output operations. You might expect given the name that it handled file input operations as well, but you would be mistaken. Mainly it writes MCMC sample output. The user shouldn't really need to interact with it, as ModelContext handles the basics.

Constructor & Destructor Documentation

SpatialSEIR::IOProvider::IOProvider ( )
SpatialSEIR::IOProvider::IOProvider ( ModelContext context,
std::string *  outFilePath,
int *  iterationStride 
)
SpatialSEIR::IOProvider::~IOProvider ( )

Member Function Documentation

int SpatialSEIR::IOProvider::catIter ( int  iteration)
int SpatialSEIR::IOProvider::close ( )
int SpatialSEIR::IOProvider::fileInit ( )
int SpatialSEIR::IOProvider::populate ( ModelContext context,
std::string *  outFilePath,
int *  iterationStride 
)
void SpatialSEIR::IOProvider::setTrace ( int  locationIndex)

Keep track of compartment and transition probability information for location locationIndex

void SpatialSEIR::IOProvider::setTrace ( int  locationIndex,
int  timeIndex 
)

Keep track of compartment and transition probability information for location locationIndex and time point timeIndex

Member Data Documentation

ModelContext** SpatialSEIR::IOProvider::context
bool* SpatialSEIR::IOProvider::isOpen
int* SpatialSEIR::IOProvider::iterationStride
std::vector<LocationTrace*>* SpatialSEIR::IOProvider::locationTraces
std::string* SpatialSEIR::IOProvider::outFilePath
std::ofstream* SpatialSEIR::IOProvider::outFileStream
time_t* SpatialSEIR::IOProvider::startTime
std::vector<TimeLocationTrace*>* SpatialSEIR::IOProvider::timeLocationTraces
time_t* SpatialSEIR::IOProvider::timer

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