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 | |
| void | ZFObjectGlobalInstanceAdd (ZFObject *obj, ZFLevel level=ZFLevelAppNormal) |
| add a global instance that would be auto deleted while ZFFrameworkCleanup | |
| void | ZFObjectGlobalInstanceRemove (ZFObject *obj, 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 instance is safe to be cleanup during the assigned level, if necessary, use ZFObjectGlobalInstanceRemove to remove manually before ZFFrameworkCleanup