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

#include <Pointers.h>

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

Public Member Functions

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

Static Public Member Functions

template<class... Args>
static UniquePointer< T > allocate (Args &&...args)
 

Private Member Functions

 UniquePointer (T *p)
 
void move_from (UniquePointer< T > &&p)
 

Additional Inherited Members

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

Detailed Description

template<class T>
class UniquePointer< T >

Provides a wrapper around a single-use pointer. The copy constructor will invalidate the reference in the object being copied from.

Definition at line 93 of file Pointers.h.


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