Cptr< T > Class Template Reference

#include <Cptr.h>

Collaboration diagram for Cptr< T >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T>
class Cptr< T >

counting pointer

uses reference counting interface (ircountable ) to keep an object alive for as long as the Cptr instance is alive.


Public Member Functions

 Cptr ()
 Cptr (T *o)
 Cptr (const Cptr< T > &p)
 ~Cptr ()
Cptr< T > & operator= (const Cptr< T > &p)
Cptr< T > & operator= (T *p)
T & operator * ()
T * operator-> () const
 operator T * () const
T * item () const
bool operator! ()
bool isValid () const
bool operator== (const Cptr< T > &p) const
bool operator== (T *o) const

Protected Attributes

T * obj


Constructor & Destructor Documentation

template<class T>
Cptr< T >::Cptr  )  [inline]
 

template<class T>
Cptr< T >::Cptr T *  o  )  [inline]
 

template<class T>
Cptr< T >::Cptr const Cptr< T > &  p  )  [inline]
 

template<class T>
Cptr< T >::~Cptr  )  [inline]
 


Member Function Documentation

template<class T>
bool Cptr< T >::isValid  )  const [inline]
 

template<class T>
T* Cptr< T >::item  )  const [inline]
 

template<class T>
T& Cptr< T >::operator *  )  [inline]
 

template<class T>
Cptr< T >::operator T *  )  const [inline]
 

template<class T>
bool Cptr< T >::operator!  )  [inline]
 

template<class T>
T* Cptr< T >::operator->  )  const [inline]
 

template<class T>
Cptr<T>& Cptr< T >::operator= T *  p  )  [inline]
 

template<class T>
Cptr<T>& Cptr< T >::operator= const Cptr< T > &  p  )  [inline]
 

template<class T>
bool Cptr< T >::operator== T *  o  )  const [inline]
 

template<class T>
bool Cptr< T >::operator== const Cptr< T > &  p  )  const [inline]
 


Member Data Documentation

template<class T>
T* Cptr< T >::obj [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Feb 28 15:27:10 2007 for NaviTrack by  doxygen 1.4.6