commit 2025-09-20 08:29 mv ZtCList to ZtCBaseList in ZCppMain/ZMainHead.H

This commit is contained in:
2025-09-20 08:29:43 +09:00
parent a821ee6cc5
commit d812f6c40e
4 changed files with 54 additions and 54 deletions

View File

@ -4995,7 +4995,7 @@ namespace ZNsMain
// class ZtCList : simple circular double linked list
// class ZtCBaseList : circular double linked list
template ///////////////////////////////////////////////
<
@ -5006,7 +5006,7 @@ namespace ZNsMain
typename TMoveObj = ZNsMain::
ZtCMoveObj<TType, TTypArgu, true>
>
class ZtCList /*######################################*/
class ZtCBaseList /*##################################*/
{
public:
class ZCLink;
@ -5023,8 +5023,8 @@ namespace ZNsMain
class ZCLink : public TypeAlloc
{
public:
friend class ZtCList;
public :
friend class ZtCBaseList;
private:
TypeData mo_Data ;
ZCLink* mp_NextLink ;
@ -5166,15 +5166,15 @@ namespace ZNsMain
private :*/
public :
ZtCList()
ZtCBaseList()
{
mp_HeadLink = 0 ;
mp_TailLink = 0 ;
ml_LinkCnt = 0 ;
}/*
ZtCList()*/
ZtCBaseList()*/
ZtCList(const ZtCList& rhs)
ZtCBaseList(const ZtCBaseList& rhs)
{
mp_HeadLink = 0 ;
mp_TailLink = 0 ;
@ -5182,35 +5182,30 @@ namespace ZNsMain
*this = (rhs);
}/*
ZtCList(const ZtCList& rhs)*/
ZtCBaseList(const ZtCBaseList& rhs)*/
~ZtCList()
~ZtCBaseList()
{
DeleteAll();
}/*
~ZtCList()*/
~ZtCBaseList()*/
ZtCList& operator=(const ZtCList& rhs)
ZtCBaseList& operator=(const ZtCBaseList& rhs)
{
if(this==&rhs) return *this;
if(this==&rhs) return *this; this->DeleteAll();
ZCLink* VP_NowLink = rhs.mp_HeadLink ;
this->DeleteAll();
__for0(TypeSize, i, rhs.size())
{
ZCLink* VP_NowLink = rhs.mp_HeadLink ;
this->AddHead(VP_NowLink->mo_Data) ;
__for0(TypeSize, i, rhs.size())
{
this->AddHead(VP_NowLink->mo_Data) ;
VP_NowLink = VP_NowLink->mp_NextLink;
}/*
__for0(TypeSize, i, rhs.size())*/
}
rhs. DeleteAll();
VP_NowLink = VP_NowLink->mp_NextLink;
}/*
__for0(TypeSize, i, rhs.size())*/
}/*
ZtCList& operator=(const ZtCList& rhs)*/
ZtCBaseList& operator=(const ZtCBaseList& rhs)*/
void DeleteAll()
@ -5551,7 +5546,7 @@ namespace ZNsMain
typename TMoveObj = ZNsMain::
ZtCMoveObj<TType, TTypArgu, true>
>
class ZtCList /*######################################*/
class ZtCBaseList /*##################################*/
@ -5663,12 +5658,17 @@ namespace ZNsMain
TypeCharC* VP_Right=rhs.mp_TypeChar;
#if(_CODE_OLD_)
TypeChar VC_Minus=0;
TypeChar VC_Minus = 0;
#else
int VI_Minus=0; // 페이지 하단의 'char 의 int 확장에 따른 문제의 코드' 참고.
int VI_Minus = 0; // 페이지 하단의 'char 의 int 확장에 따른 문제의 코드' 참고.
#endif
TypeLength VL_Index=0;
TypeLength VL_Loop =(ml_TypeLength<=rhs.ml_TypeLength ? ml_TypeLength : rhs.ml_TypeLength) ;
TypeLength VL_Index = 0;
TypeLength VL_Loop = /*::::::::::::::::::::::::::*/
( ml_TypeLength <= rhs.ml_TypeLength ?
this->ml_TypeLength :
rhs. ml_TypeLength
) ;
/*::::::::::::::::::::::::::::::::::::::::::::::::*/
while(VL_Index<VL_Loop)
{