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_DataMapOfIntegerMesh_HeaderFile
16 #define _SMESHDS_DataMapOfIntegerMesh_HeaderFile
18 #ifndef _TCollection_BasicMap_HeaderFile
19 #include <TCollection_BasicMap.hxx>
21 #ifndef _Standard_Integer_HeaderFile
22 #include <Standard_Integer.hxx>
24 #ifndef _Handle_SMESHDS_Mesh_HeaderFile
25 #include "Handle_SMESHDS_Mesh.hxx"
27 #ifndef _Handle_SMESHDS_DataMapNodeOfDataMapOfIntegerMesh_HeaderFile
28 #include "Handle_SMESHDS_DataMapNodeOfDataMapOfIntegerMesh.hxx"
30 #ifndef _Standard_Boolean_HeaderFile
31 #include <Standard_Boolean.hxx>
33 class Standard_DomainError;
34 class Standard_NoSuchObject;
36 class TColStd_MapIntegerHasher;
37 class SMESHDS_DataMapNodeOfDataMapOfIntegerMesh;
38 class SMESHDS_DataMapIteratorOfDataMapOfIntegerMesh;
41 #ifndef _Standard_HeaderFile
42 #include <Standard.hxx>
44 #ifndef _Standard_Macro_HeaderFile
45 #include <Standard_Macro.hxx>
48 class SMESHDS_DataMapOfIntegerMesh : public TCollection_BasicMap {
52 inline void* operator new(size_t,void* anAddress)
56 inline void* operator new(size_t size)
58 return Standard::Allocate(size);
60 inline void operator delete(void *anAddress)
62 if (anAddress) Standard::Free((Standard_Address&)anAddress);
64 // inline void operator delete(void *anAddress, size_t size)
66 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
70 Standard_EXPORT SMESHDS_DataMapOfIntegerMesh(const Standard_Integer NbBuckets = 1);
71 Standard_EXPORT SMESHDS_DataMapOfIntegerMesh& Assign(const SMESHDS_DataMapOfIntegerMesh& Other) ;
72 SMESHDS_DataMapOfIntegerMesh& operator =(const SMESHDS_DataMapOfIntegerMesh& Other)
77 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
78 Standard_EXPORT void Clear() ;
79 ~SMESHDS_DataMapOfIntegerMesh()
84 Standard_EXPORT Standard_Boolean Bind(const Standard_Integer& K,const Handle(SMESHDS_Mesh)& I) ;
85 Standard_EXPORT Standard_Boolean IsBound(const Standard_Integer& K) const;
86 Standard_EXPORT Standard_Boolean UnBind(const Standard_Integer& K) ;
87 Standard_EXPORT const Handle_SMESHDS_Mesh& Find(const Standard_Integer& K) const;
88 const Handle_SMESHDS_Mesh& operator()(const Standard_Integer& K) const
93 Standard_EXPORT Handle_SMESHDS_Mesh& ChangeFind(const Standard_Integer& K) ;
94 Handle_SMESHDS_Mesh& operator()(const Standard_Integer& K)
118 Standard_EXPORT SMESHDS_DataMapOfIntegerMesh(const SMESHDS_DataMapOfIntegerMesh& Other);
131 // other inline functions and methods (like "C++: function call" methods)