#include <refcounter.h>
Inherits RefCounterPtrBase.
Inheritance diagram for RefCounterPtr< T, RetT >:


Public Member Functions | |
| RefCounterPtr (void) | |
| RefCounterPtr (T *t) | |
| RefCounterPtr (const RefCounterPtr< T, RetT > &t) | |
| ~RefCounterPtr (void) | |
| RefCounterPtr & | operator= (T *t) |
| RefCounterPtr & | operator= (const RefCounterPtr< T, RetT > &t) |
| RetT & | operator * (void) const |
| reference access | |
| RetT * | operator-> (void) const |
| pointer access | |
| operator RetT * (void) const | |
| conversion - allow automatic conversion to type RetT* | |
| bool | operator! (void) const |
| negation | |
| bool | operator== (const RefCounterPtr< T, RetT > &t) const |
| equivalence with another RefCounterPtr object | |
| bool | operator== (T *t) const |
| equivalence with pointer | |
| bool | isValid (void) const |
Protected Attributes | |
| T * | mPtr |
| pointer, that this class guards | |
The first template argument (denotet as T) is the type with it is going to treat as with RefCounter object. The second template argument (denoted as RetT) is the type we want to publish with this RefCounter object. "Publish" means that the result of access operators (operator *, operator ->, operator RetT*) is of type RetT. This all is due to classes (passed to T), that are derived from RefCounter class and wrap or refer to some object of type RetT. In that cases we want to access RetT and not the wrapper-class.
Definition at line 102 of file refcounter.h.
|
||||||||||
|
Definition at line 110 of file refcounter.h. |
|
||||||||||
|
Definition at line 114 of file refcounter.h. |
|
||||||||||
|
Definition at line 118 of file refcounter.h. |
|
||||||||||
|
Definition at line 122 of file refcounter.h. References RefCounterPtrBase::decRef(), and RefCounterPtr< T, RetT >::mPtr. Here is the call graph for this function: ![]() |
|
||||||||||
|
Definition at line 166 of file refcounter.h. References RefCounterPtr< T, RetT >::mPtr. |
|
||||||||||
|
reference access
Definition at line 143 of file refcounter.h. References assertL, and RefCounterPtr< T, RetT >::mPtr. Referenced by RefCounterPtr< T, RetT >::operator RetT *(), and RefCounterPtr< T, RetT >::operator->(). |
|
||||||||||
|
conversion - allow automatic conversion to type RetT*
Definition at line 151 of file refcounter.h. References assertL, RefCounterPtr< T, RetT >::mPtr, and RefCounterPtr< T, RetT >::operator *(). Here is the call graph for this function: ![]() |
|
||||||||||
|
negation
Definition at line 155 of file refcounter.h. References RefCounterPtr< T, RetT >::mPtr. |
|
||||||||||
|
pointer access
Definition at line 147 of file refcounter.h. References assertL, RefCounterPtr< T, RetT >::mPtr, and RefCounterPtr< T, RetT >::operator *(). Here is the call graph for this function: ![]() |
|
||||||||||
|
Definition at line 135 of file refcounter.h. References RefCounterPtrBase::decRef(), RefCounterPtrBase::incRef(), and RefCounterPtr< T, RetT >::mPtr. Here is the call graph for this function: ![]() |
|
||||||||||
|
Definition at line 127 of file refcounter.h. References RefCounterPtrBase::decRef(), RefCounterPtrBase::incRef(), and RefCounterPtr< T, RetT >::mPtr. Here is the call graph for this function: ![]() |
|
||||||||||
|
equivalence with pointer
Definition at line 163 of file refcounter.h. References RefCounterPtr< T, RetT >::mPtr. |
|
||||||||||
|
equivalence with another RefCounterPtr object
Definition at line 159 of file refcounter.h. References RefCounterPtr< T, RetT >::mPtr. |
|
|||||
|
pointer, that this class guards
Definition at line 105 of file refcounter.h. Referenced by RefCounterPtr< T, RetT >::isValid(), RefCounterPtr< T, RetT >::operator *(), RefCounterPtr< T, RetT >::operator RetT *(), RefCounterPtr< T, RetT >::operator!(), RefCounterPtr< T, RetT >::operator->(), RefCounterPtr< T, RetT >::operator=(), RefCounterPtr< T, RetT >::operator==(), and RefCounterPtr< T, RetT >::~RefCounterPtr(). |
1.4.5