ZFFramework
 
Loading...
Searching...
No Matches
ZFIdentityGenerator Class Reference

identity generator utility More...

#include <ZFIdentityUtil.h>

Public Member Functions

zfidentity idAcquire (void)
 get next identity, ensured valid and ensured unused, and auto mark it as used
 
zfbool idRelease (zfidentity identity)
 mark the identity unused
 
zfbool idExist (zfidentity identity) const
 true if the identity is not used
 
void idExistGetAll (ZFCoreArray< zfidentity > &ret) const
 get all identity currently used, for debug use only
 
void objectInfoT (zfstring &ret) const
 see objectInfo
 
zfstring objectInfo (void) const
 return object info
 

Detailed Description

identity generator utility

used to generate an unused identity

Warning
this class is not thread-safe, you must achieve thread-safe manually, such as ZFCoreMutexLock

The documentation for this class was generated from the following file: