GClasses

GClasses::smart_ptr< T > Class Template Reference

A reference-counting smart-pointer. More...

#include <GHolders.h>

List of all members.

Public Member Functions

 smart_ptr ()
 smart_ptr (const smart_ptr &other)
template<class S >
 smart_ptr (S *pThat)
 ~smart_ptr ()
smart_ptroperator= (const smart_ptr &that)
template<class S >
smart_ptroperator= (S *pThat)
T & operator* () const
T * operator-> () const
T * get () const
void reset ()
size_t refCount ()

Protected Attributes

smart_ptr_ref_counter< T > * m_pRefCounter

Detailed Description

template<class T>
class GClasses::smart_ptr< T >

A reference-counting smart-pointer.


Constructor & Destructor Documentation

template<class T>
GClasses::smart_ptr< T >::smart_ptr ( ) [inline]
template<class T>
GClasses::smart_ptr< T >::smart_ptr ( const smart_ptr< T > &  other) [inline]
template<class T>
template<class S >
GClasses::smart_ptr< T >::smart_ptr ( S *  pThat) [inline]
template<class T>
GClasses::smart_ptr< T >::~smart_ptr ( ) [inline]

Member Function Documentation

template<class T>
T* GClasses::smart_ptr< T >::get ( ) const [inline]
template<class T>
T& GClasses::smart_ptr< T >::operator* ( ) const [inline]
template<class T>
T* GClasses::smart_ptr< T >::operator-> ( ) const [inline]
template<class T>
template<class S >
smart_ptr& GClasses::smart_ptr< T >::operator= ( S *  pThat) [inline]
template<class T>
smart_ptr& GClasses::smart_ptr< T >::operator= ( const smart_ptr< T > &  that) [inline]
template<class T>
size_t GClasses::smart_ptr< T >::refCount ( ) [inline]
template<class T>
void GClasses::smart_ptr< T >::reset ( ) [inline]

Member Data Documentation

template<class T>
smart_ptr_ref_counter<T>* GClasses::smart_ptr< T >::m_pRefCounter [protected]