|
GNU CommonC++
|
Used to create and manage referece counted pointers. More...
#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 |
Used to create and manage referece counted pointers.
| ost::Pointer::Pointer | ( | T * | ptr = NULL | ) | [inline, explicit] |
References ptrCount.
| virtual ost::Pointer::~Pointer | ( | ) | [inline, virtual] |
References ptrDetach().
| T* ost::Pointer::getObject | ( | void | ) | const [inline] |
References ptrObject.
| bool ost::Pointer::operator! | ( | void | ) | const [inline] |
References ptrCount.
| T& ost::Pointer::operator* | ( | ) | const [inline] |
References ptrObject.
| int ost::Pointer::operator++ | ( | void | ) | const [inline] |
| int ost::Pointer::operator-- | ( | void | ) | const [inline] |
References ptrCount.
| T* ost::Pointer::operator-> | ( | ) | const [inline] |
References ptrObject.
References ptrDetach(), ptrObject, and ptrCount.
| void ost::Pointer::ptrDetach | ( | void | ) | [inline, protected] |
References ptrCount, and ptrObject.
Referenced by ~Pointer(), and operator=().
unsigned* ost::Pointer::ptrCount [protected] |
Referenced by ptrDetach(), Pointer(), operator=(), operator!(), and operator--().
T* ost::Pointer::ptrObject [protected] |
Referenced by ptrDetach(), Pointer(), operator=(), operator*(), getObject(), and operator->().
1.7.5