]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM/GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx
Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOM / GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx
1
2 #ifndef _GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
3 #define _GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
4
5 #ifndef _Standard_HeaderFile
6 #include <Standard.hxx>
7 #endif
8 #ifndef _Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_HeaderFile
9 #include <Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx>
10 #endif
11
12 #ifndef _TCollection_AsciiString_HeaderFile
13 #include <TCollection_AsciiString.hxx>
14 #endif
15 #ifndef _Handle_Standard_Transient_HeaderFile
16 #include <Handle_Standard_Transient.hxx>
17 #endif
18 #ifndef _TCollection_MapNode_HeaderFile
19 #include <TCollection_MapNode.hxx>
20 #endif
21 #ifndef _TCollection_MapNodePtr_HeaderFile
22 #include <TCollection_MapNodePtr.hxx>
23 #endif
24 class Standard_Transient;
25 class TCollection_AsciiString;
26 class GEOM_DataMapOfAsciiStringTransient;
27 class GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient;
28
29
30 class GEOM_DataMapNodeOfDataMapOfAsciiStringTransient : public TCollection_MapNode {
31
32 public:
33
34     void* operator new(size_t,void* anAddress) 
35       {
36         return anAddress;
37       }
38     void* operator new(size_t size) 
39       { 
40         return Standard::Allocate(size); 
41       }
42     void  operator delete(void *anAddress) 
43       { 
44         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
45       }
46  // Methods PUBLIC
47  // 
48 GEOM_DataMapNodeOfDataMapOfAsciiStringTransient(const TCollection_AsciiString& K,const Handle(Standard_Transient)& I,const TCollection_MapNodePtr& n);
49   TCollection_AsciiString& Key() const;
50   Handle_Standard_Transient& Value() const;
51 Standard_EXPORT ~GEOM_DataMapNodeOfDataMapOfAsciiStringTransient();
52
53
54
55
56  // Type management
57  //
58  Standard_EXPORT friend Handle_Standard_Type& GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_Type_();
59  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
60  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
61
62 protected:
63
64  // Methods PROTECTED
65  // 
66
67
68  // Fields PROTECTED
69  //
70
71
72 private: 
73
74  // Methods PRIVATE
75  // 
76
77
78  // Fields PRIVATE
79  //
80 TCollection_AsciiString myKey;
81 Handle_Standard_Transient myValue;
82
83
84 };
85
86 #define TheKey TCollection_AsciiString
87 #define TheKey_hxx <TCollection_AsciiString.hxx>
88 #define TheItem Handle_Standard_Transient
89 #define TheItem_hxx <Standard_Transient.hxx>
90 #define Hasher TCollection_AsciiString
91 #define Hasher_hxx <TCollection_AsciiString.hxx>
92 #define TCollection_DataMapNode GEOM_DataMapNodeOfDataMapOfAsciiStringTransient
93 #define TCollection_DataMapNode_hxx <GEOM_DataMapNodeOfDataMapOfAsciiStringTransient.hxx>
94 #define TCollection_DataMapIterator GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient
95 #define TCollection_DataMapIterator_hxx <GEOM_DataMapIteratorOfDataMapOfAsciiStringTransient.hxx>
96 #define Handle_TCollection_DataMapNode Handle_GEOM_DataMapNodeOfDataMapOfAsciiStringTransient
97 #define TCollection_DataMapNode_Type_() GEOM_DataMapNodeOfDataMapOfAsciiStringTransient_Type_()
98 #define TCollection_DataMap GEOM_DataMapOfAsciiStringTransient
99 #define TCollection_DataMap_hxx <GEOM_DataMapOfAsciiStringTransient.hxx>
100
101 #include <TCollection_DataMapNode.lxx>
102
103 #undef TheKey
104 #undef TheKey_hxx
105 #undef TheItem
106 #undef TheItem_hxx
107 #undef Hasher
108 #undef Hasher_hxx
109 #undef TCollection_DataMapNode
110 #undef TCollection_DataMapNode_hxx
111 #undef TCollection_DataMapIterator
112 #undef TCollection_DataMapIterator_hxx
113 #undef Handle_TCollection_DataMapNode
114 #undef TCollection_DataMapNode_Type_
115 #undef TCollection_DataMap
116 #undef TCollection_DataMap_hxx
117
118
119 // other Inline functions and methods (like "C++: function call" methods)
120 //
121
122
123 #endif