edit test.cpp
This commit is contained in:
@ -455,10 +455,6 @@ namespace ZNsMain
|
||||
|
||||
형태를 사용하면 좋을 것 같다. -- 2014-06-16 23:11:00
|
||||
|
||||
|
||||
지금은 AO_TypeHelp 도 ZtCTypeData<> 을 이용해, 최대한 참조로 받을 수 있게
|
||||
하고 있다. -- 2021-03-08 20:31
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
|
||||
@ -472,7 +468,7 @@ namespace ZNsMain
|
||||
{
|
||||
ZNsMain::ZtCTypeData<TFunctor>::GetObjRef(AO_Functor)
|
||||
(
|
||||
*VP_TypeArr, ZCTypeHelp::GetObjRef(AO_TypeHelp)
|
||||
*VP_TypeArr, AO_TypeHelp
|
||||
);
|
||||
++VP_TypeArr; ///////////////////////////////////////
|
||||
}/*
|
||||
@ -502,25 +498,15 @@ namespace ZNsMain
|
||||
|
||||
형태를 사용하면 좋을 것 같다. -- 2014-06-16 23:11:00
|
||||
|
||||
|
||||
지금은 AO_TypeHelp1, 2 도 ZtCTypeData<> 을 이용해, 최대한 참조로 받을 수 있
|
||||
게 하고 있다. -- 2021-03-08 20:31
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
typedef ZNsMain::ZtCTypeData<TTypeHelp1> ZCTypeHelp1;
|
||||
typedef ZNsMain::ZtCTypeData<TTypeHelp2> ZCTypeHelp2;
|
||||
|
||||
|
||||
Type* VP_TypeArr = mp_TypeArr;
|
||||
|
||||
__for0(TypeSize, i, ml_UseSize)
|
||||
{
|
||||
ZNsMain::ZtCTypeData<TFunctor>::GetObjRef(AO_Functor)
|
||||
(
|
||||
*VP_TypeArr
|
||||
, ZCTypeHelp1::GetObjRef(AO_TypeHelp1)
|
||||
, ZCTypeHelp2::GetObjRef(AO_TypeHelp2)
|
||||
*VP_TypeArr, AO_TypeHelp1, AO_TypeHelp2
|
||||
);
|
||||
++VP_TypeArr; ///////////////////////////////////////
|
||||
}/*
|
||||
|
@ -1524,23 +1524,15 @@ namespace ZNsMain
|
||||
|
||||
형태를 사용하면 좋을 것 같다. -- 2014-06-16 23:11:00
|
||||
|
||||
|
||||
지금은 AO_TypeHelp 도 ZtCTypeData<> 을 이용해, 최대한 참조로 받을 수 있게
|
||||
하고 있다. -- 2021-03-08 20:31
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
typedef ZNsMain::
|
||||
ZtCTypeData<TTypeHelp> ZCTypeHelp;
|
||||
|
||||
|
||||
ZCLink* VP_LoopLink=mp_HeadLink;
|
||||
|
||||
__for0(int, i, ml_Size)
|
||||
{
|
||||
ZtCTypeData<TFunctor>::GetObjRef(AO_Functor)
|
||||
(
|
||||
VP_LoopLink->mo_Type, ZCTypeHelp::GetObjRef(AO_TypeHelp)
|
||||
VP_LoopLink->mo_Type, AO_TypeHelp
|
||||
);
|
||||
////////////////////////////////////////////
|
||||
|
||||
@ -1575,26 +1567,17 @@ namespace ZNsMain
|
||||
|
||||
형태를 사용하면 좋을 것 같다. -- 2014-06-16 23:11:00
|
||||
|
||||
|
||||
지금은 AO_TypeHelp1, 2 도 ZtCTypeData<> 을 이용해, 최대한 참조로 받을 수 있
|
||||
게 하고 있다. -- 2021-03-08 20:31
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
typedef ZNsMain::ZtCTypeData<TTypeHelp1> ZCTypeHelp1;
|
||||
typedef ZNsMain::ZtCTypeData<TTypeHelp2> ZCTypeHelp2;
|
||||
|
||||
|
||||
ZCLink* VP_LoopLink=mp_HeadLink;
|
||||
|
||||
__for0(int, i, ml_Size)
|
||||
{
|
||||
ZtCTypeData<TFunctor>::GetObjRef(AO_Functor)
|
||||
(
|
||||
VP_LoopLink->mo_Type
|
||||
, ZCTypeHelp1::GetObjRef(AO_TypeHelp1)
|
||||
, ZCTypeHelp2::GetObjRef(AO_TypeHelp2)
|
||||
VP_LoopLink->mo_Type, AO_TypeHelp1, AO_TypeHelp2
|
||||
);
|
||||
////////////////////////////////////////////
|
||||
|
||||
/* 위 코드로 인해서, AO_Functor 이 함수일 때 뿐이 아니라, operator()
|
||||
연산자를 가진 object 포인터일 때도 사용할 수 있게 되었다. */
|
||||
|
@ -77,17 +77,17 @@ int main(int ArgiCnt, char** AppArgu)
|
||||
_FFC_(ZCShowData2)
|
||||
|
||||
_FFS_(ZCShowData3)
|
||||
(ZTypInt AiInt, ZCTuple& AR_CTuple)
|
||||
(ZTypInt AiInt, ZCTuple* AP_CTuple)
|
||||
{
|
||||
cout<<"# Elem3 : "<< AiInt << ", nth=" << AR_CTuple._1++ << endl;
|
||||
cout<<"# Elem3 : "<< AiInt << ", nth=" << AP_CTuple->_1++ << endl;
|
||||
}/*
|
||||
(ZTypInt AiInt, ZCTuple* AR_CTuple)*/
|
||||
_FFC_(ZCShowData3)
|
||||
|
||||
_FFS_(ZCShowData4)
|
||||
(ZTypInt AiInt, ZCTuple& AR_CTuple)
|
||||
(ZTypInt AiInt, ZCTuple* AR_CTuple)
|
||||
{
|
||||
cout<<"# Elem4 : "<< AiInt << ", nth=" << AR_CTuple._1++ << endl;
|
||||
cout<<"# Elem4 : "<< AiInt << ", nth=" << AP_CTuple->_1++ << endl;
|
||||
}/*
|
||||
(ZTypInt AiInt, ZCTuple* AR_CTuple)*/
|
||||
_FFC_(ZCShowData4)
|
||||
|
Reference in New Issue
Block a user