commit 2025-10-10 21:45 add ZtCCount ZCppMain/ZMainHead.H
This commit is contained in:
@ -5348,12 +5348,43 @@ namespace ZNsMain
|
|||||||
class ZCCheckAlloc*/
|
class ZCCheckAlloc*/
|
||||||
|
|
||||||
|
|
||||||
static ZTypIntL SI_Count_DEBUG=0;
|
|
||||||
|
|
||||||
|
|
||||||
#endif //_DEBUG
|
#endif //_DEBUG
|
||||||
|
|
||||||
|
|
||||||
|
/*###################################################################
|
||||||
|
|
||||||
|
■ template<typename TClass, typename TTypInt> class ZtCCount 는
|
||||||
|
주로 DEBUG 용도나 어떤 객체의 수행 상태를 추적할 때 사용할 것
|
||||||
|
이다. -- 2025-10-10 21:43
|
||||||
|
|
||||||
|
###################################################################*/
|
||||||
|
|
||||||
|
template<typename TClass, typename TTypInt=ZTypLong> class ZtCCount
|
||||||
|
{
|
||||||
|
public :
|
||||||
|
typedef TTypInt TypeInt ;
|
||||||
|
typedef TClass TypeData;
|
||||||
|
private:
|
||||||
|
static TypeInt msi_Count;
|
||||||
|
public :
|
||||||
|
/*******************************************************************/
|
||||||
|
static TypeInt Curr (){return ZtCCount::msi_Count;}
|
||||||
|
/*******************************************************************/
|
||||||
|
static TypeInt Plus (ZTypLong AL_Plus=1)
|
||||||
|
{ return ZtCCount::msi_Count += AL_Plus; }
|
||||||
|
static TypeInt Minus(ZTypLong AL_Plus=1)
|
||||||
|
{ return ZtCCount::msi_Count -= AL_Plus; }
|
||||||
|
/*******************************************************************/
|
||||||
|
public :
|
||||||
|
};/*
|
||||||
|
template<typename TClass, typename TTypInt=ZTypLong> class ZtCCount*/
|
||||||
|
|
||||||
|
/*******************************************************************/
|
||||||
|
template<typename TClass, typename TTypInt>
|
||||||
|
TTypInt ZtCCount<TClass, TTypInt>::msi_Count= 0 ;
|
||||||
|
/*******************************************************************/
|
||||||
|
|
||||||
|
|
||||||
namespace ZNsConst
|
namespace ZNsConst
|
||||||
{
|
{
|
||||||
#if defined(_WIN)
|
#if defined(_WIN)
|
||||||
|
Reference in New Issue
Block a user