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 _SMDS_ExtendedMap_HeaderFile
16 #define _SMDS_ExtendedMap_HeaderFile
18 #ifndef _TCollection_BasicMap_HeaderFile
19 #include <TCollection_BasicMap.hxx>
21 #ifndef _Handle_SMDS_MeshElement_HeaderFile
22 #include "Handle_SMDS_MeshElement.hxx"
24 #ifndef _Handle_SMDS_StdMapNodeOfExtendedMap_HeaderFile
25 #include "Handle_SMDS_StdMapNodeOfExtendedMap.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 SMDS_MeshElement;
35 class SMDS_MeshElementMapHasher;
36 class SMDS_StdMapNodeOfExtendedMap;
37 class SMDS_MapIteratorOfExtendedMap;
40 #ifndef _Standard_HeaderFile
41 #include <Standard.hxx>
43 #ifndef _Standard_Macro_HeaderFile
44 #include <Standard_Macro.hxx>
47 class SMDS_ExtendedMap : public TCollection_BasicMap {
51 inline void* operator new(size_t,void* anAddress)
55 inline void* operator new(size_t size)
57 return Standard::Allocate(size);
59 inline void operator delete(void *anAddress)
61 if (anAddress) Standard::Free((Standard_Address&)anAddress);
63 // inline void operator delete(void *anAddress, size_t size)
65 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
69 Standard_EXPORT SMDS_ExtendedMap(const Standard_Integer NbBuckets = 1);
70 Standard_EXPORT SMDS_ExtendedMap& Assign(const SMDS_ExtendedMap& Other) ;
71 SMDS_ExtendedMap& operator =(const SMDS_ExtendedMap& Other)
76 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
77 Standard_EXPORT void Clear() ;
83 Standard_EXPORT Standard_Boolean Add(const Handle(SMDS_MeshElement)& aKey) ;
84 Standard_EXPORT Standard_Boolean Contains(const Handle(SMDS_MeshElement)& aKey) const;
85 Standard_EXPORT Standard_Boolean Remove(const Handle(SMDS_MeshElement)& aKey) ;
105 Standard_EXPORT SMDS_ExtendedMap(const SMDS_ExtendedMap& Other);
118 // other inline functions and methods (like "C++: function call" methods)