libspatialSEIR
0.1
Bayesian Spatial SEIR Modeling
|
#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 |
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.
SpatialSEIR::IOProvider::IOProvider | ( | ) |
SpatialSEIR::IOProvider::IOProvider | ( | ModelContext * | context, |
std::string * | outFilePath, | ||
int * | iterationStride | ||
) |
SpatialSEIR::IOProvider::~IOProvider | ( | ) |
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
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 |