1 // File : SALOMEDS_DataMapStringLabel.hxx
2 // Created : Tue Aug 13 14:05:03 2002
3 // Author : Yves FRICAUD
7 // Copyright : Open CASCADE 2002
10 #ifndef _SALOMEDS_DataMapStringLabel_HeaderFile
11 #define _SALOMEDS_DataMapStringLabel_HeaderFile
13 #ifndef _TCollection_BasicMap_HeaderFile
14 #include <TCollection_BasicMap.hxx>
16 #ifndef _Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel_HeaderFile
17 #include <Handle_SALOMEDS_DataMapNodeOfDataMapStringLabel.hxx>
19 #ifndef _Standard_Integer_HeaderFile
20 #include <Standard_Integer.hxx>
22 #ifndef _Standard_Boolean_HeaderFile
23 #include <Standard_Boolean.hxx>
25 class Standard_DomainError;
26 class Standard_NoSuchObject;
27 class TCollection_ExtendedString;
29 class SALOMEDS_DataMapNodeOfDataMapStringLabel;
30 class SALOMEDS_DataMapIteratorOfDataMapStringLabel;
33 #ifndef _Standard_HeaderFile
34 #include <Standard.hxx>
36 #ifndef _Standard_Macro_HeaderFile
37 #include <Standard_Macro.hxx>
40 class SALOMEDS_DataMapStringLabel : public TCollection_BasicMap {
44 inline void* operator new(size_t,void* anAddress)
48 inline void* operator new(size_t size)
50 return Standard::Allocate(size);
52 inline void operator delete(void *anAddress)
54 if (anAddress) Standard::Free((Standard_Address&)anAddress);
56 // inline void operator delete(void *anAddress, size_t size)
58 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
62 Standard_EXPORT SALOMEDS_DataMapStringLabel(const Standard_Integer NbBuckets = 1);
63 Standard_EXPORT SALOMEDS_DataMapStringLabel& Assign(const SALOMEDS_DataMapStringLabel& Other) ;
64 SALOMEDS_DataMapStringLabel& operator =(const SALOMEDS_DataMapStringLabel& Other)
69 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
70 Standard_EXPORT void Clear() ;
71 ~SALOMEDS_DataMapStringLabel()
76 Standard_EXPORT Standard_Boolean Bind(const TCollection_ExtendedString& K,const TDF_Label& I) ;
77 Standard_EXPORT Standard_Boolean IsBound(const TCollection_ExtendedString& K) const;
78 Standard_EXPORT Standard_Boolean UnBind(const TCollection_ExtendedString& K) ;
79 Standard_EXPORT const TDF_Label& Find(const TCollection_ExtendedString& K) const;
80 const TDF_Label& operator()(const TCollection_ExtendedString& K) const
85 Standard_EXPORT TDF_Label& ChangeFind(const TCollection_ExtendedString& K) ;
86 TDF_Label& operator()(const TCollection_ExtendedString& K)
110 Standard_EXPORT SALOMEDS_DataMapStringLabel(const SALOMEDS_DataMapStringLabel& Other);
123 // other inline functions and methods (like "C++: function call" methods)