#include <OWBI1_COWIntrusiveReference.hpp>
Collaboration diagram for OWBI1::COWIntrusiveReference< T >:
Public Types | |
typedef T | element_type |
typedef T *this_type::* | unspecified_bool_type |
Public Member Functions | |
COWIntrusiveReference () | |
COWIntrusiveReference (T *p, bool addRef=true) | |
template<class U> | |
COWIntrusiveReference (COWIntrusiveReference< U > const &rhs) | |
COWIntrusiveReference (COWIntrusiveReference const &rhs) | |
~COWIntrusiveReference () | |
template<class U> | |
COWIntrusiveReference & | operator= (COWIntrusiveReference< U > const &rhs) |
COWIntrusiveReference & | operator= (COWIntrusiveReference const &rhs) |
COWIntrusiveReference & | operator= (T *rhs) |
const T * | getPtr () const |
const T & | operator * () const |
const T * | operator-> () const |
T & | operator * () |
T * | operator-> () |
operator unspecified_bool_type () const | |
bool | operator! () const |
void | swap (COWIntrusiveReference &rhs) |
Private Types | |
typedef COWIntrusiveReference | this_type |
Private Member Functions | |
void | getWriteLock () |
Private Attributes | |
T * | m_pObj |
Friends | |
class | COWIntrusiveReference |
A smart pointer that uses intrusive reference counting.
Relies on unqualified calls to
void COWIntrusiveReferenceAddRef(T* p); void COWIntrusiveReferenceRelease(T* p); bool COWIntrusiveReferenceUnique(T* p); T* COWIntrusiveReferenceClone(T* p);
(p != 0)
The object is responsible for destroying itself.
If you want your class to be managed by COWIntrusiveReference, you can derive it from COWIntrusiveCountableBase, or write your own set of functions.
Definition at line 89 of file OWBI1_COWIntrusiveReference.hpp.
|
Definition at line 94 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 92 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 173 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 96 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 99 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 103 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 107 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 111 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 130 of file OWBI1_COWIntrusiveReference.hpp. Referenced by OWBI1::operator!=(), and OWBI1::operator==(). |
|
Definition at line 197 of file OWBI1_COWIntrusiveReference.hpp. Referenced by OWBI1::COWIntrusiveReference< PARMData >::operator *(), and OWBI1::COWIntrusiveReference< PARMData >::operator->(). |
|
Definition at line 153 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 135 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 174 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 179 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 163 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 144 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 125 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 120 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 115 of file OWBI1_COWIntrusiveReference.hpp. |
|
Definition at line 184 of file OWBI1_COWIntrusiveReference.hpp. Referenced by OWBI1::COWIntrusiveReference< PARMData >::operator=(), OWBI1::String::swap(), and OWBI1::swap(). |
|
Definition at line 193 of file OWBI1_COWIntrusiveReference.hpp. |
|