0024911: Avoid using virtual functions in NCollection classes
authorabv <abv@opencascade.com>
Thu, 8 May 2014 05:13:00 +0000 (09:13 +0400)
committerapn <apn@opencascade.com>
Thu, 5 Jun 2014 10:12:18 +0000 (14:12 +0400)
commitddf2fe8eebe1c93eebc1dc2bbdbc2c9615fd32ac
tree9236ba4ce43dac1fc1985a76f7d1c516cd7d8cc4
parent598fcce93c5fcaafa8b556c1530ebaf62f414422
0024911: Avoid using virtual functions in NCollection classes

NCollection_BaseCollection class, relevant header files, and macro DEFINE_BASECOLLECTION removed.
Hence methods Assign() from other compatible (via inheritance of BaseCollection) collections are not available any more, as well as base Iterator class.

All methods of Iterator classes are made non-virtual, allowing their inline expansion for better performance.

OCCT-specific operators new and delete added to collection classes and removed from iterator classes.
66 files changed:
src/AIS/AIS_NDataMapOfTransientIteratorOfListTransient.hxx
src/AIS/AIS_NListTransient.hxx
src/BOPAlgo/BOPAlgo_BOP.cxx
src/BOPCol/BOPCol_NCVector.hxx
src/BOPDS/BOPDS_Iterator.cxx
src/BOPDS/BOPDS_IteratorSI.cxx
src/BOPDS/BOPDS_SubIterator.cxx
src/Font/Font_NListOfSystemFont.hxx
src/GeomInt/GeomInt_IntSS_1.cxx
src/Graphic3d/Graphic3d_NListOfHAsciiString.hxx
src/Message/Message_MsgFile.cxx
src/NCollection/FILES
src/NCollection/NCollection_Array1.hxx
src/NCollection/NCollection_Array2.hxx
src/NCollection/NCollection_BaseAllocator.cxx
src/NCollection/NCollection_BaseCollection.hxx [deleted file]
src/NCollection/NCollection_BaseList.cxx
src/NCollection/NCollection_BaseList.hxx
src/NCollection/NCollection_BaseMap.cxx
src/NCollection/NCollection_BaseMap.hxx
src/NCollection/NCollection_BaseSequence.cxx
src/NCollection/NCollection_BaseSequence.hxx
src/NCollection/NCollection_BaseVector.cxx
src/NCollection/NCollection_BaseVector.hxx
src/NCollection/NCollection_Buffer.hxx
src/NCollection/NCollection_CellFilter.hxx
src/NCollection/NCollection_DataMap.hxx
src/NCollection/NCollection_DefineArray1.hxx
src/NCollection/NCollection_DefineArray2.hxx
src/NCollection/NCollection_DefineBaseCollection.hxx [deleted file]
src/NCollection/NCollection_DefineDataMap.hxx
src/NCollection/NCollection_DefineDoubleMap.hxx
src/NCollection/NCollection_DefineHArray1.hxx
src/NCollection/NCollection_DefineHArray2.hxx
src/NCollection/NCollection_DefineHSequence.hxx
src/NCollection/NCollection_DefineIndexedDataMap.hxx
src/NCollection/NCollection_DefineIndexedMap.hxx
src/NCollection/NCollection_DefineMap.hxx
src/NCollection/NCollection_DefineSequence.hxx
src/NCollection/NCollection_DefineTListIterator.hxx [deleted file]
src/NCollection/NCollection_DefineTListNode.hxx [deleted file]
src/NCollection/NCollection_DefineVector.hxx
src/NCollection/NCollection_DoubleMap.hxx
src/NCollection/NCollection_IndexedDataMap.hxx
src/NCollection/NCollection_IndexedMap.hxx
src/NCollection/NCollection_List.hxx
src/NCollection/NCollection_ListNode.hxx
src/NCollection/NCollection_LocalArray.hxx
src/NCollection/NCollection_Map.hxx
src/NCollection/NCollection_Sequence.hxx
src/NCollection/NCollection_StdBase.hxx [deleted file]
src/NCollection/NCollection_StlIterator.hxx
src/NCollection/NCollection_TListIterator.hxx
src/NCollection/NCollection_TListNode.hxx
src/NCollection/NCollection_UBTree.hxx
src/NCollection/NCollection_Vector.hxx
src/Prs3d/Prs3d_NListOfSequenceOfPnt.hxx
src/SelectMgr/SelectMgr_DataMapOfObjectOwners.hxx
src/TObj/TObj_Container.hxx
src/TObj/TObj_Model.hxx
src/TObj/TObj_SequenceOfIterator.hxx
src/TObj/TObj_SequenceOfObject.hxx
src/TObj/TObj_TNameContainer.cxx
src/Visual3d/Visual3d_NListOfLayerItem.hxx
src/Voxel/Voxel_TypeDef.hxx
src/VrmlData/VrmlData_Scene.hxx