#include <simulation_backup.h>
SimulationBackup is responsible for backing up and restoring all relevant simulation information.
Definition at line 33 of file simulation_backup.h.
◆ SimulationBackup()
bdm::SimulationBackup::SimulationBackup |
( |
const std::string & |
backup_file, |
|
|
const std::string & |
restore_file |
|
) |
| |
If backup_file
is an empty string no backups will be made If restore_file
is an empty string no restore will be made
Definition at line 19 of file simulation_backup.cc.
◆ Backup()
void bdm::SimulationBackup::Backup |
( |
size_t |
completed_simulation_steps | ) |
const |
|
inline |
◆ BackupEnabled()
bool bdm::SimulationBackup::BackupEnabled |
( |
| ) |
const |
◆ GetSimulationStepsFromBackup()
size_t bdm::SimulationBackup::GetSimulationStepsFromBackup |
( |
| ) |
const |
◆ Restore()
void bdm::SimulationBackup::Restore |
( |
| ) |
|
|
inline |
◆ RestoreEnabled()
bool bdm::SimulationBackup::RestoreEnabled |
( |
| ) |
const |
◆ after_restore_event_
std::vector< std::function< void()> > bdm::SimulationBackup::after_restore_event_ = {} |
|
static |
If a whole simulation is restored from a ROOT file, the new ResourceManager is not updated before the end. Consequently, during restore, a custom streamer cannot access the new RessourceManager. However, they can delay actions that rely on the new RessourceManager by registering it to after_restore_event_
and will be executed after the restore has been finished and the ResourceManager has been updated.
Definition at line 47 of file simulation_backup.h.
◆ backup_
bool bdm::SimulationBackup::backup_ = false |
|
private |
◆ backup_file
std::string bdm::SimulationBackup::backup_file |
|
private |
◆ kRuntimeVariableName
const std::string bdm::SimulationBackup::kRuntimeVariableName = "runtime_variable" |
|
static |
◆ kSimulationName
const std::string bdm::SimulationBackup::kSimulationName = "simulation" |
|
static |
◆ kSimulationStepName
const std::string bdm::SimulationBackup::kSimulationStepName |
|
static |
◆ restore_
bool bdm::SimulationBackup::restore_ = true |
|
private |
◆ restore_file
std::string bdm::SimulationBackup::restore_file |
|
private |
The documentation for this class was generated from the following files: