ZF_GLOBAL_INITIALIZER_INIT_WITH_LEVEL(ZFThreadTaskRequestDataHolder, ZFLevelZFFrameworkEssential) { _ZFP_ZFThread_wrappedTaskCallback = zfnew(ZFListener); *_ZFP_ZFThread_wrappedTaskCallback = ZFCallbackForMethod(ZFMethodAccessFunction(_ZFP_ZFThreadTaskRequestCallback)); _ZFP_ZFThread_mergeCallbackIgnoreOldTask = zfnew(ZFListener); *_ZFP_ZFThread_mergeCallbackIgnoreOldTask = ZFCallbackForMethod(ZFMethodAccessFunction(_ZFP_ZFThreadTaskRequestMergeCallbackIgnoreOldTask)); _ZFP_ZFThread_mergeCallbackIgnoreNewTask = zfnew(ZFListener); *_ZFP_ZFThread_mergeCallbackIgnoreNewTask = ZFCallbackForMethod(ZFMethodAccessFunction(_ZFP_ZFThreadTaskRequestMergeCallbackIgnoreNewTask)); _ZFP_ZFThread_mergeCallbackDoNotMerge = zfnew(ZFListener); *_ZFP_ZFThread_mergeCallbackDoNotMerge = ZFCallbackForMethod(ZFMethodAccessFunction(_ZFP_ZFThreadTaskRequestMergeCallbackDoNotMerge)); _ZFP_ZFThread_taskDatas = zfAllocWithoutLeakTest(ZFArrayEditable); }
_ZFP_ZFCoreStringW::_ZFP_ZFCoreStringW(const zfcharW *s, zfindex len) { s = s ? s : zfTextW(""); if(len == zfindexMax) { d = zfnew(zfstlbasicstring<zfcharW>, s); } else { d = zfnew(zfstlbasicstring<zfcharW>, s, _ZFP_ZFCoreString_toStlSize(len)); } #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
_ZFP_ZFCoreStringA::_ZFP_ZFCoreStringA(const _ZFP_ZFCoreStringA &s, zfindex pos) : d(zfnew(zfstlbasicstring<zfcharA>, *((zfstlbasicstring<zfcharA> *)s.d), _ZFP_ZFCoreString_toStlSize(pos))) { #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
_ZFP_ZFCoreStringA::_ZFP_ZFCoreStringA(const _ZFP_ZFCoreStringA &s) : d(zfnew(zfstlbasicstring<zfcharA>, *((zfstlbasicstring<zfcharA> *)s.d))) { #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
// ============================================================ _ZFP_ZFCoreStringA::_ZFP_ZFCoreStringA(void) : d(zfnew(zfstlbasicstring<zfcharA>)) { #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
_ZFP_ZFCoreStringW::_ZFP_ZFCoreStringW(zfindex n, zfcharW c) : d(zfnew(zfstlbasicstring<zfcharW>, _ZFP_ZFCoreString_toStlSize(n), c)) { #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
_ZFP_ZFCoreStringW::_ZFP_ZFCoreStringW(const zfcharW *s) : d(zfnew(zfstlbasicstring<zfcharW>, s ? s : zfTextW(""))) { #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
_ZFP_ZFCoreStringW::_ZFP_ZFCoreStringW(const _ZFP_ZFCoreStringW &s, zfindex pos, zfindex len) : d(zfnew(zfstlbasicstring<zfcharW>, *((zfstlbasicstring<zfcharW> *)s.d), _ZFP_ZFCoreString_toStlSize(pos), _ZFP_ZFCoreString_toStlSize(len))) { #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
_ZFP_ZFCoreStringA::_ZFP_ZFCoreStringA(const zfcharA *s) : d(zfnew(zfstlbasicstring<zfcharA>, s ? s : zfTextA(""))) { #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
_ZFP_ZFCoreStringA::_ZFP_ZFCoreStringA(ZF_IN zfindex capacity) : d(zfnew(zfstlbasicstring<zfcharA>)) { ((zfstlbasicstring<zfcharA> *)d)->reserve(_ZFP_ZFCoreString_toStlSize(capacity)); #if _ZFP_ZFCoreStringDebugValue v = this->cString(); #endif }
ZFMethod *ZFMethod::_ZFP_ZFMethodAccess(ZF_IN const zfchar *internalMethodId) { ZFCoreMutexLocker(); ZFMethod *v = _ZFP_ZFMethodMap.get<ZFMethod *>(internalMethodId); if(v == zfnull) { v = zfnew(ZFMethod); _ZFP_ZFMethodMap.set(internalMethodId, ZFCorePointerForObject<ZFMethod *>(v)); } return v; }
_ZFP_ZFStyleableDefaultPointerHolder *_ZFP_ZFStyleableDefaultRefAccess(ZF_IN const zfchar *name) { ZFCoreMutexLocker(); ZFCoreMap &m = ZF_STATIC_INITIALIZER_INSTANCE(ZFStyleableDefaultStyleDataHolder)->instanceDataMap; ZFCorePointerBase *v = m.get(name); if(v == zfnull) { m.set(name, ZFCorePointerForObject<_ZFP_ZFStyleableDefaultPointerHolder *>(zfnew(_ZFP_ZFStyleableDefaultPointerHolder))); v = m.get(name); } return v->pointerValueT<_ZFP_ZFStyleableDefaultPointerHolder *>(); }
void invokeCountLog(ZF_IN_OPT const zfchar *key /* = zfnull */) { ZFCoreMap &m = _ZFP_ZFCoreStatisticDataMap(); zfindex *count = m.get<zfindex *>(key); if(count != zfnull) { ++(*count); } else { m.set(key, ZFCorePointerForObject<zfindex *>(zfnew(zfindex, 1))); } }
void _ZFP_ZFObjectCreatorRegister(ZF_IN const zfchar *type, ZF_IN _ZFP_ZFObjectCreatorCallback creatorCallback) { _ZFP_ZFObjectCreatorMap.set(type, ZFCorePointerForObject<_ZFP_ZFObjectCreatorCallback *>(zfnew(_ZFP_ZFObjectCreatorCallback, creatorCallback))); }
_ZFP_ZFObjectMutexImpl_sys_iOS_MutexImpl(void) : ZFObjectMutexImpl() , nativeMutex(zfnew(QMutex, QMutex::Recursive)) { }