SST
14.1.0
StructuralSimulationToolkit
|
Serialization "gateway" object. More...
#include <serialize.h>
Public Member Functions | |
void | operator() (T &t, serializer &ser) |
void | operator() (T &t, serializer &ser, const char *name) |
void | serialize_and_track_pointer (T &t, serializer &ser) |
This will track the pointer to the object if pointer tracking is turned on. More... | |
Serialization "gateway" object.
All serializations must come thorugh these template instances in order for pointer tracking to be controlled at one point. The actual serialization will happen in serialize_impl classes.
|
inline |
This will track the pointer to the object if pointer tracking is turned on.
Otherwise, it will just serialize normally. This is only useful if you have a non-pointer struct/class where other pieces of code will have pointers to it (e.g. a set/map contains the actual struct and other places point to the data's location)