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 _SMESHDS_DataMapOfShapeSubMesh_HeaderFile
16 #define _SMESHDS_DataMapOfShapeSubMesh_HeaderFile
18 #ifndef _TCollection_BasicMap_HeaderFile
19 #include <TCollection_BasicMap.hxx>
21 #ifndef _Handle_SMESHDS_SubMesh_HeaderFile
22 #include "Handle_SMESHDS_SubMesh.hxx"
24 #ifndef _Handle_SMESHDS_DataMapNodeOfDataMapOfShapeSubMesh_HeaderFile
25 #include "Handle_SMESHDS_DataMapNodeOfDataMapOfShapeSubMesh.hxx"
27 #ifndef _Standard_Integer_HeaderFile
28 #include <Standard_Integer.hxx>
30 #ifndef _Standard_Boolean_HeaderFile
31 #include <Standard_Boolean.hxx>
33 class Standard_DomainError;
34 class Standard_NoSuchObject;
36 class SMESHDS_SubMesh;
37 class TopTools_ShapeMapHasher;
38 class SMESHDS_DataMapNodeOfDataMapOfShapeSubMesh;
39 class SMESHDS_DataMapIteratorOfDataMapOfShapeSubMesh;
42 #ifndef _Standard_HeaderFile
43 #include <Standard.hxx>
45 #ifndef _Standard_Macro_HeaderFile
46 #include <Standard_Macro.hxx>
49 class SMESHDS_DataMapOfShapeSubMesh : public TCollection_BasicMap {
53 inline void* operator new(size_t,void* anAddress)
57 inline void* operator new(size_t size)
59 return Standard::Allocate(size);
61 inline void operator delete(void *anAddress)
63 if (anAddress) Standard::Free((Standard_Address&)anAddress);
65 // inline void operator delete(void *anAddress, size_t size)
67 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
71 Standard_EXPORT SMESHDS_DataMapOfShapeSubMesh(const Standard_Integer NbBuckets = 1);
72 Standard_EXPORT SMESHDS_DataMapOfShapeSubMesh& Assign(const SMESHDS_DataMapOfShapeSubMesh& Other) ;
73 SMESHDS_DataMapOfShapeSubMesh& operator =(const SMESHDS_DataMapOfShapeSubMesh& Other)
78 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
79 Standard_EXPORT void Clear() ;
80 ~SMESHDS_DataMapOfShapeSubMesh()
85 Standard_EXPORT Standard_Boolean Bind(const TopoDS_Shape& K,const Handle(SMESHDS_SubMesh)& I) ;
86 Standard_EXPORT Standard_Boolean IsBound(const TopoDS_Shape& K) const;
87 Standard_EXPORT Standard_Boolean UnBind(const TopoDS_Shape& K) ;
88 Standard_EXPORT const Handle_SMESHDS_SubMesh& Find(const TopoDS_Shape& K) const;
89 const Handle_SMESHDS_SubMesh& operator()(const TopoDS_Shape& K) const
94 Standard_EXPORT Handle_SMESHDS_SubMesh& ChangeFind(const TopoDS_Shape& K) ;
95 Handle_SMESHDS_SubMesh& operator()(const TopoDS_Shape& K)
119 Standard_EXPORT SMESHDS_DataMapOfShapeSubMesh(const SMESHDS_DataMapOfShapeSubMesh& Other);
132 // other inline functions and methods (like "C++: function call" methods)