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