|
FEAT 3
Finite Element Analysis Toolbox
|
Wrapper class for checkpointable objects. More...
#include <checkpoint_control.hpp>
Public Member Functions | |
| CheckpointableWrapper (Object_ &obj) | |
| Contructor. More... | |
| virtual std::uint64_t | get_checkpoint_size (LAFEM::SerialConfig &config) override |
| Calculate size. More... | |
| virtual void | restore_from_checkpoint_data (std::vector< char > &data) override |
| Extract object from checkpoint. More... | |
| virtual std::uint64_t | set_checkpoint_data (std::vector< char > &data, LAFEM::SerialConfig &config) override |
| Collect checkpoint data from object. More... | |
Private Attributes | |
| Object_ & | _object |
Wrapper class for checkpointable objects.
Any class that implements the Checkpointable interface can be wrapped by CheckpointableWrapper and then be used with CheckpointControl.
Definition at line 76 of file checkpoint_control.hpp.
|
inlineexplicit |
Contructor.
Definition at line 83 of file checkpoint_control.hpp.
|
inlineoverridevirtual |
Calculate size.
Calculate size of complete object as it is stored in the checkpoint
Implements FEAT::Control::Checkpointable.
Definition at line 94 of file checkpoint_control.hpp.
|
inlineoverridevirtual |
Extract object from checkpoint.
Restores complete object with all its contents from checkpoint data
| [out] | data | object as bytestrem |
Implements FEAT::Control::Checkpointable.
Definition at line 107 of file checkpoint_control.hpp.
|
inlineoverridevirtual |
Collect checkpoint data from object.
Adds the condensed complete object with all its contents to the end of the checkpoint buffer
| [out] | data | object as bytestream |
Implements FEAT::Control::Checkpointable.
Definition at line 120 of file checkpoint_control.hpp.
|
private |
Definition at line 79 of file checkpoint_control.hpp.