SST  14.0.0
StructuralSimulationToolkit
SST::Core::Serialization::serialize< T > Class Template Reference

Serialization "gateway" object. More...

#include <serialize.h>

Public Member Functions

void operator() (T &t, serializer &ser)
 
void serialize_and_track_pointer (T &t, serializer &ser)
 This will track the pointer to the object if pointer tracking is turned on. More...
 

Detailed Description

template<class T>
class SST::Core::Serialization::serialize< T >

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.

Member Function Documentation

◆ serialize_and_track_pointer()

template<class T >
void SST::Core::Serialization::serialize< T >::serialize_and_track_pointer ( T &  t,
serializer ser 
)
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)


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