pointer container with reference count logic More...
#include <ZFCorePointer.h>
Public Member Functions | |
void | pointerValue (T_Pointer const &value) |
set the pointer value | |
T_Pointer const & | pointerValue (void) const |
get the pointer value | |
virtual void | objectInfoOfContentT (zfstring &ret) const |
see objectInfoOfContent | |
virtual void | objectInfoOfContentT (zfstring &ret, typename ZFCoreInfoGetter< T_Pointer >::InfoGetter infoGetter) const |
see objectInfoOfContent | |
virtual const ZFCorePointer * | refNew (void) const |
create a new reference to the smart pointer | |
virtual const void * | pointerValueAccess (void) const |
get the internal pointer | |
virtual void * | pointerValueAccessNonConst (void) const |
get the internal pointer | |
virtual zfindex | objectRetainCount (void) const |
get current retain count | |
![]() | |
virtual void | objectInfoT (zfstring &ret) const |
see objectInfo | |
virtual zfstring | objectInfo (void) const |
return object info | |
virtual zfstring | objectInfoOfContent (void) const |
get content info or ZFTOKEN_zftToStringNotAvailable if not available | |
virtual ZFCompareResult | objectCompare (const ZFCorePointer &another) const |
compare by internal pointer value | |
virtual void | refDelete (void) const |
see refNew | |
template<typename T_PointerDesired> | |
T_PointerDesired | pointerValueT (void) const |
util method to get and cast to desired type | |
pointer container with reference count logic
usage:
you may store any types in ZFCorePointerT, if you are able to supply a custom delete callback, to declare your own type, see ZFCOREPOINTER_DECLARE
|
inlinevirtual |
Implements ZFCorePointer.
|
inlinevirtual |
create a new reference to the smart pointer
increase object reference and return a new smart pointer, old one should be deleted manually
after the newly created instance and the old one both been deleted, the object would be deleted finally
Implements ZFCorePointer.
|
inlinevirtual |
get the internal pointer
Implements ZFCorePointer.
|
inlinevirtual |
get the internal pointer
Implements ZFCorePointer.
|
inlinevirtual |
get current retain count
Implements ZFCorePointer.