CXXR (C++ R) API
|
Class providing supplementary information for serialization. More...
#include <S11nScope.hpp>
Public Member Functions | |
S11nScope () | |
Primary constructor. |
Static Public Member Functions | |
static void | defineRelocation (GCNode *from, GCNode *to) |
Define a deserialization relocation. | |
static GCNode * | relocate (GCNode *from) |
Apply defined relocations. |
Class providing supplementary information for serialization.
This class is used to provide supplementary information to control the behaviour of deserialization. It is mandatory that any use of boost::serialization to deserialize GCNode objects takes place within the lifetime of a S11nScope object.
One function of this class is to manage relocation during deserialization, as described for class GCNode::PtrS11n . This is achieved using the functions defineRelocation() and relocate().
S11nScope objects are intended to be allocated on the processor stack: specifically, the class implementation requires that S11nScope objects are destroyed in the reverse order of creation, and the destructor checks this.
Define a deserialization relocation.
This function defines a deserialization relocation within the innermost S11nScope.
from | Non-null pointer value to be relocated. |
to | Non-null pointer value to which from is to be mapped. |
Apply defined relocations.
from | Pointer possibly to be relocated. |