/* */ #ifndef _D_CUID_COUNTER_H_ #define _D_CUID_COUNTER_H_ #include "common.h" typedef int32_t CUID; class CUIDCounter { private: int32_t count; public: CUIDCounter():count(0) {} ~CUIDCounter() {} CUID newID() { return ++count; } }; typedef SharedHandle CUIDCounterHandle; typedef SingletonHolder CUIDCounterSingletonHolder; #endif // _D_CUID_COUNTER_H_