15 static void TypePOD(
ZF_IN void *value) {
18 template<
typename T_Object>
19 static void TypeObject(
ZF_IN void *value) {
22 template<
typename T_Object>
23 static void TypePoolObject(
ZF_IN void *value) {
28#define ZFValueTypePointerRef() zfnull
30#define ZFValueTypePOD() _ZFP_ZFValueType::TypePOD
32#define ZFValueTypeObject(T_Object) _ZFP_ZFValueType::TypeObject<T_Object >
34#define ZFValueTypePoolObject(T_Object) _ZFP_ZFValueType::TypePoolObject<T_Object >
95 template<
typename T_Value>
115 if(_value && _type) {
116 void *valueOld = _value;
131 template<
typename T_Value>
133 if(_value && _type) {
134 void *valueOld = _value;
167 template<
typename T_Value>
169 return *(T_Value *)_value;
176 template<
typename T_Value>
178 return (T_Value *)_value;
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfdelete(instance)
same as delete defined for future use
Definition ZFCoreTypeDef_ClassType.h:110
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define zffree(ptr)
same as free defined for future use, do nothing if ptr is NULL
Definition ZFCoreTypeDef_ClassType.h:104
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:184
#define zfclassNotPOD
shows the class is not a POD type, you should not memset it or declare it in stack or copy value by c...
Definition ZFCoreTypeDef_ClassType.h:48
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:200
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
ZFCompareResult
compare result of two ZFObjects
Definition ZFCoreTypeDef_OtherType.h:28
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define zfpoolDelete(obj)
see zfpoolNew
Definition ZFMemPool.h:38
#define zfpoolNew(T_Type,...)
internal use only, for allocating internal types for performance
Definition ZFMemPool.h:37
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
base class of all objects
#define ZFOBJECT_DECLARE_WITH_CUSTOM_CTOR(ChildClass, SuperClass,...)
declare object which allow custom constructor
Definition ZFObjectDeclare.h:142
retain count logic for ZFFramework
#define ZFOBJECT_CACHE_RELEASE(action)
mark class that it should apply cache logic when alloc
Definition ZFObjectRetain.h:186
#define ZFValueTypePoolObject(T_Object)
see ZFValueType
Definition ZFValue.h:34
void(* ZFValueType)(void *value)
type for ZFValue
Definition ZFValue.h:48
virtual void objectOnInit(void)
override this to init your object
virtual void objectOnDeallocPrepare(void)
called before objectOnDealloc, safe to call virtual functions here
Definition ZFObjectCore.h:751
used to hold a non ZFObject type for performance, for internal use only
Definition ZFValue.h:53
virtual void objectOnDeallocPrepare(void)
called before objectOnDealloc, safe to call virtual functions here
Definition ZFValue.h:105
ZFValueType type(void)
delete callback to clear the value
Definition ZFValue.h:159
T_Value * valuePtr(void)
util method to access value as reference
Definition ZFValue.h:177
virtual void objectOnInit(void *value, ZFValueType type)
init with value and type
Definition ZFValue.h:85
virtual ZFCompareResult objectCompareValueImpl(ZFObject *anotherObj)
see objectCompareValue
ZFValue * value(void *value, ZFValueType type)
change the value
Definition ZFValue.h:114
virtual void objectOnInit(void)
override this to init your object
Definition ZFValue.h:101
virtual void objectInfoImplAppend(zfstring &ret)
see objectInfo
T_Value & value(void)
util method to access value as reference
Definition ZFValue.h:168
zfbool valid(void)
whether value valid
Definition ZFValue.h:151
ZFValue * value(T_Value const &value)
change the value
Definition ZFValue.h:132
void * valuePtr(void)
used to hold the raw pointer
Definition ZFValue.h:155
void objectOnInit(T_Value const &value)
init and copy value
Definition ZFValue.h:96