mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-05 20:27:38 +08:00
Coding - Refactor HArray and HSequence Definitions (#962)
- Replaced custom DEFINE_HARRAY1 and DEFINE_HSEQUENCE macros with typedefs to NCollection_HArray1 and NCollection_HSequence for various data types across multiple files. - Updated header files in the following modules: - HLRAlgo - TKShHealing - TKBRep - TKG2d - TKG3d - TKGeomBase - TKMeshVS - TKV3d - This change improves consistency and reduces the complexity of the codebase by utilizing the standard NCollection templates.
This commit is contained in:
@@ -18,8 +18,6 @@
|
||||
#define BRepAdaptor_HArray1OfCurve_HeaderFile
|
||||
|
||||
#include <BRepAdaptor_Array1OfCurve.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(BRepAdaptor_HArray1OfCurve, BRepAdaptor_Array1OfCurve)
|
||||
|
||||
#include <NCollection_HArray1.hxx>
|
||||
typedef NCollection_HArray1<BRepAdaptor_Curve> BRepAdaptor_HArray1OfCurve;
|
||||
#endif
|
||||
|
||||
@@ -18,8 +18,6 @@
|
||||
#define TopTools_HArray1OfListOfShape_HeaderFile
|
||||
|
||||
#include <TopTools_Array1OfListOfShape.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(TopTools_HArray1OfListOfShape, TopTools_Array1OfListOfShape)
|
||||
|
||||
#include <NCollection_HArray1.hxx>
|
||||
typedef NCollection_HArray1<TopTools_ListOfShape> TopTools_HArray1OfListOfShape;
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopTools_Array1OfShape.hxx>
|
||||
#include <NCollection_DefineHArray1.hxx>
|
||||
|
||||
DEFINE_HARRAY1(TopTools_HArray1OfShape, TopTools_Array1OfShape)
|
||||
|
||||
#include <NCollection_HArray1.hxx>
|
||||
typedef NCollection_HArray1<TopoDS_Shape> TopTools_HArray1OfShape;
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopTools_Array2OfShape.hxx>
|
||||
#include <NCollection_DefineHArray2.hxx>
|
||||
|
||||
DEFINE_HARRAY2(TopTools_HArray2OfShape, TopTools_Array2OfShape)
|
||||
|
||||
#include <NCollection_HArray2.hxx>
|
||||
typedef NCollection_HArray2<TopoDS_Shape> TopTools_HArray2OfShape;
|
||||
#endif
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TopTools_SequenceOfShape.hxx>
|
||||
#include <NCollection_DefineHSequence.hxx>
|
||||
|
||||
DEFINE_HSEQUENCE(TopTools_HSequenceOfShape, TopTools_SequenceOfShape)
|
||||
|
||||
#include <NCollection_HSequence.hxx>
|
||||
typedef NCollection_HSequence<TopoDS_Shape> TopTools_HSequenceOfShape;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user