commit 2025-10-04 09:54 IterElemLink() in ZtCBaseList : ZCppMain/ZMainHead.H
This commit is contained in:
@ -934,7 +934,7 @@ namespace ZNsMain
|
||||
ZCLink* VP_TmpLink =this;
|
||||
|
||||
while(VL_LoopIndex++ < AL_Distance)
|
||||
VP_TmpLink = VP_TmpLink->mp_PrevtLink ;
|
||||
VP_TmpLink = VP_TmpLink->mp_PrevLink ;
|
||||
|
||||
return VP_TmpLink;
|
||||
}/*
|
||||
@ -959,7 +959,7 @@ namespace ZNsMain
|
||||
ZCLink* VP_TmpLink = const_cast<ZCLink*>(this) ;
|
||||
|
||||
while(VL_LoopIndex++ < AL_Distance)
|
||||
VP_TmpLink = VP_TmpLink->mp_PrevtLink ;
|
||||
VP_TmpLink = VP_TmpLink->mp_PrevLink ;
|
||||
|
||||
return VP_TmpLink;
|
||||
}/*
|
||||
@ -2560,6 +2560,46 @@ namespace ZNsMain
|
||||
###############################################################################*/
|
||||
|
||||
|
||||
template<typename TFunctor> void IterElemLink(TFunctor AO_Functor)
|
||||
{
|
||||
ZCLink* VP_LoopLink=mp_HeadLink;
|
||||
|
||||
__for0(TypeSize, i, ml_LinkSize)
|
||||
{
|
||||
ZtCTypeData<TFunctor>::
|
||||
GetObjRef(AO_Functor)( *VP_LoopLink );
|
||||
|
||||
VP_LoopLink = VP_LoopLink->mp_NextLink ;
|
||||
}/*
|
||||
__for0(TypeSize, i, ml_LinkSize)*/
|
||||
}/*
|
||||
template<typename TFunctor> void IterElemLink(TFunctor AO_Functor) */
|
||||
|
||||
|
||||
template<typename TFunctor, typename TTypeHelp>
|
||||
void IterElemLink(TFunctor AO_Functor, TTypeHelp AO_TypeHelp)
|
||||
{
|
||||
typedef ZNsMain::
|
||||
ZtCCheckRef<TTypeHelp> ZCCheckRef;
|
||||
|
||||
ZCLink* VP_LoopLink=mp_HeadLink;
|
||||
|
||||
__for0(TypeSize, i, ml_LinkSize)
|
||||
{
|
||||
ZtCTypeData<TFunctor>::GetObjRef(AO_Functor)
|
||||
(
|
||||
*VP_LoopLink, ZCCheckRef::PassData(AO_TypeHelp)
|
||||
);
|
||||
////////////////////////////////////////////
|
||||
|
||||
VP_LoopLink = VP_LoopLink->mp_NextLink ;
|
||||
}/*
|
||||
__for0(TypeSize, i, ml_LinkSize)*/
|
||||
}/*
|
||||
template<typename TFunctor, typename TTypeHelp>
|
||||
void IterElemLink(TFunctor AO_Functor, TTypeHelp AO_TypeHelp) */
|
||||
|
||||
|
||||
template<typename TFunctor> void IterElemLink ///////////////////////
|
||||
(
|
||||
ZCLink& AR_StdLink ,
|
||||
|
Reference in New Issue
Block a user