diff --git a/ZCppMain/ZtCArray.H b/ZCppMain/ZtCArray.H index 3cca7d7..f689c9d 100644 --- a/ZCppMain/ZtCArray.H +++ b/ZCppMain/ZtCArray.H @@ -394,29 +394,14 @@ namespace ZNsMain operator Type&()*/ - void push_back(TypeArg AR_TypeArg) - { - AddTail(AR_TypeArg); - }/* - void push_back(TypeArg AR_TypeArg)*/ + void push_front(TypeArg AR_TypeArg){AddHead(AR_TypeArg);} + void push_back (TypeArg AR_TypeArg){AddTail(AR_TypeArg);} - Type& push_back() - { - return AddTail(); - }/* - Type& push_back()*/ + Type& push_front(){return AddHead();} + Type& push_back (){return AddTail();} - ZCIterator begin() - { - return ZCIterator(*this); - }/* - ZCIterator begin()*/ - - const ZCIterator begin() const - { - return ZCIterator(*this); - }/* - const ZCIterator begin() const*/ + ZCIterator begin() {return ZCIterator(*this);} + const ZCIterator begin() const{return ZCIterator(*this);} template void IterElement(TFunctor AO_Functor) @@ -428,7 +413,7 @@ namespace ZNsMain ZNsMain::ZtCTypeData:: GetObjRef(AO_Functor)( *VP_TypeArr ); - ++VP_TypeArr; + ++VP_TypeArr; ////////////////// /* ZtCTypeData 으로 인해서, AO_Functor 이 함수일 때뿐이 아니라, operator() 연산자를 가진 object 포인터일 때도 사용할 수 있게 되었다. */ @@ -827,13 +812,168 @@ namespace ZNsMain class ZtCArray /////////////////////////*/ - ////////////////////////////////////////////// + /////////////////////////////////////////////// ////////////// end class ZCArray ////////////// - ////////////////////////////////////////////// + /////////////////////////////////////////////// + namespace ZNsExam + { + + template class ZtCExamArray + { + public: + + #ifndef _WIN + + class CHelpObj + { + public: + + CHelpObj() + { + } + + CHelpObj(const CHelpObj& rhs) + { + cout<<"* CHelpObj(const CHelpObj& rhs)"< CArray ; + typedef CArray::IterEasy IterEasy; + + + CArray VO_Array; + + VO_Array.AddTail(10); + VO_Array.AddTail(20); + VO_Array.AddTail(30); + VO_Array.AddTail(40); + + + #ifdef _WIN + + class CHelpObj + { + public: + + CHelpObj() + { + } + + CHelpObj(const CHelpObj& rhs) + { + cout<<"* CHelpObj(const CHelpObj& rhs)"<