global instance holder More...
Go to the source code of this file.
Macros | |
#define | ZFCLASS_SINGLETON_DECLARE(AccessTypeName, accessMethodName) |
util macro to declare a singleton instance access for normal object type | |
#define | ZFCLASS_SINGLETON_DECLARE_DETAIL(SetterAccessType, GetterAccessType, AccessTypeName, accessMethodName) |
see ZFCLASS_SINGLETON_DECLARE | |
#define | ZFCLASS_SINGLETON_DEFINE(OwnerClass, accessMethodName) |
see ZFCLASS_SINGLETON_DECLARE | |
#define | ZFCLASS_SINGLETON_DEFINE_WITH_LEVEL(OwnerClass, accessMethodName, ZFLevel_) |
see ZFCLASS_SINGLETON_DECLARE | |
#define | ZFCLASS_SINGLETON_DEFINE_DETAIL(OwnerClass, AccessTypeName, ObjectTypeName, accessMethodName, ZFLevel_) |
see ZFCLASS_SINGLETON_DECLARE | |
#define | ZFOBJECT_SINGLETON_DECLARE(AccessTypeName, accessMethodName) |
util macro to declare a singleton instance access for ZFObject type | |
#define | ZFOBJECT_SINGLETON_DECLARE_DETAIL(SetterAccessType, GetterAccessType, AccessTypeName, accessMethodName) |
see ZFOBJECT_SINGLETON_DECLARE | |
#define | ZFOBJECT_SINGLETON_DEFINE(OwnerClass, accessMethodName) |
see ZFOBJECT_SINGLETON_DECLARE | |
#define | ZFOBJECT_SINGLETON_DEFINE_WITH_LEVEL(OwnerClass, accessMethodName, ZFLevel_) |
see ZFOBJECT_SINGLETON_DECLARE | |
#define | ZFOBJECT_SINGLETON_DEFINE_DETAIL(OwnerClass, AccessTypeName, ObjectTypeName, accessMethodName, ZFLevel_) |
see ZFOBJECT_SINGLETON_DECLARE | |
Functions | |
const ZFCorePointer * | ZFObjectGlobalInstanceAdd (const ZFCorePointer &sp, ZFLevel level=ZFLevelAppNormal) |
add a global instance that would be auto deleted while ZFFrameworkCleanup | |
const ZFCorePointer * | ZFObjectGlobalInstanceAdd (ZFObject *obj, ZFLevel level=ZFLevelAppNormal) |
see ZFObjectGlobalInstanceAdd | |
void | ZFObjectGlobalInstanceRemove (const ZFCorePointer *sp, ZFLevel level) |
see ZFObjectGlobalInstanceAdd | |
global instance holder
#define ZFCLASS_SINGLETON_DECLARE | ( | AccessTypeName, | |
accessMethodName ) |
util macro to declare a singleton instance access for normal object type
usage:
you may change the internal singleton instance by:
#define ZFOBJECT_SINGLETON_DECLARE | ( | AccessTypeName, | |
accessMethodName ) |
util macro to declare a singleton instance access for ZFObject type
usage:
|
extern |
add a global instance that would be auto deleted while ZFFrameworkCleanup
you must ensure the smart pointer is safe to be cleanup during the assigned level, if necessary, use ZFObjectGlobalInstanceRemove to remove manually before ZFFrameworkCleanup