commit 2025-10-25 16:45 add ZtCObjtInitChain::_ByNo() in ZCppMain/ZMainHead.H
This commit is contained in:
@ -4005,6 +4005,13 @@ namespace ZNsMain
|
||||
return *static_cast<TypeChainC*>(this);
|
||||
}
|
||||
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & _ByNo()
|
||||
{ return GetChainByNo<TInTypeNo>(); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& _ByNo() const
|
||||
{ return GetChainByNo<TInTypeNo>(); }
|
||||
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||
|
||||
template<int TTypNo, typename TDataHere>
|
||||
bool SetDataRecur(const TDataHere& AR_Data)
|
||||
@ -4188,17 +4195,17 @@ namespace ZNsMain
|
||||
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & GetChainByNo()
|
||||
{
|
||||
return *(this);
|
||||
}
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& GetChainByNo() const
|
||||
{
|
||||
return *(this);
|
||||
}/*
|
||||
{ return *(this); }
|
||||
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& GetChainByNo() const
|
||||
*/
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & _ByNo()
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& _ByNo() const
|
||||
{ return *(this); }
|
||||
|
||||
template<int TTypNo, typename TDataHere>
|
||||
bool SetDataRecur(const TDataHere& AR_Data)
|
||||
@ -4279,6 +4286,30 @@ namespace ZNsMain
|
||||
|
||||
-- 2025-10-25 11:02
|
||||
|
||||
■ 예제 -- 2025-10-25 16:22
|
||||
|
||||
typedef ZtCObjtInitChain
|
||||
<
|
||||
char , ZCInitZero, ZtCObjtInitChain<
|
||||
string, ZCEmpty , ZtCObjtInitChain<
|
||||
double, ZCInitZero, ZtCObjtInitChain<
|
||||
int , ZCInitZero,
|
||||
ZCEmpty> > >
|
||||
> ZCObjtInitChain; ZCObjtInitChain VO_ZCObjtInitChain;
|
||||
|
||||
cout<<"# VO_ZCObjtInitChain : use cout"<<endl;
|
||||
cout<<VO_ZCObjtInitChain<<endl;
|
||||
cout<<"************************************"<<endl;
|
||||
|
||||
*VO_ZCObjtInitChain.GetChainByNo<0>()='A';
|
||||
*VO_ZCObjtInitChain.GetChainByNo<1>()=string("ABC");
|
||||
*VO_ZCObjtInitChain.GetChainByNo<2>()=1.2;
|
||||
*VO_ZCObjtInitChain.GetChainByNo<3>()=999;
|
||||
|
||||
cout<<"# VO_ZCObjtInitChain : use IterElement & ZCPrint()"<<endl;
|
||||
VO_ZCObjtInitChain.IterElement(ZCPrint()); cout<<endl;
|
||||
cout<<"************************************"<<endl;
|
||||
|
||||
///////////////////////////////////////////////////////////////////*/
|
||||
|
||||
template /*########################################################*/
|
||||
@ -4352,6 +4383,14 @@ namespace ZNsMain
|
||||
return *static_cast<TypeChainC*>(this);
|
||||
}
|
||||
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & _ByNo()
|
||||
{ return GetChainByNo<TInTypeNo>(); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& _ByNo() const
|
||||
{ return GetChainByNo<TInTypeNo>(); }
|
||||
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||
|
||||
|
||||
template<int TTypNo, typename TDataHere>
|
||||
bool SetDataRecur(const TDataHere& AR_Data)
|
||||
@ -4557,6 +4596,13 @@ namespace ZNsMain
|
||||
return *static_cast<TypeChainC*>(this);
|
||||
}
|
||||
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & _ByNo()
|
||||
{ return GetChainByNo<TInTypeNo>(); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& _ByNo() const
|
||||
{ return GetChainByNo<TInTypeNo>(); }
|
||||
/*:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
|
||||
|
||||
template<int TTypNo, typename TDataHere>
|
||||
bool SetDataRecur(const TDataHere& AR_Data)
|
||||
@ -4742,17 +4788,16 @@ namespace ZNsMain
|
||||
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & GetChainByNo()
|
||||
{
|
||||
return *(this);
|
||||
}
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& GetChainByNo() const
|
||||
{
|
||||
return *(this);
|
||||
}/*
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& GetChainByNo() const
|
||||
*/
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & _ByNo()
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& _ByNo() const
|
||||
{ return *(this); }
|
||||
|
||||
template<int TTypNo, typename TDataHere>
|
||||
bool SetDataRecur(const TDataHere& AR_Data)
|
||||
@ -4878,17 +4923,16 @@ namespace ZNsMain
|
||||
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & GetChainByNo()
|
||||
{
|
||||
return *(this);
|
||||
}
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& GetChainByNo() const
|
||||
{
|
||||
return *(this);
|
||||
}/*
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& GetChainByNo() const
|
||||
*/
|
||||
<TypeChainNow, TInTypeNo>::TypeChain & _ByNo()
|
||||
{ return *(this); }
|
||||
template<int TInTypeNo> typename ZtCTypeByNo
|
||||
<TypeChainNow, TInTypeNo>::TypeChainC& _ByNo() const
|
||||
{ return *(this); }
|
||||
|
||||
template<int TTypNo, typename TDataHere>
|
||||
bool SetDataRecur(const TDataHere& AR_Data)
|
||||
|
||||
Reference in New Issue
Block a user