commit 2025-10-14 00:11 edit a bit ZCppMain/ZMainHead.H

This commit is contained in:
2025-10-14 00:11:29 +09:00
parent 5166bbe7cf
commit 15f24be62d
3 changed files with 81 additions and 106 deletions

View File

@ -917,9 +917,9 @@ namespace ZNsMain
TypeDataC& operator()() const{return mo_DataObjt;}
ZCLink* GetNextPrevPtr(TypeSize AL_FarNum) // AL_FarNum 은 0 이거나 음수일 수 있다.
ZCLink * GetNextPrevPtr(TypeSize AL_FarNum) // AL_FarNum 은 0 이거나 음수일 수 있다.
{
ZCLink* VP_TmpLink=this;
ZCLink* VP_TmpLink = this;
if(AL_FarNum>=0)
{
@ -933,11 +933,10 @@ namespace ZNsMain
return VP_TmpLink;
}/*
ZCLink* GetNextPrevPtr(TypeSize AL_FarNum)*/
const ZCLink* GetNextPrevPtr(TypeSize AL_FarNum) const // or ZCLink const * const GetNextPrevPtr(TypeSize AL_FarNum) const
ZCLink * GetNextPrevPtr(TypeSize AL_FarNum)*/
ZCLinkC* GetNextPrevPtr(TypeSize AL_FarNum) const // or ZCLink const * const GetNextPrevPtr(TypeSize AL_FarNum) const
{
ZCLink* VP_TmpLink=const_cast<ZCLink*>(this);
ZCLinkC* VP_TmpLink = this;
if(AL_FarNum>=0)
{
@ -951,14 +950,14 @@ namespace ZNsMain
return VP_TmpLink;
}/*
const ZCLink* GetNextPrevPtr(TypeSize AL_FarNum) const*/
ZCLinkC* GetNextPrevPtr(TypeSize AL_FarNum) const*/
ZCLink* GetNextPtr(){return mp_NextLink;}
ZCLink* GetPrevPtr(){return mp_PrevLink;}
ZCLink * GetNextPtr() {return mp_NextLink;}
ZCLink * GetPrevPtr() {return mp_PrevLink;}
const ZCLink* GetNextPtr() const{return mp_NextLink;}
const ZCLink* GetPrevPtr() const{return mp_PrevLink;}
ZCLinkC* GetNextPtr() const{return mp_NextLink;}
ZCLinkC* GetPrevPtr() const{return mp_PrevLink;}
ZCLink* GetNextPtr(TypeSize AL_Distance)
@ -986,63 +985,63 @@ namespace ZNsMain
ZCLink* GetPrevPtr(TypeSize AL_Distance)*/
const ZCLink* GetNextPtr(TypeSize AL_Distance) const
ZCLinkC* GetNextPtr(TypeSize AL_Distance) const
{
TypeSize VL_LoopIndex=0 ;
ZCLink* VP_TmpLink =const_cast<ZCLink*>(this);
TypeSize VL_LoopIndex= 0 ;
ZCLinkC* VP_TmpLink = this ;
while(VL_LoopIndex++ < AL_Distance)
VP_TmpLink = VP_TmpLink->mp_NextLink ;
return VP_TmpLink;
}/*
const ZCLink* GetNextPtr(TypeSize AL_Distance) const*/
ZCLinkC* GetNextPtr(TypeSize AL_Distance) const*/
const ZCLink* GetPrevPtr(TypeSize AL_Distance) const
ZCLinkC* GetPrevPtr(TypeSize AL_Distance) const
{
TypeSize VL_LoopIndex=0 ;
ZCLink* VP_TmpLink = const_cast<ZCLink*>(this) ;
TypeSize VL_LoopIndex= 0 ;
ZCLinkC* VP_TmpLink = this ;
while(VL_LoopIndex++ < AL_Distance)
VP_TmpLink = VP_TmpLink->mp_PrevLink ;
return VP_TmpLink;
}/*
const ZCLink* GetPrevPtr(TypeSize AL_Distance) const*/
ZCLinkC* GetPrevPtr(TypeSize AL_Distance) const*/
ZCLink& operator+(TypeSize AL_Distance)
ZCLink & operator+(TypeSize AL_Distance)
{
if(AL_Distance>=0)
return *GetNextPtr(AL_Distance);
else return *GetPrevPtr(AL_Distance);
}/*
ZCLink& operator+(TypeSize AL_Distance)*/
ZCLink & operator+(TypeSize AL_Distance)*/
ZCLink& operator-(TypeSize AL_Distance)
ZCLink & operator-(TypeSize AL_Distance)
{
if(AL_Distance>=0)
return *GetPrevPtr(AL_Distance);
else return *GetNextPtr(AL_Distance);
}/*
ZCLink& operator-(TypeSize AL_Distance)*/
ZCLink & operator-(TypeSize AL_Distance)*/
const ZCLink& operator+(TypeSize AL_Distance) const
ZCLinkC& operator+(TypeSize AL_Distance) const
{
if(AL_Distance>=0)
return *GetNextPtr(AL_Distance);
else return *GetPrevPtr(AL_Distance);
}/*
const ZCLink& operator+(TypeSize AL_Distance) const*/
ZCLinkC& operator+(TypeSize AL_Distance) const*/
const ZCLink& operator-(TypeSize AL_Distance) const
ZCLinkC& operator-(TypeSize AL_Distance) const
{
if(AL_Distance>=0)
return *GetPrevPtr(AL_Distance);
else return *GetNextPtr(AL_Distance);
}/*
const ZCLink& operator-(TypeSize AL_Distance) const*/
ZCLinkC& operator-(TypeSize AL_Distance) const*/
public:
};/*
@ -1266,8 +1265,8 @@ namespace ZNsMain
public :
TypeListC& GetMain() const{return mr_CurrList;}
TypeLinkC& GetNode() const{return *mp_CurrLink;}
TypeThisC& GetMain() const{return mr_CurrList;}
TypeNodeC& GetNode() const{return *mp_CurrLink;}
/***************************************************/
TypeSize GetPos () const{return ml_CurrPos ;}
/***************************************************/
@ -1281,8 +1280,8 @@ namespace ZNsMain
TypeDataC& operator*() const{return **mp_CurrLink;}
operator TypeLinkC* () const{return mp_CurrLink;}
operator TypeLinkC& () const{return *mp_CurrLink;}
operator TypeNodeC* () const{return mp_CurrLink;}
operator TypeNodeC& () const{return *mp_CurrLink;}
bool operator == (const ZCNodePointC& rhs) const