#include <pointer.h>
Public Member Functions | |
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 Member Functions | |
void | ptrDetach (void) |
Protected Attributes | |
unsigned * | ptrCount |
T * | ptrObject |
ost::Pointer< T >::Pointer | ( | T * | ptr = NULL |
) | [inline, explicit] |
References ost::Pointer< T >::ptrCount.
ost::Pointer< T >::Pointer | ( | const Pointer< T > & | ref | ) | [inline] |
References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject.
virtual ost::Pointer< T >::~Pointer | ( | ) | [inline, virtual] |
References ost::Pointer< T >::ptrDetach().
T* ost::Pointer< T >::getObject | ( | void | ) | const [inline] |
References ost::Pointer< T >::ptrObject.
bool ost::Pointer< T >::operator! | ( | void | ) | const [inline] |
References ost::Pointer< T >::ptrCount.
T& ost::Pointer< T >::operator* | ( | ) | const [inline] |
References ost::Pointer< T >::ptrObject.
int ost::Pointer< T >::operator++ | ( | void | ) | const [inline] |
int ost::Pointer< T >::operator-- | ( | void | ) | const [inline] |
References ost::Pointer< T >::ptrCount.
T* ost::Pointer< T >::operator-> | ( | ) | const [inline] |
References ost::Pointer< T >::ptrObject.
Pointer& ost::Pointer< T >::operator= | ( | const Pointer< T > & | ref | ) | [inline] |
void ost::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().
unsigned* ost::Pointer< T >::ptrCount [protected] |
T* ost::Pointer< T >::ptrObject [protected] |