MADNESS 0.10.1
madness::archive::archive_ptr< T > Class Template Reference

Wrapper for an opaque pointer for serialization purposes. More...

#include <archive.h>

Public Member Functions

 archive_ptr (T *t=nullptr)
 Constructor specifying nullptr by default.
T & operator* ()
 Dereference the pointer.
template<class Archive>
void serialize (const Archive &ar)
 Serialize the pointer.

Public Attributes

T * ptr
 The pointer.

Detailed Description

template<class T>
class madness::archive::archive_ptr< T >

Wrapper for an opaque pointer for serialization purposes.

Performs a bitwise copy of the pointer without any remapping.

Template Parameters
TThe type of object being pointed to.
Todo
Verify this documentation.

Constructor & Destructor Documentation

◆ archive_ptr()

template<class T>
madness::archive::archive_ptr< T >::archive_ptr ( T * t = nullptr)
inline

Constructor specifying nullptr by default.

Parameters
[in]tThe pointer.

References ptr.

Member Function Documentation

◆ operator*()

template<class T>
T & madness::archive::archive_ptr< T >::operator* ( )
inline

Dereference the pointer.

Returns
The dereferenced pointer.

References ptr.

◆ serialize()

template<class T>
template<class Archive>
void madness::archive::archive_ptr< T >::serialize ( const Archive & ar)
inline

Serialize the pointer.

Template Parameters
ArchiveThe archive type.
Parameters
[in]arThe archive.

References ptr, and madness::archive::wrap_opaque().

Member Data Documentation

◆ ptr

template<class T>
T* madness::archive::archive_ptr< T >::ptr

The pointer.

Referenced by archive_ptr(), operator*(), and serialize().


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