1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #ifndef _GEOM_DataMapOfAsciiStringTransient_HeaderFile
22 #define _GEOM_DataMapOfAsciiStringTransient_HeaderFile
24 #ifndef _TCollection_BasicMap_HeaderFile
25 #include <TCollection_BasicMap.hxx>
27 #ifndef _Handle_Standard_Transient_HeaderFile
28 #include <Handle_Standard_Transient.hxx>
30 #ifndef _Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
31 #include <Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx>
33 #ifndef _Standard_Integer_HeaderFile
34 #include <Standard_Integer.hxx>
36 #ifndef _Standard_Boolean_HeaderFile
37 #include <Standard_Boolean.hxx>
39 class Standard_DomainError;
40 class Standard_NoSuchObject;
41 class TCollection_AsciiString;
42 class Standard_Transient;
43 class GEOM_DataMapNodeOfDataMapOfAsciiStringTransient;
44 class GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient;
47 #ifndef _Standard_HeaderFile
48 #include <Standard.hxx>
50 #ifndef _Standard_Macro_HeaderFile
51 #include <Standard_Macro.hxx>
54 class GEOM_DataMapOfAsciiStringTransient : public TCollection_BasicMap {
58 void* operator new(size_t,void* anAddress)
62 void* operator new(size_t size)
64 return Standard::Allocate(size);
66 void operator delete(void *anAddress)
68 if (anAddress) Standard::Free((Standard_Address&)anAddress);
72 Standard_EXPORT GEOM_DataMapOfAsciiStringTransient(const Standard_Integer NbBuckets = 1);
73 Standard_EXPORT GEOM_DataMapOfAsciiStringTransient& Assign(const GEOM_DataMapOfAsciiStringTransient& Other) ;
74 GEOM_DataMapOfAsciiStringTransient& operator =(const GEOM_DataMapOfAsciiStringTransient& Other)
79 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
80 Standard_EXPORT void Clear() ;
81 ~GEOM_DataMapOfAsciiStringTransient()
86 Standard_EXPORT Standard_Boolean Bind(const TCollection_AsciiString& K,const Handle(Standard_Transient)& I) ;
87 Standard_EXPORT Standard_Boolean IsBound(const TCollection_AsciiString& K) const;
88 Standard_EXPORT Standard_Boolean UnBind(const TCollection_AsciiString& K) ;
89 Standard_EXPORT const Handle_Standard_Transient& Find(const TCollection_AsciiString& K) const;
90 const Handle_Standard_Transient& operator()(const TCollection_AsciiString& K) const
95 Standard_EXPORT Handle_Standard_Transient& ChangeFind(const TCollection_AsciiString& K) ;
96 Handle_Standard_Transient& operator()(const TCollection_AsciiString& K)
120 Standard_EXPORT GEOM_DataMapOfAsciiStringTransient(const GEOM_DataMapOfAsciiStringTransient& Other);
133 // other Inline functions and methods (like "C++: function call" methods)