Go to the source code of this file.
|
| #define | mInvalidRefCount (-1) |
| |
| #define | mRefCountImpl(ClassName) mRefCountImplWithDestructor(ClassName, virtual ~ClassName(), delete this; ); |
| | Macro to setup a class with destructor for reference counting. More...
|
| |
| #define | mRefCountImplNoDestructor(ClassName) mRefCountImplWithDestructor(ClassName, virtual ~ClassName() {}, delete this; ); |
| | Macro to setup a class without destructor for reference counting. More...
|
| |
| #define | mDeclareCounters od_int32 oldcount = count_.get(), newcount; |
| |
| #define mDeclareCounters od_int32 oldcount = count_.get(), newcount; |
| #define mInvalidRefCount (-1) |
| #define mRefCountImpl |
( |
|
ClassName | ) |
mRefCountImplWithDestructor(ClassName, virtual ~ClassName(), delete this; ); |
Macro to setup a class with destructor for reference counting.
| #define mRefCountImplNoDestructor |
( |
|
ClassName | ) |
mRefCountImplWithDestructor(ClassName, virtual ~ClassName() {}, delete this; ); |
Macro to setup a class without destructor for reference counting.
template<class T >
| void deepUnRefNoDelete |
( |
ObjectSet< T > & |
os | ) |
|
|
inline |
template<class T >
| void refPtr |
( |
const T * |
ptr | ) |
|
|
inline |
Reference class pointer. Works for null pointers.
template<class T >
| void unRefAndZeroPtr |
( |
T *& |
ptr | ) |
|
|
inline |
Un-reference class pointer, and set it to zero. Works for null-pointers.
template<class T >
| void unRefNoDeletePtr |
( |
const T * |
ptr | ) |
|
|
inline |
Un-reference class pointer without delete. Works for null pointers.
template<class T >
| void unRefPtr |
( |
const T * |
ptr | ) |
|
|
inline |
Un-reference class pointer. Works for null pointers.