commit 2025-10-07 22:34 delete <typedef ZtCArray ZCArray> in ZCppMain/ZtCArray.H

This commit is contained in:
2025-10-07 22:34:27 +09:00
parent f35984ba84
commit d738a5fc2c

View File

@ -21,7 +21,6 @@ namespace ZNsMain
typedef TType TypeData;
typedef TTypArg TypeArg ;
typedef TSize TypeSize;
typedef ZtCArray ZCArray ;
public:
class ZCIterator;
public:
@ -36,7 +35,7 @@ namespace ZNsMain
private: mutable
Type* mp_Data ; mutable
TSize ml_ElePos; // *mp_Data 가 배열에서 차지하는 위치
ZCArray* mp_CArray;
ZtCArray* mp_CArray;
public:
ZCIterator()
@ -47,29 +46,29 @@ namespace ZNsMain
}/*
ZCIterator()*/
ZCIterator(ZCArray& AR_CArray, Type& AR_CData, TSize AL_ElePos)
ZCIterator(ZtCArray& AR_CArray, Type& AR_CData, TSize AL_ElePos)
{
mp_Data =&AR_CData ;
mp_CArray=&AR_CArray;
ml_ElePos=AL_ElePos ;
}/*
ZCIterator(ZCArray& AR_CArray, Type& AR_CData, TSize AL_ElePos)*/
ZCIterator(ZtCArray& AR_CArray, Type& AR_CData, TSize AL_ElePos)*/
ZCIterator(ZCArray& AR_CArray)
ZCIterator(ZtCArray& AR_CArray)
{
mp_Data = AR_CArray.mp_TypeArr ;
mp_CArray=&AR_CArray ;
ml_ElePos=(AR_CArray.size()>0 ? 1 : 0 ) ;
}/*
ZCIterator(ZCArray& AR_CArray)*/
ZCIterator(ZtCArray& AR_CArray)*/
ZCIterator(const ZCArray& AR_CArray)
ZCIterator(const ZtCArray& AR_CArray)
{
mp_Data = AR_CArray.mp_TypeArr ;
mp_CArray= const_cast<ZCArray*>(&AR_CArray) ;
mp_CArray= const_cast<ZtCArray*>(&AR_CArray);
ml_ElePos= (AR_CArray.size()>0 ? 1 : 0 ) ;
}/*
ZCIterator(const ZCArray& AR_CArray)*/
ZCIterator(const ZtCArray& AR_CArray)*/
Type& operator*( ){return *mp_Data;}
Type* operator->(){return mp_Data;}
@ -137,7 +136,7 @@ namespace ZNsMain
}/*
~ZtCArray()*/
ZCArray& operator=(const ZCArray& rhs)
ZtCArray& operator=(const ZtCArray& rhs)
{
if(this==&rhs) return *this ;
@ -154,13 +153,13 @@ namespace ZNsMain
return *this;
}/*
ZCArray& operator=(const ZCArray& rhs)*/
ZtCArray& operator=(const ZtCArray& rhs)*/
ZCArray& operator()(TypeArg AR_TypeArg)
ZtCArray& operator()(TypeArg AR_TypeArg)
{
AddTail(AR_TypeArg); return *this;
}/*
ZCArray& operator()(TypeArg AR_TypeArg)*/
ZtCArray& operator()(TypeArg AR_TypeArg)*/
void Delete()
@ -653,11 +652,11 @@ namespace ZNsMain
class ZtCArray /////////////////////////*/
///////////////////////////////////////////////
////////////////////////////////////////////////
////////////// end class ZCArray //////////////
////////////// end class ZtCArray //////////////
///////////////////////////////////////////////
////////////////////////////////////////////////