MADNESS 0.10.1
Static Public Member Functions | List of all members
madness::archive::ArchiveLoadImpl< Archive, T, Enabler > Struct Template Reference

Default load of an object via serialize(ar, t). More...

#include <archive.h>

Static Public Member Functions

template<typename A = Archive, typename U = T, typename = std::enable_if_t<is_input_archive_v<A> && (has_member_serialize_v<U,A> || has_nonmember_serialize_v<U,A> || has_freestanding_serialize_v<U, A> || has_freestanding_default_serialize_v<U, A>)>>
static void load (const A &ar, const U &t)
 Load an object.
 
template<typename A = Archive, typename U = T, typename = std::enable_if_t<is_input_archive_v<A> && std::is_function<U>::value>>
static void load (const Archive &ar, U &t)
 Load function reference stored as function pointer.
 

Detailed Description

template<class Archive, class T, typename Enabler>
struct madness::archive::ArchiveLoadImpl< Archive, T, Enabler >

Default load of an object via serialize(ar, t).

Template Parameters
ArchiveThe archive type.
TThe data type.

Member Function Documentation

◆ load() [1/2]

template<class Archive , class T , typename Enabler >
template<typename A = Archive, typename U = T, typename = std::enable_if_t<is_input_archive_v<A> && (has_member_serialize_v<U,A> || has_nonmember_serialize_v<U,A> || has_freestanding_serialize_v<U, A> || has_freestanding_default_serialize_v<U, A>)>>
static void madness::archive::ArchiveLoadImpl< Archive, T, Enabler >::load ( const A ar,
const U &  t 
)
inlinestatic

◆ load() [2/2]

template<class Archive , class T , typename Enabler >
template<typename A = Archive, typename U = T, typename = std::enable_if_t<is_input_archive_v<A> && std::is_function<U>::value>>
static void madness::archive::ArchiveLoadImpl< Archive, T, Enabler >::load ( const Archive &  ar,
U &  t 
)
inlinestatic

Load function reference stored as function pointer.

Parameters
[in]arThe archive.
[in]tThe data.

References madness::archive::default_serialize(), MAD_ARCHIVE_DEBUG, and madness::archive::serialize().


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