The Pedigree Project 0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
UniqueCommon< T > Class Template Reference
+ Inheritance diagram for UniqueCommon< T >:
+ Collaboration diagram for UniqueCommon< T >:

Public Member Functions

T * operator* () const
 
 operator void * () const
 
T * get () const
 
void reset () noexcept
 
 NOT_COPYABLE_OR_ASSIGNABLE (UniqueCommon)
 

Protected Member Functions

 UniqueCommon (T *p)
 
virtual void destroy () noexcept
 
void setPointer (T *p) noexcept
 
void release () noexcept
 

Protected Attributes

T * m_Pointer
 

Detailed Description

template<class T>
class UniqueCommon< T >

Definition at line 27 of file Pointers.h.

Constructor & Destructor Documentation

◆ UniqueCommon() [1/2]

template<class T >
UniqueCommon< T >::UniqueCommon ( )
inline

Definition at line 29 of file Pointers.h.

◆ ~UniqueCommon()

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

Definition at line 31 of file Pointers.h.

◆ UniqueCommon() [2/2]

template<class T >
UniqueCommon< T >::UniqueCommon ( T *  p)
inlineprotected

Definition at line 57 of file Pointers.h.

Member Function Documentation

◆ destroy()

template<class T >
virtual void UniqueCommon< T >::destroy ( )
inlineprotectedvirtualnoexcept

Definition at line 59 of file Pointers.h.

◆ get()

template<class T >
T * UniqueCommon< T >::get ( ) const
inline

Definition at line 43 of file Pointers.h.

◆ operator void *()

template<class T >
UniqueCommon< T >::operator void * ( ) const
inline

Definition at line 39 of file Pointers.h.

◆ operator*()

template<class T >
T * UniqueCommon< T >::operator* ( ) const
inline

Definition at line 35 of file Pointers.h.

◆ release()

template<class T >
void UniqueCommon< T >::release ( )
inlineprotectednoexcept

Stop tracking the memory but don't free it.

Definition at line 68 of file Pointers.h.

Referenced by UniquePointer< T >::releaseOwnership().

+ Here is the caller graph for this function:

◆ reset()

template<class T >
void UniqueCommon< T >::reset ( )
inlinenoexcept

Definition at line 47 of file Pointers.h.

◆ setPointer()

template<class T >
void UniqueCommon< T >::setPointer ( T *  p)
inlineprotectednoexcept

Definition at line 63 of file Pointers.h.

Member Data Documentation

◆ m_Pointer

template<class T >
T* UniqueCommon< T >::m_Pointer
protected

Definition at line 72 of file Pointers.h.


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