Home | nevrax.com |
|
NLMISC::CRefPtr Class Template ReferenceCRefPtr: an handle on a ptr. More...
Detailed Descriptiontemplate<class T>
CRefPtr: an handle on a ptr.
|
|
Init a NULL Ptr.
Definition at line 150 of file smart_ptr_inline.h. |
|
Attach a ptr to a RefPtr.
Definition at line 157 of file smart_ptr_inline.h. |
|
Copy constructor.
Definition at line 174 of file smart_ptr_inline.h. |
|
Release the RefPtr.
Definition at line 182 of file smart_ptr_inline.h. |
|
kill/delete the object pointed by the pointer, and inform the other RefPtr of this. "rp.kill()" and "delete (T*)rp" do the same thing, except that rp NULLity is updated with kill(). RefPtr which point to the same object could know if the object is valid, by just testing it ( by an implicit call to the cast operator to T*). But any calls to operator->() or operator *() will have unpredictible effects (may crash... :) ). Definition at line 238 of file smart_ptr_inline.h. |
|
Indirection operator. Doesn't test if ptr has been deleted somewhere, and doesn't check NULL.
Definition at line 269 of file smart_ptr_inline.h. References REF_TRACE. |
|
Cast operator. Check if the object has been deleted somewhere, and return NULL if this is the case.
Definition at line 257 of file smart_ptr_inline.h. |
|
Selection operator. Doesn't test if ptr has been deleted somewhere, and doesn't check NULL.
Definition at line 274 of file smart_ptr_inline.h. |
|
operator=. Giving a NULL pointer is a valid operation.
Definition at line 220 of file smart_ptr_inline.h. |
|
operator=. Giving a NULL pointer is a valid operation.
Definition at line 193 of file smart_ptr_inline.h. |
|
Definition at line 118 of file smart_ptr_inline.h. References pinfo, and SMART_INLINE. |
|
Definition at line 247 of file smart_ptr.h. Referenced by CRefPtr, kill, operator T *, operator=, unRef, and ~CRefPtr. |
|
Definition at line 248 of file smart_ptr.h. Referenced by CRefPtr, kill, operator T *, operator->, operator=, and ~CRefPtr. |