Public Member Functions | Data Fields

Ptr< T > Class Template Reference

#include <Ptr.h>

Collaboration diagram for Ptr< T >:
Collaboration graph
[legend]

Public Member Functions

 Ptr (T *p=0)
 Ptr (const Ptr< T > &)
 ~Ptr ()
void clear ()
Ptr< T > & operator= (const Ptr< T > &)
Ptr< T > & operator= (T *)
T * to_ptr ()
 operator T * () const
T * operator-> () const
T & operator* () const
int operator== (const T *p)
int operator== (const Ptr< T > &p)
int operator!= (const T *p)
int operator!= (const Ptr< T > &p)
RefCountObj_ptr ()

Data Fields

T * m_ptr

Detailed Description

template<class T>
class Ptr< T >

Definition at line 305 of file Ptr.h.


Constructor & Destructor Documentation

template<class T>
Ptr< T >::Ptr ( T *  p = 0  )  [inline, explicit]

Definition at line 372 of file Ptr.h.

References Ptr< T >::_ptr(), Ptr< T >::m_ptr, and RefCountObj::refcount_inc().

template<class T>
Ptr< T >::Ptr ( const Ptr< T > &  src  )  [inline]

Definition at line 381 of file Ptr.h.

References Ptr< T >::_ptr(), Ptr< T >::m_ptr, and RefCountObj::refcount_inc().

template<class T >
Ptr< T >::~Ptr (  )  [inline]

Definition at line 390 of file Ptr.h.

References Ptr< T >::_ptr(), RefCountObj::free(), and Ptr< T >::m_ptr.


Member Function Documentation

template<class T>
RefCountObj* Ptr< T >::_ptr (  )  [inline]
template<class T >
void Ptr< T >::clear ( void   )  [inline]
template<class T>
Ptr< T >::operator T * (  )  const [inline]

Definition at line 324 of file Ptr.h.

template<class T>
int Ptr< T >::operator!= ( const Ptr< T > &  p  )  [inline]

Definition at line 349 of file Ptr.h.

template<class T>
int Ptr< T >::operator!= ( const T *  p  )  [inline]

Definition at line 345 of file Ptr.h.

template<class T>
T& Ptr< T >::operator* (  )  const [inline]

Definition at line 332 of file Ptr.h.

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

Definition at line 328 of file Ptr.h.

template<class T>
Ptr< T > & Ptr< T >::operator= ( const Ptr< T > &  src  )  [inline]

Definition at line 425 of file Ptr.h.

References Ptr< T >::m_ptr.

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

Definition at line 398 of file Ptr.h.

References Ptr< T >::_ptr(), Ptr< T >::m_ptr, RefCountObj::refcount_inc(), and T.

template<class T>
int Ptr< T >::operator== ( const T *  p  )  [inline]

Definition at line 337 of file Ptr.h.

template<class T>
int Ptr< T >::operator== ( const Ptr< T > &  p  )  [inline]

Definition at line 341 of file Ptr.h.

template<class T>
T* Ptr< T >::to_ptr (  )  [inline]

Definition at line 315 of file Ptr.h.


Field Documentation

template<class T>
T* Ptr< T >::m_ptr

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