MADNESS 0.10.1
Public Member Functions | Public Attributes | List of all members
madness::archive::archive_array< T > Class Template Reference

Wrapper for dynamic arrays and pointers. More...

#include <archive.h>

Public Member Functions

 archive_array ()
 Constructor specifying no array and of 0 length.
 
 archive_array (const T *ptr, unsigned int n)
 Constructor specifying a memory location and size.
 

Public Attributes

unsigned int n
 The number of objects in the array.
 
const Tptr
 The pointer.
 

Detailed Description

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

Wrapper for dynamic arrays and pointers.

Template Parameters
TThe type of object being pointed to.

Constructor & Destructor Documentation

◆ archive_array() [1/2]

template<class T >
madness::archive::archive_array< T >::archive_array ( const T ptr,
unsigned int  n 
)
inline

Constructor specifying a memory location and size.

Parameters
[in]ptrThe pointer.
[in]nThe number of objects in the array.

◆ archive_array() [2/2]

template<class T >
madness::archive::archive_array< T >::archive_array ( )
inline

Constructor specifying no array and of 0 length.

Member Data Documentation

◆ n

template<class T >
unsigned int madness::archive::archive_array< T >::n

◆ ptr

template<class T >
const T* madness::archive::archive_array< T >::ptr

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