diff --git a/ZCppMain/ZMainHead.H b/ZCppMain/ZMainHead.H index 73784c7..72a86ff 100644 --- a/ZCppMain/ZMainHead.H +++ b/ZCppMain/ZMainHead.H @@ -781,65 +781,65 @@ namespace ZNsMain 넘어가게 하고 싶을 때 사용한다. class ZtCCheckRef 에서 사용하고 있다. -- 2021-04-10 16:15 */ - template class ZtCRef + template class ZtCRef { public : - typedef ZtpType& TypeData ; - typedef ZtpType& TypeRef ; - typedef ZtpType TypeRaw ; - typedef ZtpType TypeConst; + typedef TTypType& TypeData ; + typedef TTypType& TypeRef ; + typedef TTypType TypeRaw ; + typedef TTypType TypeConst; private: TypeData mr_Data; public : - ZtCRef(TypeData ZArTypeData) : mr_Data(ZArTypeData){} + ZtCRef(TypeData AR_TypeData) : mr_Data(AR_TypeData){} public : TypeData GetData(){return mr_Data;} public : };/* - template class ZtCRef*/ + template class ZtCRef*/ - template class ZtCRef + template class ZtCRef { public : - typedef ZtpType& TypeData ; - typedef ZtpType& TypeRef ; - typedef ZtpType TypeRaw ; - typedef const ZtpType& TypeConst; + typedef TTypType& TypeData ; + typedef TTypType& TypeRef ; + typedef TTypType TypeRaw ; + typedef const TTypType& TypeConst; private: TypeRaw& mr_Data; public : - ZtCRef(TypeRef ZArTypeData) : mr_Data(ZArTypeData){} + ZtCRef(TypeRef AR_TypeData) : mr_Data(AR_TypeData){} public : TypeRef GetData(){return mr_Data;} public : };/* - template class ZtCRef*/ + template class ZtCRef*/ - template class ZtCRef + template class ZtCRef { public : - typedef const ZtpType& TypeData ; - typedef const ZtpType& TypeRef ; - typedef const ZtpType TypeRaw ; - typedef const ZtpType& TypeConst; + typedef const TTypType& TypeData ; + typedef const TTypType& TypeRef ; + typedef const TTypType TypeRaw ; + typedef const TTypType& TypeConst; private: TypeRaw& mr_Data; public : - ZtCRef(TypeRef ZArTypeData) : mr_Data(ZArTypeData){} + ZtCRef(TypeRef AR_TypeData) : mr_Data(AR_TypeData){} public : TypeRef GetData(){return mr_Data;} public : };/* - template class ZtCRef*/ + template class ZtCRef*/ - template inline ZtCRef - ZftMakeCRef(ZtpType& ZArTypeData){ return ZtCRef (ZArTypeData );} - template inline ZtCRef* - ZftMakeCPtr(ZtpType& ZArTypeData){ return (ZtCRef*)(&ZArTypeData);} - /*////////////////////////////////////////////////////////////////////////////// + template inline ZtCRef + ZftMakeCRef(TTypType& AR_TypeData){ return ZtCRef (AR_TypeData );} + template inline ZtCRef* + ZftMakeCPtr(TTypType& AR_TypeData){ return (ZtCRef*)(&AR_TypeData);} + /*//////////////////////////////////////////////////////////////////////////////// - ■ ZftMakeCPtr() 은 인수 ZArTypeData 이 ZtCRef* 인 것처럼 반환한다. + ■ ZftMakeCPtr() 은 인수 AR_TypeData 이 ZtCRef* 인 것처럼 반환한다. 그래서 template class ZtCCheckRef< ZtCRef* > 에서 사용할 것이다. @@ -850,11 +850,11 @@ namespace ZNsMain ■ 아래 ZftMCR() 와 ZftMCP() 는 위 함수명을 더 축약한 것이다. -- 2025-08-07 17:41 - //////////////////////////////////////////////////////////////////////////////*/ - template inline ZtCRef - ZftMCR(ZtpType& ZArTypeData){ return ZtCRef (ZArTypeData );} - template inline ZtCRef* - ZftMCP(ZtpType& ZArTypeData){ return (ZtCRef*)(&ZArTypeData);} + ////////////////////////////////////////////////////////////////////////////////*/ + template inline ZtCRef + ZftMCR(TTypType& AR_TypeData){ return ZtCRef (AR_TypeData );} + template inline ZtCRef* + ZftMCP(TTypType& AR_TypeData){ return (ZtCRef*)(&AR_TypeData);} /* template 인수에 ZtCRef 가 있으면, 해당 값을 참조로 인식하고 @@ -907,11 +907,11 @@ namespace ZNsMain 아래 함수 - template inline ZtCRef* - ZftMakeCPtr(ZtpType& ZArTypeData){ return (ZtCRef*)(&ZArTypeData);} + template inline ZtCRef* + ZftMakeCPtr(TTypType& AR_TypeData){ return (ZtCRef*)(&AR_TypeData);} 를 통해, 생성된 포인터에 대해서, 정적 멤버 PassData() 로 - TypeRaw* 로 강제변환하고 있다. 그래서 ZtCRef 객 + TypeRaw* 로 강제변환하고 있다. 그래서 ZtCRef 객 체의 생성없이 TypeRaw 를 참조로 다룰려고 하는 것이다. -- 2025=08-07 17:19 @@ -942,7 +942,7 @@ namespace ZNsMain { public: enum {ZEConstRef = 0}; };/* - template class ZtCRef*/ + template class ZtCCheckConstRef*/ template class ZtCCheckConstRef { diff --git a/ZCppMain/ZtCObjAVL.H b/ZCppMain/ZtCObjAVL.H index e7b0b55..44e6a4c 100644 --- a/ZCppMain/ZtCObjAVL.H +++ b/ZCppMain/ZtCObjAVL.H @@ -224,16 +224,16 @@ namespace ZNsMain }/* bool IsFullNode() const*/ - typename ZtCRef::TypeConst GetData() const + typename ZtCRef::TypeConst GetData() const { return mo_Data; }/* - typename ZtCRef::TypeConst GetData() const*/ + typename ZtCRef::TypeConst GetData() const*/ - bool operator==(TTypArg AR_Type) const{return mo_Data==AR_Type;} - bool operator> (TTypArg AR_Type) const{return mo_Data> AR_Type;} - bool operator< (TTypArg AR_Type) const{return mo_Data< AR_Type;} + bool operator==(TypeArg AR_Type) const{return mo_Data==AR_Type;} + bool operator> (TypeArg AR_Type) const{return mo_Data> AR_Type;} + bool operator< (TypeArg AR_Type) const{return mo_Data< AR_Type;} template static void IterInOrder (ZCNode* AP_Node, TFunctor AO_Functor) {