mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024859: Replace SortTools by STL equivalents
Package SortTools and its derived classes are removed; STL sort algorithms are used instead. Comparator objects are mostly reimplemented as local classes.
This commit is contained in:
@@ -50,8 +50,6 @@
|
||||
#include <TColStd_HArray1OfReal.hxx>
|
||||
#include <TColgp_Array1OfPnt2d.hxx>
|
||||
#include <TColGeom2d_SequenceOfCurve.hxx>
|
||||
#include <SortTools_ShellSortOfReal.hxx>
|
||||
#include <TCollection_CompareOfReal.hxx>
|
||||
|
||||
#include <TopTools_SequenceOfShape.hxx>
|
||||
#include <TopTools_ListIteratorOfListOfShape.hxx>
|
||||
|
@@ -48,8 +48,6 @@ class BRepMesh_Edge;
|
||||
class BRepMesh_Vertex;
|
||||
class gp_Pnt;
|
||||
class BRepMesh_FaceAttribute;
|
||||
class TopTools_DataMapOfShapeReal;
|
||||
|
||||
|
||||
//! Algorithm to mesh a shape with respect of the <br>
|
||||
//! frontier the deflection and by option the shared <br>
|
||||
|
@@ -37,8 +37,6 @@
|
||||
|
||||
#include <Standard_ErrorHandler.hxx>
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <SortTools_ShellSortOfReal.hxx>
|
||||
#include <TCollection_CompareOfReal.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
#include <TColStd_ListOfInteger.hxx>
|
||||
#include <TColStd_SequenceOfReal.hxx>
|
||||
@@ -448,10 +446,9 @@ static void filterParameters(const BRepMesh::IMapOfReal& theParams,
|
||||
for (j = 1; j <= anInitLen; j++)
|
||||
aParamArray(j) = theParams(j);
|
||||
|
||||
TCollection_CompareOfReal aCompare;
|
||||
SortTools_ShellSortOfReal::Sort(aParamArray, aCompare);
|
||||
std::sort (aParamArray.begin(), aParamArray.end());
|
||||
|
||||
// mandadory pre-filtering using the first (minimal) filter value
|
||||
// mandatory pre-filtering using the first (minimal) filter value
|
||||
Standard_Real aP1, aP2;
|
||||
aP1 = aParamArray(1);
|
||||
aParamTmp.Append(aP1);
|
||||
|
Reference in New Issue
Block a user