Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //                     Copyright (C) 1991,1995 by
4 //  
5 //                      MATRA DATAVISION, FRANCE
6 //  
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
12 //  
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
15 //
16 #ifndef _SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile
17 #define _SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_HeaderFile
23 #include "Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx"
24 #endif
25
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
28 #endif
29 #ifndef _Handle_SMDS_MeshElement_HeaderFile
30 #include "Handle_SMDS_MeshElement.hxx"
31 #endif
32 #ifndef _TCollection_MapNode_HeaderFile
33 #include <TCollection_MapNode.hxx>
34 #endif
35 #ifndef _TCollection_MapNodePtr_HeaderFile
36 #include <TCollection_MapNodePtr.hxx>
37 #endif
38 class SMDS_MeshElement;
39 class TColStd_MapIntegerHasher;
40 class SMDS_DataMapOfIntegerMeshElement;
41 class SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement;
42
43
44 class SMDS_DataMapNodeOfDataMapOfIntegerMeshElement : public TCollection_MapNode {
45
46 public:
47
48     inline void* operator new(size_t,void* anAddress) 
49       {
50         return anAddress;
51       }
52     inline void* operator new(size_t size) 
53       { 
54         return Standard::Allocate(size); 
55       }
56     inline void  operator delete(void *anAddress) 
57       { 
58         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
59       }
60 //    inline void  operator delete(void *anAddress, size_t size) 
61 //      { 
62 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
63 //      }
64  // Methods PUBLIC
65  // 
66 Standard_EXPORT inline SMDS_DataMapNodeOfDataMapOfIntegerMeshElement(const Standard_Integer& K,const Handle(SMDS_MeshElement)& I,const TCollection_MapNodePtr& n);
67 Standard_EXPORT inline   Standard_Integer& Key() const;
68 Standard_EXPORT inline   Handle_SMDS_MeshElement& Value() const;
69 Standard_EXPORT ~SMDS_DataMapNodeOfDataMapOfIntegerMeshElement();
70
71
72
73
74  // Type management
75  //
76  Standard_EXPORT friend Handle_Standard_Type& SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_();
77  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
78  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
79
80 protected:
81
82  // Methods PROTECTED
83  // 
84
85
86  // Fields PROTECTED
87  //
88
89
90 private: 
91
92  // Methods PRIVATE
93  // 
94
95
96  // Fields PRIVATE
97  //
98 Standard_Integer myKey;
99 Handle_SMDS_MeshElement myValue;
100
101
102 };
103
104 #define TheKey Standard_Integer
105 #define TheKey_hxx <Standard_Integer.hxx>
106 #define TheItem Handle_SMDS_MeshElement
107 #define TheItem_hxx <SMDS_MeshElement.hxx>
108 #define Hasher TColStd_MapIntegerHasher
109 #define Hasher_hxx <TColStd_MapIntegerHasher.hxx>
110 #define TCollection_DataMapNode SMDS_DataMapNodeOfDataMapOfIntegerMeshElement
111 #define TCollection_DataMapNode_hxx <SMDS_DataMapNodeOfDataMapOfIntegerMeshElement.hxx>
112 #define TCollection_DataMapIterator SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement
113 #define TCollection_DataMapIterator_hxx <SMDS_DataMapIteratorOfDataMapOfIntegerMeshElement.hxx>
114 #define Handle_TCollection_DataMapNode Handle_SMDS_DataMapNodeOfDataMapOfIntegerMeshElement
115 #define TCollection_DataMapNode_Type_() SMDS_DataMapNodeOfDataMapOfIntegerMeshElement_Type_()
116 #define TCollection_DataMap SMDS_DataMapOfIntegerMeshElement
117 #define TCollection_DataMap_hxx <SMDS_DataMapOfIntegerMeshElement.hxx>
118
119 #include <TCollection_DataMapNode.lxx>
120
121 #undef TheKey
122 #undef TheKey_hxx
123 #undef TheItem
124 #undef TheItem_hxx
125 #undef Hasher
126 #undef Hasher_hxx
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
135
136
137 // other inline functions and methods (like "C++: function call" methods)
138 //
139
140
141 #endif