Salome HOME
DCQ: prepare V2.0.0
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
1 //  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx
8 //  Author : Sergey Ruin
9 //  Module : SALOME
10
11 #ifndef _SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
12 #define _SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
13
14 #ifndef _Standard_HeaderFile
15 #include <Standard.hxx>
16 #endif
17 #ifndef _Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString_HeaderFile
18 #include <Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx>
19 #endif
20
21 #ifndef _Standard_Real_HeaderFile
22 #include <Standard_Real.hxx>
23 #endif
24 #ifndef _TCollection_ExtendedString_HeaderFile
25 #include <TCollection_ExtendedString.hxx>
26 #endif
27 #ifndef _TCollection_MapNode_HeaderFile
28 #include <TCollection_MapNode.hxx>
29 #endif
30 #ifndef _TCollection_MapNodePtr_HeaderFile
31 #include <TCollection_MapNodePtr.hxx>
32 #endif
33 class TCollection_ExtendedString;
34 class TColStd_MapIntegerHasher;
35 class SALOMEDS_DataMapOfIntegerString;
36 class SALOMEDS_DataMapIteratorOfDataMapOfIntegerString;
37
38
39 class SALOMEDS_DataMapNodeOfDataMapOfIntegerString : public TCollection_MapNode {
40
41 public:
42
43     void* operator new(size_t,void* anAddress) 
44       {
45         return anAddress;
46       }
47     void* operator new(size_t size) 
48       { 
49         return Standard::Allocate(size); 
50       }
51     void  operator delete(void *anAddress) 
52       { 
53         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
54       }
55  // Methods PUBLIC
56  // 
57 SALOMEDS_DataMapNodeOfDataMapOfIntegerString(const Standard_Real& K,const TCollection_ExtendedString& I,const TCollection_MapNodePtr& n);
58   Standard_Real& Key() const;
59   TCollection_ExtendedString& Value() const;
60 Standard_EXPORT ~SALOMEDS_DataMapNodeOfDataMapOfIntegerString();
61
62
63
64
65  // Type management
66  //
67  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_DataMapNodeOfDataMapOfIntegerString_Type_();
68  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
69  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
70
71 protected:
72
73  // Methods PROTECTED
74  // 
75
76
77  // Fields PROTECTED
78  //
79
80
81 private: 
82
83  // Methods PRIVATE
84  // 
85
86
87  // Fields PRIVATE
88  //
89 Standard_Real myKey;
90 TCollection_ExtendedString myValue;
91
92
93 };
94
95 #define TheKey Standard_Real
96 #define TheKey_hxx <Standard_Real.hxx>
97 #define TheItem TCollection_ExtendedString
98 #define TheItem_hxx <TCollection_ExtendedString.hxx>
99 #define Hasher TColStd_MapIntegerHasher
100 #define Hasher_hxx <TColStd_MapIntegerHasher.hxx>
101 #define TCollection_DataMapNode SALOMEDS_DataMapNodeOfDataMapOfIntegerString
102 #define TCollection_DataMapNode_hxx <SALOMEDS_DataMapNodeOfDataMapOfIntegerString.hxx>
103 #define TCollection_DataMapIterator SALOMEDS_DataMapIteratorOfDataMapOfIntegerString
104 #define TCollection_DataMapIterator_hxx <SALOMEDS_DataMapIteratorOfDataMapOfIntegerString.hxx>
105 #define Handle_TCollection_DataMapNode Handle_SALOMEDS_DataMapNodeOfDataMapOfIntegerString
106 #define TCollection_DataMapNode_Type_() SALOMEDS_DataMapNodeOfDataMapOfIntegerString_Type_()
107 #define TCollection_DataMap SALOMEDS_DataMapOfIntegerString
108 #define TCollection_DataMap_hxx <SALOMEDS_DataMapOfIntegerString.hxx>
109
110 #include <TCollection_DataMapNode.lxx>
111
112 #undef TheKey
113 #undef TheKey_hxx
114 #undef TheItem
115 #undef TheItem_hxx
116 #undef Hasher
117 #undef Hasher_hxx
118 #undef TCollection_DataMapNode
119 #undef TCollection_DataMapNode_hxx
120 #undef TCollection_DataMapIterator
121 #undef TCollection_DataMapIterator_hxx
122 #undef Handle_TCollection_DataMapNode
123 #undef TCollection_DataMapNode_Type_
124 #undef TCollection_DataMap
125 #undef TCollection_DataMap_hxx
126
127
128 // other Inline functions and methods (like "C++: function call" methods)
129 //
130
131
132 #endif