Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_SmartRef< T > Class Template Reference

Template class representing a smart pointer for reference counted objects.

List of all members.

Public Member Functions

Constructor / Destructor
 CP_SmartRef ()
 Constructor.
 CP_SmartRef (T *inObj, bool inTransferOwnership=false)
 CP_SmartRef (const CP_SmartRef< T > &inRef)
template<class Other>
 CP_SmartRef (const CP_SmartRef< Other > &inRef)
 ~CP_SmartRef ()
 Destructor.
operators
T & operator * () const
T * operator-> () const
 operator T * () const
CP_SmartRef< T > & operator= (const CP_SmartRef< T > &inRef)
template<class Other>
CP_SmartRef< T > & operator= (const CP_SmartRef< Other > &inRef)
CP_SmartRef< T > & operator= (T *inObj)
template<class Other>
CP_SmartRef< T > & operator= (Other *inObj)
Object management
T * Get () const
T * Reset (T *inObj, bool inTransferOwnership=false)
T * Release ()

Protected Attributes

T * fObj

template<class T>
class CP_SmartRef< T >


Constructor & Destructor Documentation

template<class T>
CP_SmartRef< T >::CP_SmartRef  ) 
 

template<class T>
CP_SmartRef< T >::CP_SmartRef T *  inObj,
bool  inTransferOwnership = false
 

template<class T>
CP_SmartRef< T >::CP_SmartRef const CP_SmartRef< T > &  inRef  ) 
 

template<class T>
template<class Other>
CP_SmartRef< T >::CP_SmartRef const CP_SmartRef< Other > &  inRef  ) 
 

template<class T>
CP_SmartRef< T >::~CP_SmartRef  ) 
 


Member Function Documentation

template<class T>
T& CP_SmartRef< T >::operator *  )  const
 

template<class T>
T* CP_SmartRef< T >::operator->  )  const
 

template<class T>
CP_SmartRef< T >::operator T *  )  const
 

template<class T>
CP_SmartRef<T>& CP_SmartRef< T >::operator= const CP_SmartRef< T > &  inRef  ) 
 

template<class T>
template<class Other>
CP_SmartRef<T>& CP_SmartRef< T >::operator= const CP_SmartRef< Other > &  inRef  ) 
 

template<class T>
CP_SmartRef<T>& CP_SmartRef< T >::operator= T *  inObj  ) 
 

template<class T>
template<class Other>
CP_SmartRef<T>& CP_SmartRef< T >::operator= Other *  inObj  ) 
 

template<class T>
T* CP_SmartRef< T >::Get  )  const
 

template<class T>
T * CP_SmartRef< T >::Reset T *  inObj,
bool  inTransferOwnership = false
 

template<class T>
T * CP_SmartRef< T >::Release  ) 
 


Member Data Documentation

template<class T>
T* CP_SmartRef< T >::fObj [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Sep 17 20:02:14 2005 for CPLAT by  doxygen 1.4.0