#include <simplesmartptr.h>
Public Methods | |
Type* | operator-> () const |
Type& | operator * () const |
SimpleSmartPointer ( Type *p = 0 ) | |
template<classT2> | SimpleSmartPointer<T2> ( const SimpleSmartPointer< T2 > &src ) |
SimpleSmartPointer ( const SimpleSmartPointer &src ) | |
~SimpleSmartPointer () | |
template<classT2> SimpleSmartPointer& | operator=<T2> ( const SimpleSmartPointer< T2 > &src ) |
SimpleSmartPointer& | operator= ( const SimpleSmartPointer &src ) |
SimpleSmartPointer& | operator= ( Type *src ) |
bool | operator== ( const Type *p ) const |
bool | operator!= ( const Type *p ) const |
bool | operator== ( const SimpleSmartPointer &sp ) const |
bool | operator!= ( const SimpleSmartPointer &sp ) const |
bool | operator! () const |
operator void * () const | |
Type* | get () const |
unsigned int | getReferenceCount () const |
Returns the reference count - For debugging purposes. More... |
The type pointed to must keep a reference count that is accessible through the two methods void ref() const and unsigned int unref() const. The type must also handle the reference count properly. The easiest way to do that is to use the ReferenceCount template class.
Definition at line 15 of file simplesmartptr.h.
|
Definition at line 21 of file simplesmartptr.h. |
|
Definition at line 23 of file simplesmartptr.h. |
|
Definition at line 26 of file simplesmartptr.h. |
|
Definition at line 30 of file simplesmartptr.h. |
|
Definition at line 64 of file simplesmartptr.h. |
|
Returns the reference count - For debugging purposes.
Definition at line 67 of file simplesmartptr.h. |
|
Definition at line 19 of file simplesmartptr.h. |
|
Definition at line 62 of file simplesmartptr.h. |
|
Definition at line 59 of file simplesmartptr.h. |
|
Definition at line 58 of file simplesmartptr.h. |
|
Definition at line 56 of file simplesmartptr.h. |
|
Definition at line 17 of file simplesmartptr.h. |
|
Definition at line 49 of file simplesmartptr.h. |
|
Definition at line 41 of file simplesmartptr.h. |
|
Definition at line 33 of file simplesmartptr.h. |
|
Definition at line 57 of file simplesmartptr.h. |
|
Definition at line 55 of file simplesmartptr.h. |