0024831: Make iterators of NCollection classes STL-compatible
authordbp <dbp@opencascade.com>
Wed, 23 Apr 2014 05:38:58 +0000 (09:38 +0400)
committerapn <apn@opencascade.com>
Thu, 29 May 2014 12:19:55 +0000 (16:19 +0400)
commit79a35943dd18b5fb5480c47e551dd693fc2473c8
tree71be747a167b6c2123389ef263accfec720c5888
parent574d723693f1d791f65f92a46e7b38aceebceb1a
0024831: Make iterators of NCollection classes STL-compatible

STL-compatible iterators returned methods begin() and end() are provided in collection classes from NCollection package.
NCollection_Array1::Iterator is redesigned to use pointer instead of index.
Iterators of Sequence, Array, and Vector are extended by new methods to iterate backwards.

Use of SortTools_QuickSortOfReal is replaced by std::sort() in a few places (where possible).
25 files changed:
src/GeomFill/GeomFill_Frenet.cxx
src/NCollection/FILES
src/NCollection/NCollection_Array1.hxx
src/NCollection/NCollection_Array2.hxx
src/NCollection/NCollection_BaseList.hxx
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_DataMap.hxx
src/NCollection/NCollection_IndexedDataMap.hxx
src/NCollection/NCollection_IndexedMap.hxx
src/NCollection/NCollection_List.hxx
src/NCollection/NCollection_Map.hxx
src/NCollection/NCollection_Sequence.hxx
src/NCollection/NCollection_StlIterator.hxx [new file with mode: 0644]
src/NCollection/NCollection_Vector.hxx
src/QANCollection/FILES
src/QANCollection/QANCollection.cdl
src/QANCollection/QANCollection.cxx
src/QANCollection/QANCollection_Stl.cxx [new file with mode: 0644]
src/QANewModTopOpe/QANewModTopOpe_Glue_shell.cxx
src/QANewModTopOpe/QANewModTopOpe_Tools.cxx
src/TopOpeBRepTool/TopOpeBRepTool_TOOL.cxx