1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

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).
This commit is contained in:
dbp
2014-04-23 09:38:58 +04:00
committed by apn
parent 574d723693
commit 79a35943dd
25 changed files with 1988 additions and 173 deletions

View File

@@ -5,6 +5,7 @@ QANCollection1.cxx
QANCollection2.cxx
QANCollection3.cxx
QANCollection4.cxx
QANCollection_Stl.cxx
QANCollection_Common.cxx
QANCollection_Common.hxx
QANCollection_Common2.hxx

View File

@@ -51,5 +51,6 @@ is
Commands2(DI : in out Interpretor from Draw);
Commands3(DI : in out Interpretor from Draw);
Commands4(DI : in out Interpretor from Draw);
CommandsStl(DI : in out Interpretor from Draw);
end;

View File

@@ -19,10 +19,11 @@
#include <gp_Pnt.hxx>
//#include <QANCollection_Common.hxx>
void QANCollection::Commands(Draw_Interpretor& theCommands) {
QANCollection::Commands1(theCommands);
QANCollection::Commands2(theCommands);
QANCollection::Commands3(theCommands);
QANCollection::Commands4(theCommands);
return;
void QANCollection::Commands (Draw_Interpretor& theCommands)
{
QANCollection::Commands1 (theCommands);
QANCollection::Commands2 (theCommands);
QANCollection::Commands3 (theCommands);
QANCollection::Commands4 (theCommands);
QANCollection::CommandsStl (theCommands);
}

File diff suppressed because it is too large Load Diff