ost::Pointer< T > - Used to create and manage referece counted pointers.
Contents
Constructor & Destructor Documentation
template<classT>ost::Pointer<T>::Pointer(T*ptr=NULL)[inline],[explicit]
References ost::Pointer< T >::ptrCount.
template<classT>ost::Pointer<T>::Pointer(constPointer<T>&ref)[inline]
References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject.
template<classT>virtualost::Pointer<T>::~Pointer()[inline],[virtual]
References ost::Pointer< T >::ptrDetach().
Detailed Description
template<classT>
class ost::Pointer< T >" Used to create and manage referece counted pointers.
Author
David Sugar dyfet@gnutelephony.org
reference counted pointer template.
Member Data Documentation
template<classT>unsigned*ost::Pointer<T>::ptrCount[protected]
Referenced by ost::Pointer< T >::operator!(), ost::Pointer< T >::operator--(), ost::Pointer< T
>::operator=(), ost::Pointer< T >::Pointer(), and ost::Pointer< T >::ptrDetach().
template<classT>T*ost::Pointer<T>::ptrObject[protected]
Referenced by ost::Pointer< T >::getObject(), ost::Pointer< T >::operator*(), ost::Pointer< T
>::operator->(), ost::Pointer< T >::operator=(), ost::Pointer< T >::Pointer(), and ost::Pointer< T
>::ptrDetach().
Member Function Documentation
template<classT>T*ost::Pointer<T>::getObject(void)const[inline]
References ost::Pointer< T >::ptrObject.
template<classT>boolost::Pointer<T>::operator!()const[inline]
References ost::Pointer< T >::ptrCount.
template<classT>T&ost::Pointer<T>::operator*()const[inline]
References ost::Pointer< T >::ptrObject.
template<classT>intost::Pointer<T>::operator++()const[inline]template<classT>intost::Pointer<T>::operator--()const[inline]
References ost::Pointer< T >::ptrCount.
template<classT>T*ost::Pointer<T>::operator->()const[inline]
References ost::Pointer< T >::ptrObject.
template<classT>Pointer&ost::Pointer<T>::operator=(constPointer<T>&ref)[inline]
References ost::Pointer< T >::ptrCount, ost::Pointer< T >::ptrDetach(), and ost::Pointer< T >::ptrObject.
template<classT>voidost::Pointer<T>::ptrDetach(void)[inline],[protected]
References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject.
Referenced by ost::Pointer< T >::operator=(), and ost::Pointer< T >::~Pointer().
Name
ost::Pointer< T > - Used to create and manage referece counted pointers.
Synopsis
#include <pointer.h>
PublicMemberFunctionsPointer (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
ProtectedMemberFunctions
void ptrDetach (void)
ProtectedAttributes
unsigned * ptrCount
T * ptrObject