diff --git a/ZCppMain/ZtCArray.H b/ZCppMain/ZtCArray.H index 5467722..b10ca1f 100644 --- a/ZCppMain/ZtCArray.H +++ b/ZCppMain/ZtCArray.H @@ -184,8 +184,8 @@ namespace ZNsMain TypeSize GetUseSize() const{return ml_UseSize;} TypeSize GetAddSize() const{return ml_AddSize;} - TypeSize size () const{return ml_UseSize;} - TypeSize capacity() const{return ml_AllSize;} + TypeSize size () const{return ml_UseSize;} + TypeSize capacity () const{return ml_AllSize;} void SetAddSize(TypeSize AL_NewAddSize) @@ -259,44 +259,12 @@ namespace ZNsMain Type& operator[](TypeSize AL_Index) { - #ifdef _DEBUG - - if(AL_Index>=ml_UseSize) - { - std::fstream fileout("DEBUG.txt",std::ios::out | std::ios::app); - fileout<=ml_UseSize"<<", "<="<=ml_UseSize)*/ - - #endif //_DEBUG - return mp_TypeArr[AL_Index] ; }/* Type& operator[](TypeSize AL_Index)*/ const Type& operator[](TypeSize AL_Index) const { - #ifdef _DEBUG - - if(AL_Index>=ml_UseSize) - { - std::fstream fileout("DEBUG.txt", std::ios::out | std::ios::app); - fileout<=ml_UseSize"<=ml_UseSize)*/ - - #endif //_DEBUG - return mp_TypeArr[AL_Index] ; }/* const Type& operator[](TypeSize AL_Index) const*/ @@ -304,44 +272,12 @@ namespace ZNsMain Type& GetData(TypeSize AL_Index) { - #ifdef _DEBUG - - if(AL_Index>=ml_UseSize) - { - std::fstream fileout("DEBUG.txt",std::ios::out | std::ios::app); - fileout<=ml_UseSize"<=ml_UseSize)*/ - - #endif //_DEBUG - return mp_TypeArr[AL_Index] ; }/* Type& GetData(TypeSize AL_Index)*/ const Type& GetData(TypeSize AL_Index) const { - #ifdef _DEBUG - - if(AL_Index>=ml_UseSize) - { - std::fstream fileout("DEBUG.txt",std::ios::out | std::ios::app); - fileout<=ml_UseSize"<=ml_UseSize)*/ - - #endif //_DEBUG - return mp_TypeArr[AL_Index]; }/* const Type& GetData(TypeSize AL_Index) const*/ @@ -354,8 +290,8 @@ namespace ZNsMain for(TypeSize i=ml_UseSize-2; i>=0; --i) { mp_TypeArr[i+1]=mp_TypeArr[i] ; - }/* - for(TypeSize i=ml_UseSize-2; i>=0; --i)*/ + } + /*:::::::::::::::::::::::::::::::::::*/ mp_TypeArr[0]=AR_TypeArg ; }/* @@ -370,8 +306,8 @@ namespace ZNsMain for(TypeSize i=ml_UseSize-2; i>=0; --i) { mp_TypeArr[i+1]=mp_TypeArr[i] ; - }/* - for(TypeSize i=ml_UseSize-2; i>=0; --i)*/ + } + /*:::::::::::::::::::::::::::::::::::*/ return mp_TypeArr[0] ; }/* @@ -404,8 +340,8 @@ namespace ZNsMain Type& push_front(){return AddHead();} Type& push_back (){return AddTail();} - ZCIterator begin() {return ZCIterator(*this);} - const ZCIterator begin() const{return ZCIterator(*this);} + /***/ ZCIterator begin() {return ZCIterator(*this);} + const ZCIterator begin() const{return ZCIterator(*this);} template void IterElement(TFunctor AO_Functor)