A class to read and write checkpoint files.
More...
#include <checkpointer.h>
A class to read and write checkpoint files.
Checkpoint files are essentially the same as input files
A way to identify different sections in the input file.
Enumerator |
---|
Parameters |
|
Electrons |
|
Holes |
|
Defects |
|
Traps |
|
TrapPotentials |
|
RandomState |
|
FluxState |
|
LangmuirCore::CheckPointer::CheckPointer |
( |
World & |
world, |
|
|
QObject * |
parent = 0 |
|
) |
| |
|
explicit |
Create the checkpointer object.
- Parameters
-
world | reference world object |
parent | parent QObject |
void LangmuirCore::CheckPointer::checkStream |
( |
std::istream & |
stream, |
|
|
const QString & |
message = "" |
|
) |
| |
check to see if input stream has failed
- Parameters
-
stream | input stream |
message | the error message to output if stream failed |
void LangmuirCore::CheckPointer::load |
( |
const QString & |
fileName, |
|
|
ConfigurationInfo & |
configInfo |
|
) |
| |
load simulation information
- Parameters
-
fileName | name of input file |
configInfo | temporary storage for electrons, holes, etc |
std::istream& LangmuirCore::CheckPointer::loadDefects |
( |
std::istream & |
stream, |
|
|
ConfigurationInfo & |
configInfo |
|
) |
| |
|
private |
load defect sites from input file
- Parameters
-
stream | the input stream |
configInfo | temporary storage for site ids |
std::istream& LangmuirCore::CheckPointer::loadElectrons |
( |
std::istream & |
stream, |
|
|
ConfigurationInfo & |
configInfo |
|
) |
| |
|
private |
load electrons sites from input file
- Parameters
-
stream | the input stream |
configInfo | temporary storage for site ids |
std::istream& LangmuirCore::CheckPointer::loadFluxState |
( |
std::istream & |
stream, |
|
|
ConfigurationInfo & |
configInfo |
|
) |
| |
|
private |
load flux state from input file
- Parameters
-
stream | the input stream |
configInfo | temporary storage for flux state |
std::istream& LangmuirCore::CheckPointer::loadHoles |
( |
std::istream & |
stream, |
|
|
ConfigurationInfo & |
configInfo |
|
) |
| |
|
private |
load hole sites from input file
- Parameters
-
stream | the input stream |
configInfo | temporary storage for site ids |
std::istream& LangmuirCore::CheckPointer::loadParameters |
( |
std::istream & |
stream | ) |
|
|
private |
load parameter from input file
- Parameters
-
std::istream& LangmuirCore::CheckPointer::loadRandomState |
( |
std::istream & |
stream | ) |
|
|
private |
load random number generator state from input file
- Parameters
-
std::istream& LangmuirCore::CheckPointer::loadTrapPotentials |
( |
std::istream & |
stream, |
|
|
ConfigurationInfo & |
configInfo |
|
) |
| |
|
private |
load trap energies from input file
- Parameters
-
stream | the input stream |
configInfo | temporary storage for site energies |
std::istream& LangmuirCore::CheckPointer::loadTraps |
( |
std::istream & |
stream, |
|
|
ConfigurationInfo & |
configInfo |
|
) |
| |
|
private |
load trap sites from input file
- Parameters
-
stream | the input stream |
configInfo | temporary storage for site ids |
void LangmuirCore::CheckPointer::save |
( |
const QString & |
fileName = "%stub.chk" | ) |
|
save simulation information
- Parameters
-
fileName | name of output file |
std::ostream& LangmuirCore::CheckPointer::saveDefects |
( |
std::ostream & |
stream | ) |
|
|
private |
save defect site ids to output file
- Parameters
-
std::ostream& LangmuirCore::CheckPointer::saveElectrons |
( |
std::ostream & |
stream | ) |
|
|
private |
save electron site ids to output file
- Parameters
-
std::ostream& LangmuirCore::CheckPointer::saveFluxState |
( |
std::ostream & |
stream | ) |
|
|
private |
save flux states to output file
- Parameters
-
std::ostream& LangmuirCore::CheckPointer::saveHoles |
( |
std::ostream & |
stream | ) |
|
|
private |
save hole site ids to output file
- Parameters
-
std::ostream& LangmuirCore::CheckPointer::saveParameters |
( |
std::ostream & |
stream | ) |
|
|
private |
save parameters to output file
- Parameters
-
std::ostream& LangmuirCore::CheckPointer::saveRandomState |
( |
std::ostream & |
stream | ) |
|
|
private |
save random number generator state to output file
- Parameters
-
std::ostream& LangmuirCore::CheckPointer::saveTrapPotentials |
( |
std::ostream & |
stream | ) |
|
|
private |
save trap energies to output file
- Parameters
-
std::ostream& LangmuirCore::CheckPointer::saveTraps |
( |
std::ostream & |
stream | ) |
|
|
private |
save trap site ids to output file
- Parameters
-
World& LangmuirCore::CheckPointer::m_world |
|
private |
reference to world object
The documentation for this class was generated from the following file: