65 ,
ZFMP_IN(ZFObject *, cacheValue)
127 _ZFP_ZFCachePrivate *d;
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:117
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_DECLARE_2(ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMethod
Definition ZFMethodDeclare.h:1025
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#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
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:328
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
#define ZFPROPERTY_ON_ATTACH_DECLARE(Type, Name)
see ZFPROPERTY_ON_INIT_DECLARE
Definition ZFPropertyDeclare.h:248
global header for ZFUtility module
#define ZFLIB_ZFUtility
used to export symbols
Definition ZFUtilityDef.h:15
virtual void objectOnInit(void)
override this to init your object
virtual void cacheGetAllT(ZFCoreArray< zfstring > &cacheKeyList, ZFCoreArray< zfauto > &cacheValueList)
access all cache data, used for debug only
virtual zfauto cacheGet(const zfstring &cacheKey)
access and remove cache, or return null if not exist, see cacheCheck
virtual zfindex & cacheMaxSize()
max cache size, 10 by default
Definition ZFCache.h:42
virtual void cacheOnAdd(ZFObject *cache)
see E_CacheOnAdd
Definition ZFCache.h:110
virtual void cacheTrim(zfindex size)
util method to trim the cache so that the cached data won't exceeds specified size
virtual void objectOnDeallocPrepare(void)
called before objectOnDealloc, safe to call virtual functions here
static zfidentity E_CacheOnAdd(void)
see ZFObject::observerNotify
virtual zfbool & cacheTrimWhenMemoryLow()
whether invoke cacheTrim when receive ZFGlobalEvent::E_AppOnMemoryLow, true by default
Definition ZFCache.h:48
virtual void objectOnDealloc(void)
override this to destroy your object
static zfidentity E_CacheOnRemove(void)
see ZFObject::observerNotify
virtual void cacheOnRemove(ZFObject *cache)
see E_CacheOnRemove
Definition ZFCache.h:114
virtual void cacheRemove(const zfstring &cacheKey)
remove all cache with cacheKey
virtual zffloat & cacheTrimThreshold()
leave how many cache alive while cacheTrimWhenMemoryLow, 0.2 by default
Definition ZFCache.h:54
virtual zfauto cacheCheck(const zfstring &cacheKey)
check cache, or return null if not exist, see cacheGet
virtual void cacheRemoveAll()
remove all cache
virtual void cacheAdd(const zfstring &cacheKey, ZFObject *cacheValue)
add cache
light weight array
Definition ZFCoreArray.h:331
void observerNotify(zfidentity eventId, ZFObject *param0=zft_zfnull, ZFObject *param1=zft_zfnull)
notify the observer with eventId
a ZFObject holder which would release content object automatically when destroyed
Definition zfautoFwd.h:34