1 // File generated by CPPExt (Value)
2 // Copyright (C) 1991,1995 by
4 // MATRA DATAVISION, FRANCE
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
15 #ifndef _NMTTools_IndexedDataMapOfShapeIndexedMapOfShape_HeaderFile
16 #define _NMTTools_IndexedDataMapOfShapeIndexedMapOfShape_HeaderFile
18 #ifndef _TCollection_BasicMap_HeaderFile
19 #include <TCollection_BasicMap.hxx>
21 #ifndef _Handle_NMTTools_IndexedDataMapNodeOfIndexedDataMapOfShapeIndexedMapOfShape_HeaderFile
22 #include <Handle_NMTTools_IndexedDataMapNodeOfIndexedDataMapOfShapeIndexedMapOfShape.hxx>
24 #ifndef _Standard_Integer_HeaderFile
25 #include <Standard_Integer.hxx>
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
30 class Standard_DomainError;
31 class Standard_OutOfRange;
32 class Standard_NoSuchObject;
34 class TopTools_IndexedMapOfShape;
35 class TopTools_ShapeMapHasher;
36 class NMTTools_IndexedDataMapNodeOfIndexedDataMapOfShapeIndexedMapOfShape;
39 #ifndef _Standard_HeaderFile
40 #include <Standard.hxx>
42 #ifndef _Standard_Macro_HeaderFile
43 #include <Standard_Macro.hxx>
46 class NMTTools_IndexedDataMapOfShapeIndexedMapOfShape : public TCollection_BasicMap {
50 void* operator new(size_t,void* anAddress)
54 void* operator new(size_t size)
56 return Standard::Allocate(size);
58 void operator delete(void *anAddress)
60 if (anAddress) Standard::Free((Standard_Address&)anAddress);
64 Standard_EXPORT NMTTools_IndexedDataMapOfShapeIndexedMapOfShape(const Standard_Integer NbBuckets = 1);
65 Standard_EXPORT NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& Assign(const NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& Other) ;
66 NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& operator =(const NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& Other)
71 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
72 Standard_EXPORT void Clear() ;
73 ~NMTTools_IndexedDataMapOfShapeIndexedMapOfShape()
78 Standard_EXPORT Standard_Integer Add(const TopoDS_Shape& K,const TopTools_IndexedMapOfShape& I) ;
79 Standard_EXPORT void Substitute(const Standard_Integer I,const TopoDS_Shape& K,const TopTools_IndexedMapOfShape& T) ;
80 Standard_EXPORT void RemoveLast() ;
81 Standard_EXPORT Standard_Boolean Contains(const TopoDS_Shape& K) const;
82 Standard_EXPORT const TopoDS_Shape& FindKey(const Standard_Integer I) const;
83 Standard_EXPORT const TopTools_IndexedMapOfShape& FindFromIndex(const Standard_Integer I) const;
84 const TopTools_IndexedMapOfShape& operator ()(const Standard_Integer I) const
86 return FindFromIndex(I);
89 Standard_EXPORT TopTools_IndexedMapOfShape& ChangeFromIndex(const Standard_Integer I) ;
90 TopTools_IndexedMapOfShape& operator ()(const Standard_Integer I)
92 return ChangeFromIndex(I);
95 Standard_EXPORT Standard_Integer FindIndex(const TopoDS_Shape& K) const;
96 Standard_EXPORT const TopTools_IndexedMapOfShape& FindFromKey(const TopoDS_Shape& K) const;
97 Standard_EXPORT TopTools_IndexedMapOfShape& ChangeFromKey(const TopoDS_Shape& K) ;
117 Standard_EXPORT NMTTools_IndexedDataMapOfShapeIndexedMapOfShape(const NMTTools_IndexedDataMapOfShapeIndexedMapOfShape& Other);
130 // other Inline functions and methods (like "C++: function call" methods)