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