commit 2025-09-20 08:29 mv ZtCList to ZtCBaseList in ZCppMain/ZMainHead.H
This commit is contained in:
@ -55,7 +55,7 @@ namespace ZNsMain
|
||||
)
|
||||
/*########################################################*/
|
||||
{
|
||||
// TPosList : ZNsMain::ZtCList<TypeLength> etc
|
||||
// TPosList : ZNsMain::ZtCBaseList<TypeLength> etc
|
||||
|
||||
if(0 > AL_Offset) AL_Offset=0 ;
|
||||
if(this->size() <= AL_Offset) return ;
|
||||
@ -100,7 +100,7 @@ namespace ZNsMain
|
||||
)
|
||||
/*##########################################################*/
|
||||
{
|
||||
// TPosList : ZNsMain::ZtCList<TypeLength> etc
|
||||
// TPosList : ZNsMain::ZtCBaseList<TypeLength> etc
|
||||
// AL_Replace : APC_Replace 의 길이
|
||||
// AL_Searched : 이전에 찾은 길이
|
||||
// ARR_SaveOut : AL_Replace>AL_Searched 인 경우에 여기에 저장한다.
|
||||
@ -245,11 +245,11 @@ namespace ZNsMain
|
||||
if(this->size() <= AL_Offset) return *this;
|
||||
if(this->size() < 1 ) return *this;
|
||||
|
||||
ZtCList<TypeLength> VO_CPosCList; FindPosToList
|
||||
ZtCBaseList<TypeLength> VO_CPosCList; FindPosToList
|
||||
(
|
||||
RR(VO_CPosCList), APC_Search, AL_Search, AL_Offset
|
||||
);
|
||||
/*////////////////////////////////////////////*/
|
||||
/*////////////////////////////////////////////////*/
|
||||
|
||||
return ReplaceByPosList /*::::::::::::::::::::::::::::*/
|
||||
(
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -159,7 +159,7 @@ namespace ZNsMain
|
||||
template<typename TDeriveString> class ZtCHelpBase
|
||||
{
|
||||
public:
|
||||
typedef ZNsMain::ZtCList< /////////////////////
|
||||
typedef ZNsMain::ZtCBaseList< /////////////////
|
||||
TDeriveString ,
|
||||
const TDeriveString&,
|
||||
TAlloc
|
||||
@ -204,7 +204,7 @@ namespace ZNsMain
|
||||
class ZCSearchInfo*/
|
||||
|
||||
|
||||
typedef ZNsMain::ZtCList ////////////////////////
|
||||
typedef ZNsMain::ZtCBaseList ////////////////////
|
||||
<
|
||||
ZCSearchInfo, const ZCSearchInfo&, TAlloc
|
||||
>
|
||||
@ -321,7 +321,7 @@ namespace ZNsMain
|
||||
)
|
||||
/*########################################################*/
|
||||
{
|
||||
// TPosList : ZNsMain::ZtCList<TypeLength> etc
|
||||
// TPosList : ZNsMain::ZtCBaseList<TypeLength> etc
|
||||
|
||||
if(0 > AL_Offset) AL_Offset=0 ;
|
||||
if(this->size() <= AL_Offset) return ;
|
||||
@ -457,7 +457,7 @@ namespace ZNsMain
|
||||
)
|
||||
/*#######################################################################*/
|
||||
{
|
||||
// TPosList : ZNsMain::ZtCList<TypeLength> etc
|
||||
// TPosList : ZNsMain::ZtCBaseList<TypeLength> etc
|
||||
// AL_Replace : APC_Replace 의 길이
|
||||
// AL_Searched : 이전에 찾은 길이
|
||||
|
||||
@ -1833,11 +1833,11 @@ namespace ZNsMain
|
||||
if(this->size() <= AL_Offset) return *this;
|
||||
if(this->size() < 1 ) return *this;
|
||||
|
||||
ZtCList<TypeLength> VO_CPosCList; FindPosToList
|
||||
ZtCBaseList<TypeLength> VO_CPosCList; FindPosToList
|
||||
(
|
||||
RR(VO_CPosCList), APC_Search, AL_Search, AL_Offset
|
||||
);
|
||||
/*////////////////////////////////////////////*/
|
||||
/*////////////////////////////////////////////////*/
|
||||
|
||||
return ReplaceByPosList /*::::::::::::::::::::::::::::*/
|
||||
(
|
||||
|
Reference in New Issue
Block a user