NDDEM
Public Member Functions | Public Attributes | List of all members
cereal::memory_detail::LoadAndConstructLoadWrapper< Archive, T > Struct Template Reference

A struct that acts as a wrapper around calling load_andor_construct. More...

#include <memory.hpp>

Public Member Functions

 LoadAndConstructLoadWrapper (T *ptr)
 
template<class F >
 LoadAndConstructLoadWrapper (T *ptr, F &&sharedFromThisFunc)
 Constructor for embedding an early call for restoring shared_from_this. More...
 
void CEREAL_SERIALIZE_FUNCTION_NAME (Archive &ar)
 

Public Attributes

::cereal::construct< T > construct
 

Detailed Description

template<class Archive, class T>
struct cereal::memory_detail::LoadAndConstructLoadWrapper< Archive, T >

A struct that acts as a wrapper around calling load_andor_construct.

The purpose of this is to allow a load_and_construct call to properly enter into the 'data' NVP of the ptr_wrapper

Constructor & Destructor Documentation

◆ LoadAndConstructLoadWrapper() [1/2]

template<class Archive , class T >
cereal::memory_detail::LoadAndConstructLoadWrapper< Archive, T >::LoadAndConstructLoadWrapper ( T *  ptr)
inline

◆ LoadAndConstructLoadWrapper() [2/2]

template<class Archive , class T >
template<class F >
cereal::memory_detail::LoadAndConstructLoadWrapper< Archive, T >::LoadAndConstructLoadWrapper ( T *  ptr,
F &&  sharedFromThisFunc 
)
inline

Constructor for embedding an early call for restoring shared_from_this.

Member Function Documentation

◆ CEREAL_SERIALIZE_FUNCTION_NAME()

template<class Archive , class T >
void cereal::memory_detail::LoadAndConstructLoadWrapper< Archive, T >::CEREAL_SERIALIZE_FUNCTION_NAME ( Archive &  ar)
inline

Member Data Documentation

◆ construct

template<class Archive , class T >
::cereal::construct<T> cereal::memory_detail::LoadAndConstructLoadWrapper< Archive, T >::construct

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