The Pedigree Project 0.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
UniqueArray< T > Class Template Reference

#include <Pointers.h>

+ Inheritance diagram for UniqueArray< T >:
+ Collaboration diagram for UniqueArray< T >:

Public Member Functions

 UniqueArray (UniqueArray< T > &&p) noexcept
 
 NOT_COPYABLE_OR_ASSIGNABLE (UniqueArray)
 
UniqueArray< T > & operator= (UniqueArray< T > &&p) noexcept
 
- Public Member Functions inherited from UniqueCommon< T >
T * operator* () const
 
 operator void * () const
 
T * get () const
 
void reset () noexcept
 
 NOT_COPYABLE_OR_ASSIGNABLE (UniqueCommon)
 

Static Public Member Functions

static UniqueArray< T > allocate (size_t count)
 

Protected Member Functions

virtual void destroy () noexcept override
 
- Protected Member Functions inherited from UniqueCommon< T >
 UniqueCommon (T *p)
 
void setPointer (T *p) noexcept
 
void release () noexcept
 

Private Member Functions

 UniqueArray (T *p)
 
void move_from (UniqueArray< T > &p) noexcept
 

Additional Inherited Members

- Protected Attributes inherited from UniqueCommon< T >
T * m_Pointer
 

Detailed Description

template<class T>
class UniqueArray< T >

Array version of UniquePointer that uses delete[] for deletion.

Definition at line 131 of file Pointers.h.

Constructor & Destructor Documentation

◆ ~UniqueArray()

template<class T >
virtual UniqueArray< T >::~UniqueArray ( )
inlinevirtual

Definition at line 135 of file Pointers.h.

◆ UniqueArray() [1/2]

template<class T >
UniqueArray< T >::UniqueArray ( UniqueArray< T > &&  p)
inlinenoexcept

Definition at line 140 of file Pointers.h.

◆ UniqueArray() [2/2]

template<class T >
UniqueArray< T >::UniqueArray ( T *  p)
inlineprivate

Definition at line 163 of file Pointers.h.

Member Function Documentation

◆ allocate()

template<class T >
static UniqueArray< T > UniqueArray< T >::allocate ( size_t  count)
inlinestatic

Definition at line 152 of file Pointers.h.

◆ destroy()

template<class T >
virtual void UniqueArray< T >::destroy ( )
inlineoverrideprotectedvirtualnoexcept

Reimplemented from UniqueCommon< T >.

Definition at line 157 of file Pointers.h.

◆ move_from()

template<class T >
void UniqueArray< T >::move_from ( UniqueArray< T > &  p)
inlineprivatenoexcept

Definition at line 165 of file Pointers.h.

◆ operator=()

template<class T >
UniqueArray< T > & UniqueArray< T >::operator= ( UniqueArray< T > &&  p)
inlinenoexcept

Definition at line 147 of file Pointers.h.


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