59 void save(const QString& fileName = "%stub.chk");
66 void checkStream(std::istream& stream, const QString& message = "");
134 std::ostream&
saveHoles(std::ostream &stream);
146 std::ostream&
saveTraps(std::ostream &stream);
178 inline static std::ostream& operator<<(std::ostream& stream, QString&
string)
180 stream <<
string.toStdString();
184 inline static std::istream&
operator>>(std::istream& stream, QString&
string)
186 std::string temporary;
188 string = QString::fromStdString(temporary);
193 #endif // CHECKPOINTER_H
void save(const QString &fileName="%stub.chk")
save simulation information
World & m_world
reference to world object
Definition: checkpointer.h:175
void load(const QString &fileName, ConfigurationInfo &configInfo)
load simulation information
std::ostream & saveHoles(std::ostream &stream)
save hole site ids to output file
Definition: checkpointer.h:35
std::istream & loadParameters(std::istream &stream)
load parameter from input file
A class to read and write checkpoint files.
Definition: checkpointer.h:20
std::istream & loadTraps(std::istream &stream, ConfigurationInfo &configInfo)
load trap sites from input file
std::istream & loadHoles(std::istream &stream, ConfigurationInfo &configInfo)
load hole sites from input file
Definition: checkpointer.h:34
Definition: checkpointer.h:33
std::ostream & saveDefects(std::ostream &stream)
save defect site ids to output file
Definition: checkpointer.h:32
Definition: checkpointer.h:36
std::istream & loadFluxState(std::istream &stream, ConfigurationInfo &configInfo)
load flux state from input file
std::istream & loadElectrons(std::istream &stream, ConfigurationInfo &configInfo)
load electrons sites from input file
A class to hold all objects in a simulation.
Definition: world.h:51
Definition: checkpointer.h:30
Section
A way to identify different sections in the input file.
Definition: checkpointer.h:28
std::ostream & saveRandomState(std::ostream &stream)
save random number generator state to output file
static std::istream & operator>>(std::istream &stream, QString &string)
Definition: checkpointer.h:184
void checkStream(std::istream &stream, const QString &message="")
check to see if input stream has failed
A struct to temporarily store site IDs.
Definition: parameters.h:14
std::ostream & saveTrapPotentials(std::ostream &stream)
save trap energies to output file
std::istream & loadTrapPotentials(std::istream &stream, ConfigurationInfo &configInfo)
load trap energies from input file
std::ostream & saveTraps(std::ostream &stream)
save trap site ids to output file
Definition: checkpointer.h:31
std::ostream & saveParameters(std::ostream &stream)
save parameters to output file
std::istream & loadDefects(std::istream &stream, ConfigurationInfo &configInfo)
load defect sites from input file
std::istream & loadRandomState(std::istream &stream)
load random number generator state from input file
std::ostream & saveElectrons(std::ostream &stream)
save electron site ids to output file
std::ostream & saveFluxState(std::ostream &stream)
save flux states to output file
Definition: checkpointer.h:37