Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::Pointer Class Template Reference

Used to create and manage referece counted pointers. reference counted pointer template. More...

#include <pointer.h>

List of all members.

Public Methods

 Pointer (T *ptr=NULL)
 Pointer (const Pointer< T > &ref)
virtual ~Pointer ()
Pointer& operator= (const Pointer< T > &ref)
T& operator * () const
T* getObject () const
T* operator-> () const
bool operator! () const
int operator++ () const
int operator-- () const

Protected Methods

void ptrDetach (void)

Protected Attributes

unsigned* ptrCount
T* ptrObject


Detailed Description

template<class T> class ost::Pointer

Used to create and manage referece counted pointers. reference counted pointer template.

Author:
David Sugar <dyfet@gnutelephony.org>


Constructor & Destructor Documentation

template<class T>
ost::Pointer<T>::Pointer<T> ( T * ptr = NULL ) [inline, explicit]
 

template<class T>
ost::Pointer<T>::Pointer<T> ( const Pointer< T > & ref ) [inline]
 

template<class T>
ost::Pointer<T>::~Pointer<T> ( ) [inline, virtual]
 


Member Function Documentation

template<class T>
T * ost::Pointer<T>::getObject ( void ) const [inline]
 

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

template<class T>
bool ost::Pointer<T>::operator! ( void ) const [inline]
 

template<class T>
int ost::Pointer<T>::operator++ ( void ) const [inline]
 

template<class T>
int ost::Pointer<T>::operator-- ( void ) const [inline]
 

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

template<class T>
Pointer<T> & ost::Pointer<T>::operator= ( const Pointer< T > & ref ) [inline]
 

template<class T>
void ost::Pointer<T>::ptrDetach ( void ) [inline, protected]
 


Member Data Documentation

template<class T>
unsigned * ost::Pointer<T>::ptrCount [protected]
 

template<class T>
T * ost::Pointer<T>::ptrObject [protected]
 


The documentation for this class was generated from the following file:
Generated at Sat May 12 18:59:43 2007 for GNU CommonC++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001