#include <context_manager.hpp>
|
| std::weak_ptr< Arion > | arion |
| | The Arion instance which context is being managed.
|
| |
This class is used to operate over ARION_CONTEXT instances. It is able to save and load contexts with different restauration modes.
◆ ContextManager()
| arion::ContextManager::ContextManager |
( |
std::weak_ptr< Arion > |
arion | ) |
|
|
inline |
◆ initialize()
| static std::unique_ptr< ContextManager > arion::ContextManager::initialize |
( |
std::weak_ptr< Arion > |
arion | ) |
|
|
static |
Instanciates and initializes new ContextManager objects with some parameters.
- Parameters
-
| [in] | arion | The Arion instance which context is being managed. |
- Returns
- A new ContextManager instance.
◆ restore() [1/2]
| void arion::ContextManager::restore |
( |
std::shared_ptr< ARION_CONTEXT > |
ctx, |
|
|
bool |
restore_mappings = true, |
|
|
bool |
restore_data = true |
|
) |
| |
Restores a saved ARION_CONTEXT into the associated Arion instance.
- Parameters
-
| [in] | ctx | The ARION_CONTEXT to be restored. |
| [in] | restore_mappings | True if memory allocations should be restored as in the saved context. This parameter does not condition restoring the memory allocations data. |
| [in] | restore_data | True if the memory allocations data should be restored as in the saved context. |
◆ restore() [2/2]
Restores a saved ARION_CONTEXT into the associated Arion instance, using a history of memory edits for optimization purpose.
- Parameters
-
| [in] | ctx | The ARION_CONTEXT to be restored. |
| [in] | edits | The history of memory operations to be reversed. |
◆ restore_from_file()
| void arion::ContextManager::restore_from_file |
( |
std::string |
file_path | ) |
|
Restores a saved context from a file into the associated Arion instance.
◆ save()
◆ save_to_file()
| void arion::ContextManager::save_to_file |
( |
std::string |
file_path | ) |
|
Saves the current context of the associated Arion instance into a dedicated file.
- Parameters
-
| [in] | file_path | The path of the output context file. |
◆ arion
| std::weak_ptr<Arion> arion::ContextManager::arion |
|
private |
The Arion instance which context is being managed.
The documentation for this class was generated from the following file: