Classes | Public Member Functions | Protected Attributes

refcnt_ptr< T > Class Template Reference

#include <refcnt_ptr.h>

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

List of all members.

Classes

class  Holder

Public Member Functions

 refcnt_ptr (T *p)
 ~refcnt_ptr ()
 refcnt_ptr (const refcnt_ptr< T > &right)
refcnt_ptr< T > & operator= (const refcnt_ptr< T > &right)
refcnt_ptr< T > & operator= (refcnt_ptr< T > &right)
T * operator-> ()
T & operator* ()
T * getPointer ()
const T * operator-> () const
const T & operator* () const
const T * getPointer () const

Protected Attributes

Holderh_

Detailed Description

template<class T>
class refcnt_ptr< T >

Definition at line 7 of file refcnt_ptr.h.


Constructor & Destructor Documentation

template<class T>
refcnt_ptr< T >::refcnt_ptr ( T *  p  )  [inline, explicit]

Definition at line 38 of file refcnt_ptr.h.

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

Definition at line 43 of file refcnt_ptr.h.

template<class T>
refcnt_ptr< T >::refcnt_ptr ( const refcnt_ptr< T > &  right  )  [inline]

Member Function Documentation

template<class T>
T* refcnt_ptr< T >::getPointer (  )  [inline]

Definition at line 82 of file refcnt_ptr.h.

References refcnt_ptr< T >::h_, and refcnt_ptr< T >::Holder::ptr_.

template<class T>
const T* refcnt_ptr< T >::getPointer (  )  const [inline]

Definition at line 86 of file refcnt_ptr.h.

References refcnt_ptr< T >::h_, and refcnt_ptr< T >::Holder::ptr_.

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

Definition at line 81 of file refcnt_ptr.h.

References refcnt_ptr< T >::h_, and refcnt_ptr< T >::Holder::ptr_.

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

Definition at line 85 of file refcnt_ptr.h.

References refcnt_ptr< T >::h_, and refcnt_ptr< T >::Holder::ptr_.

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

Definition at line 80 of file refcnt_ptr.h.

References refcnt_ptr< T >::h_, and refcnt_ptr< T >::Holder::ptr_.

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

Definition at line 84 of file refcnt_ptr.h.

References refcnt_ptr< T >::h_, and refcnt_ptr< T >::Holder::ptr_.

template<class T>
refcnt_ptr<T>& refcnt_ptr< T >::operator= ( const refcnt_ptr< T > &  right  )  [inline]
template<class T>
refcnt_ptr<T>& refcnt_ptr< T >::operator= ( refcnt_ptr< T > &  right  )  [inline]

Member Data Documentation

template<class T>
Holder* refcnt_ptr< T >::h_ [protected]

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