edit ZMainHead.H
This commit is contained in:
@ -833,6 +833,11 @@ namespace ZNsMain
|
||||
|
||||
-- 2010-03-12 20:00:00
|
||||
|
||||
class ZtCTypeCRTP 는 상속 클래스만을 표시하고,
|
||||
class ZtCTypeCRTP2_T 는 상속 클래스와 기반 클래스 모두를 표시한다.
|
||||
|
||||
-- 2021-03-25 16:01
|
||||
|
||||
■ 또한 이 이름 공간에 있는 클래스는 TypeData 라는 자료형을 갖는 것으로 하자.
|
||||
|
||||
-- 2011-10-18 21:51:00
|
||||
@ -876,7 +881,7 @@ namespace ZNsMain
|
||||
|
||||
/*//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
■ class ZtCTypeCRTP2<> 이 왜 필요한지, 그리고 사용례는 CWorkPool.H 의
|
||||
■ class ZtCTypeCRTP2<> 이 왜 필요한지, 그리고 사용례는 예전 파일 CWorkPool.H 의
|
||||
'주석-CCtrlAllocWork::CRTP2'를 참고한다.
|
||||
|
||||
-- 2012-09-20 09:46:00
|
||||
@ -890,7 +895,13 @@ namespace ZNsMain
|
||||
|
||||
class ZtCTypeNowCRTP<>
|
||||
|
||||
을 설계한다. 이 클래스의 사용예는 CCtrlAsyncSock.H 에 있다.
|
||||
을 설계한다. 이 클래스의 사용예는 예전 파일 CCtrlAsyncSock.H 에 있었다.
|
||||
아래 코드에서 TAsyncServ 의 상속 클래스가
|
||||
|
||||
없다면, CMainServ 는 TAsyncServ 과 같고,
|
||||
있다면, CMainServ0 가 상속 클래스
|
||||
|
||||
다.
|
||||
|
||||
typedef typename TAsyncServ::ZtCTypeCRTP ZtCTypeCRTP ;
|
||||
typedef typename ZtCTypeCRTP ::TypeData CMainServ0;
|
||||
@ -909,11 +920,14 @@ namespace ZNsMain
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
|
||||
|
||||
template<typename TTypeNow, typename TTypeChild> class ZtCTypeNowCRTP
|
||||
template<typename TTypeNow, typename TTypeChild>
|
||||
class ZtCTypeNowCRTP
|
||||
{ public: typedef TTypeChild TypeData; public: enum{ZEUseCRTP=1}; };
|
||||
template<typename TTypeNow> class ZtCTypeNowCRTP<TTypeNow, ZCEmpty>
|
||||
template<typename TTypeNow>
|
||||
class ZtCTypeNowCRTP<TTypeNow, ZCEmpty>
|
||||
{ public: typedef TTypeNow TypeData; public: enum{ZEUseCRTP=0}; };
|
||||
template<typename TTypeNow> class ZtCTypeNowCRTP<TTypeNow, void>
|
||||
template<typename TTypeNow>
|
||||
class ZtCTypeNowCRTP<TTypeNow, void >
|
||||
{ public: typedef TTypeNow TypeData; public: enum{ZEUseCRTP=0}; };
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user