MADNESS  0.10.1
Public Member Functions | Public Attributes | List of all members
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. More...
 
Toperator* ()
 Dereference the pointer. More...
 
template<class Archive >
void serialize (const Archive &ar)
 Serialize the pointer. More...
 

Public Attributes

Tptr
 The pointer. More...
 

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.

Member Function Documentation

◆ operator*()

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

Dereference the pointer.

Returns
The dereferenced pointer.

References madness::archive::archive_ptr< T >::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 madness::archive::archive_ptr< T >::ptr, and madness::archive::wrap_opaque().

Member Data Documentation

◆ ptr

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

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