VEE_ClonablePointer< T > Class Template Reference

This class implements pointer-carrier/cloning functionality. More...

#include <vee_clonable_pointer.h>

Collaboration diagram for VEE_ClonablePointer< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Protected Attributes


Detailed Description

template<typename T>
class VEE_ClonablePointer< T >

This class implements pointer-carrier/cloning functionality.

When you need to store and copy objects of abstract type then this class is handy. The base class that is the type "T" must have a method "T * clone() const" that is used to copy (or clone) objects.

Author:
Tommi Ilmonen


Constructor & Destructor Documentation

template<typename T>
VEE_ClonablePointer< T >::VEE_ClonablePointer  )  [inline]
 

Construct pointer carrier with NULL pointer.

template<typename T>
VEE_ClonablePointer< T >::VEE_ClonablePointer T ptr  )  [inline]
 

Takes hold of a pointer (does not clone).

template<typename T>
VEE_ClonablePointer< T >::VEE_ClonablePointer const VEE_ClonablePointer< T > &  that  )  [inline]
 

Clone a pointer from another carrier.

template<typename T>
VEE_ClonablePointer< T >::~VEE_ClonablePointer  )  [inline]
 

Deletes the hidden pointer.


Member Function Documentation

template<typename T>
VEE_ClonablePointer& VEE_ClonablePointer< T >::operator= const VEE_ClonablePointer< T > &  that  )  [inline]
 

Clone a pointer from another carrier.

template<typename T>
VEE_ClonablePointer& VEE_ClonablePointer< T >::operator= T that  )  [inline]
 

Takes hold of a pointer (does not clone).

template<typename T>
T* VEE_ClonablePointer< T >::ptr  )  [inline]
 

Returns the pointer (potentially NULL).

template<typename T>
const T* VEE_ClonablePointer< T >::ptr  )  const [inline]
 

Returns the pointer (potentially NULL).

template<typename T>
T* VEE_ClonablePointer< T >::clone  )  const [inline]
 

Returns clone of the pointer (or NULL).

template<typename T>
void VEE_ClonablePointer< T >::forget  )  [inline]
 

Forgets the pointer without deleting it.


Member Data Documentation

template<typename T>
T* VEE_ClonablePointer< T >::m_ptr [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Mar 12 21:09:20 2007 for VEE - The Visual Effects Engine by  doxygen 1.4.6