8 #ifndef CHECKPOINTENTRYDATA_HPP_ 9 #define CHECKPOINTENTRYDATA_HPP_ 11 #include "CheckpointEntry.hpp" 12 #include "io/PrintStream.hpp" 21 std::string
const &name,
25 bool broadcastingFlag)
27 mDataPointer(dataPtr),
28 mNumValues(numValues),
29 mBroadcastingFlag(broadcastingFlag) {}
31 std::string
const &objName,
32 std::string
const &dataName,
36 bool broadcastingFlag)
38 mDataPointer(dataPtr),
39 mNumValues(numValues),
40 mBroadcastingFlag(broadcastingFlag) {}
41 virtual void write(std::string
const &checkpointDirectory,
double simTime,
bool verifyWritesFlag)
43 virtual void read(std::string
const &checkpointDirectory,
double *simTimePtr)
const override;
44 virtual void remove(std::string
const &checkpointDirectory)
const override;
52 bool mBroadcastingFlag;
55 namespace TextOutput {
58 void print(T
const *dataPointer,
size_t numValues,
PrintStream &stream) {
59 for (
size_t n = 0; n < numValues; n++) {
60 stream << dataPointer[n] <<
"\n";
68 #include "CheckpointEntryData.tpp" 70 #endif // CHECKPOINTENTRYDATA_HPP_