File indexing completed on 2026-11-14 10:34:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ChFiDS_Map_HeaderFile
0018 #define _ChFiDS_Map_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TopoDS_Shape.hxx>
0025 #include <NCollection_List.hxx>
0026 #include <TopTools_ShapeMapHasher.hxx>
0027 #include <NCollection_IndexedDataMap.hxx>
0028 #include <TopAbs_ShapeEnum.hxx>
0029 #include <Standard_Boolean.hxx>
0030 class TopoDS_Shape;
0031
0032
0033 class ChFiDS_Map
0034 {
0035 public:
0036 DEFINE_STANDARD_ALLOC
0037
0038
0039 Standard_EXPORT ChFiDS_Map();
0040
0041
0042
0043 Standard_EXPORT void Fill(const TopoDS_Shape& S,
0044 const TopAbs_ShapeEnum T1,
0045 const TopAbs_ShapeEnum T2);
0046
0047 Standard_EXPORT bool Contains(const TopoDS_Shape& S) const;
0048
0049 Standard_EXPORT const NCollection_List<TopoDS_Shape>& FindFromKey(const TopoDS_Shape& S) const;
0050
0051 const NCollection_List<TopoDS_Shape>& operator()(const TopoDS_Shape& S) const
0052 {
0053 return FindFromKey(S);
0054 }
0055
0056 Standard_EXPORT const NCollection_List<TopoDS_Shape>& FindFromIndex(const int I) const;
0057
0058 const NCollection_List<TopoDS_Shape>& operator()(const int I) const { return FindFromIndex(I); }
0059
0060 private:
0061 NCollection_IndexedDataMap<TopoDS_Shape, NCollection_List<TopoDS_Shape>, TopTools_ShapeMapHasher>
0062 myMap;
0063 };
0064
0065 #endif