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:
@@ -5,6 +5,7 @@ QANCollection1.cxx
|
||||
QANCollection2.cxx
|
||||
QANCollection3.cxx
|
||||
QANCollection4.cxx
|
||||
QANCollection_Stl.cxx
|
||||
QANCollection_Common.cxx
|
||||
QANCollection_Common.hxx
|
||||
QANCollection_Common2.hxx
|
||||
|
@@ -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;
|
||||
|
@@ -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);
|
||||
}
|
||||
|
1289
src/QANCollection/QANCollection_Stl.cxx
Normal file
1289
src/QANCollection/QANCollection_Stl.cxx
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user