AUTOREFCOUNT< _TT > Class Template Reference

Template to manage reference-counted class. More...

#include <mi32/autorefcount.h>

Inheritance diagram for AUTOREFCOUNT< _TT >:

Inheritance graph
AUTOREFCOUNT\< DOUBLE_ARRAY\< UINT8 \> \>SPATMOD::DATABUFFER
[legend]
List of all members.

Public Member Functions

 AUTOREFCOUNT (const AUTOREFCOUNT< _TT > &rhs)
 AUTOREFCOUNT ()
void GetExclusive ()
_TT & operator * ()
const _TT & operator * () const
_TT * operator-> ()
const _TT * operator-> () const
AUTOREFCOUNToperator= (const AUTOREFCOUNT< _TT > &rhs)
 ~AUTOREFCOUNT ()

Detailed Description

template<typename _TT>
class AUTOREFCOUNT< _TT >

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.

Definition at line 24 of file autorefcount.h.


Constructor & Destructor Documentation

template<typename _TT>
AUTOREFCOUNT< _TT >::AUTOREFCOUNT (  )  [inline]

Default constructor.

Definition at line 28 of file autorefcount.h.

template<typename _TT>
AUTOREFCOUNT< _TT >::AUTOREFCOUNT ( const AUTOREFCOUNT< _TT > &  rhs  )  [inline]

Copy constructor.

Definition at line 32 of file autorefcount.h.

template<typename _TT>
AUTOREFCOUNT< _TT >::~AUTOREFCOUNT (  )  [inline]

Destructor.

Definition at line 37 of file autorefcount.h.


Member Function Documentation

template<typename _TT>
void AUTOREFCOUNT< _TT >::GetExclusive (  )  [inline]

Get exclusive instance if multiple references exist.

Will call use copy constructor if current reference count is > 1.

Definition at line 70 of file autorefcount.h.

template<typename _TT>
_TT& AUTOREFCOUNT< _TT >::operator * (  )  [inline]

Return reference to templated instance.

Definition at line 57 of file autorefcount.h.

template<typename _TT>
const _TT& AUTOREFCOUNT< _TT >::operator * (  )  const [inline]

Return constant reference to templated instance.

Definition at line 53 of file autorefcount.h.

template<typename _TT>
_TT* AUTOREFCOUNT< _TT >::operator-> (  )  [inline]

Return pointer to templated instance.

Definition at line 65 of file autorefcount.h.

template<typename _TT>
const _TT* AUTOREFCOUNT< _TT >::operator-> (  )  const [inline]

Return constant pointer to templated instance.

Definition at line 61 of file autorefcount.h.

template<typename _TT>
AUTOREFCOUNT& AUTOREFCOUNT< _TT >::operator= ( const AUTOREFCOUNT< _TT > &  rhs  )  [inline]

Assignment.

Definition at line 41 of file autorefcount.h.


The documentation for this class was generated from the following file:
Generated on Thu Apr 26 04:10:49 2007 for TNTsdk by  doxygen 1.5.2