pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::ParameterSnapshot Class Reference

Saves every parameter of a module and restores them exactly when it goes out of scope. More...

#include <null_model_baseline.hpp>

Public Member Functions

 ParameterSnapshot (Module &model)
 
 ~ParameterSnapshot ()
 
 ParameterSnapshot (const ParameterSnapshot &)=delete
 
ParameterSnapshot & operator= (const ParameterSnapshot &)=delete
 
void restore ()
 Puts the saved values back now (the destructor does it again, harmlessly).
 

Detailed Description

Saves every parameter of a module and restores them exactly when it goes out of scope.

Constructor & Destructor Documentation

◆ ParameterSnapshot() [1/2]

pulsatrix::ParameterSnapshot::ParameterSnapshot ( Module &  model)
inlineexplicit

◆ ~ParameterSnapshot()

pulsatrix::ParameterSnapshot::~ParameterSnapshot ( )
inline

◆ ParameterSnapshot() [2/2]

pulsatrix::ParameterSnapshot::ParameterSnapshot ( const ParameterSnapshot &  )
delete

Member Function Documentation

◆ operator=()

ParameterSnapshot & pulsatrix::ParameterSnapshot::operator= ( const ParameterSnapshot &  )
delete

◆ restore()

void pulsatrix::ParameterSnapshot::restore ( )
inline

Puts the saved values back now (the destructor does it again, harmlessly).


The documentation for this class was generated from the following file: