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
20 #ifndef _GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
21 #define _GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
23 #ifndef _Standard_HeaderFile
24 #include <Standard.hxx>
26 #ifndef _Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_HeaderFile
27 #include <Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.hxx>
30 #ifndef _GEOMAlgo_PassKey_HeaderFile
31 #include <GEOMAlgo_PassKey.hxx>
33 #ifndef _Standard_Integer_HeaderFile
34 #include <Standard_Integer.hxx>
36 #ifndef _TCollection_MapNode_HeaderFile
37 #include <TCollection_MapNode.hxx>
39 #ifndef _TCollection_MapNodePtr_HeaderFile
40 #include <TCollection_MapNodePtr.hxx>
42 class GEOMAlgo_PassKey;
43 class GEOMAlgo_PassKeyMapHasher;
44 class GEOMAlgo_DataMapOfPassKeyInteger;
45 class GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger;
48 class GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger : public TCollection_MapNode {
52 void* operator new(size_t,void* anAddress)
56 void* operator new(size_t size)
58 return Standard::Allocate(size);
60 void operator delete(void *anAddress)
62 if (anAddress) Standard::Free((Standard_Address&)anAddress);
66 GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger(const GEOMAlgo_PassKey& K,const Standard_Integer& I,const TCollection_MapNodePtr& n);
67 GEOMAlgo_PassKey& Key() const;
68 Standard_Integer& Value() const;
69 Standard_EXPORT ~GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger();
76 Standard_EXPORT friend Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_Type_();
77 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
78 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
98 GEOMAlgo_PassKey myKey;
99 Standard_Integer myValue;
104 #define TheKey GEOMAlgo_PassKey
105 #define TheKey_hxx <GEOMAlgo_PassKey.hxx>
106 #define TheItem Standard_Integer
107 #define TheItem_hxx <Standard_Integer.hxx>
108 #define Hasher GEOMAlgo_PassKeyMapHasher
109 #define Hasher_hxx <GEOMAlgo_PassKeyMapHasher.hxx>
110 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger
111 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger.hxx>
112 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger
113 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyInteger.hxx>
114 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger
115 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfPassKeyInteger_Type_()
116 #define TCollection_DataMap GEOMAlgo_DataMapOfPassKeyInteger
117 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfPassKeyInteger.hxx>
119 #include <TCollection_DataMapNode.lxx>
127 #undef TCollection_DataMapNode
128 #undef TCollection_DataMapNode_hxx
129 #undef TCollection_DataMapIterator
130 #undef TCollection_DataMapIterator_hxx
131 #undef Handle_TCollection_DataMapNode
132 #undef TCollection_DataMapNode_Type_
133 #undef TCollection_DataMap
134 #undef TCollection_DataMap_hxx
137 // other Inline functions and methods (like "C++: function call" methods)