Template to manage reference-counted class. More...
#include <mi32/autorefcount.h>

Public Member Functions | |
| AUTOREFCOUNT (const AUTOREFCOUNT< _TT > &rhs) | |
| AUTOREFCOUNT () | |
| ~AUTOREFCOUNT () | |
| void | GetExclusive () |
| _TT & | operator* () |
| const _TT & | operator* () const |
| _TT * | operator-> () |
| const _TT * | operator-> () const |
| AUTOREFCOUNT & | operator= (const AUTOREFCOUNT< _TT > &rhs) |
Template to manage reference-counted class.
Templated class must have AddRef() and Release() methods. If GetExclusive is used then must support copy constructor and have GetRefCount() method.
| AUTOREFCOUNT< _TT >::AUTOREFCOUNT | ( | ) | [inline] |
Default constructor.
| AUTOREFCOUNT< _TT >::AUTOREFCOUNT | ( | const AUTOREFCOUNT< _TT > & | rhs | ) | [inline] |
Copy constructor.
| AUTOREFCOUNT< _TT >::~AUTOREFCOUNT | ( | ) | [inline] |
Destructor.
| void AUTOREFCOUNT< _TT >::GetExclusive | ( | ) | [inline] |
Get exclusive instance if multiple references exist.
Will call use copy constructor if current reference count is > 1.
| _TT& AUTOREFCOUNT< _TT >::operator* | ( | ) | [inline] |
Return reference to templated instance.
| const _TT& AUTOREFCOUNT< _TT >::operator* | ( | ) | const [inline] |
Return constant reference to templated instance.
| _TT* AUTOREFCOUNT< _TT >::operator-> | ( | ) | [inline] |
Return pointer to templated instance.
| const _TT* AUTOREFCOUNT< _TT >::operator-> | ( | ) | const [inline] |
Return constant pointer to templated instance.
| AUTOREFCOUNT& AUTOREFCOUNT< _TT >::operator= | ( | const AUTOREFCOUNT< _TT > & | rhs | ) | [inline] |
Assignment.
1.6.1