Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/geom.git] / src / NMTTools / NMTTools_ListNodeOfListOfCommonBlock.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
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.
8 // 
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.
13 //
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
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 #ifndef _NMTTools_ListNodeOfListOfCommonBlock_HeaderFile
21 #define _NMTTools_ListNodeOfListOfCommonBlock_HeaderFile
22
23 #ifndef _Standard_HeaderFile
24 #include <Standard.hxx>
25 #endif
26 #ifndef _Handle_NMTTools_ListNodeOfListOfCommonBlock_HeaderFile
27 #include <Handle_NMTTools_ListNodeOfListOfCommonBlock.hxx>
28 #endif
29
30 #ifndef _NMTTools_CommonBlock_HeaderFile
31 #include <NMTTools_CommonBlock.hxx>
32 #endif
33 #ifndef _TCollection_MapNode_HeaderFile
34 #include <TCollection_MapNode.hxx>
35 #endif
36 #ifndef _TCollection_MapNodePtr_HeaderFile
37 #include <TCollection_MapNodePtr.hxx>
38 #endif
39 class NMTTools_CommonBlock;
40 class NMTTools_ListOfCommonBlock;
41 class NMTTools_ListIteratorOfListOfCommonBlock;
42
43
44 class NMTTools_ListNodeOfListOfCommonBlock : public TCollection_MapNode {
45
46 public:
47
48     void* operator new(size_t,void* anAddress) 
49       {
50         return anAddress;
51       }
52     void* operator new(size_t size) 
53       { 
54         return Standard::Allocate(size); 
55       }
56     void  operator delete(void *anAddress) 
57       { 
58         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
59       }
60  // Methods PUBLIC
61  // 
62 NMTTools_ListNodeOfListOfCommonBlock(const NMTTools_CommonBlock& I,const TCollection_MapNodePtr& n);
63   NMTTools_CommonBlock& Value() const;
64 Standard_EXPORT ~NMTTools_ListNodeOfListOfCommonBlock();
65
66
67
68
69  // Type management
70  //
71  Standard_EXPORT friend Handle_Standard_Type& NMTTools_ListNodeOfListOfCommonBlock_Type_();
72  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
73  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
74
75 protected:
76
77  // Methods PROTECTED
78  // 
79
80
81  // Fields PROTECTED
82  //
83
84
85 private: 
86
87  // Methods PRIVATE
88  // 
89
90
91  // Fields PRIVATE
92  //
93 NMTTools_CommonBlock myValue;
94
95
96 };
97
98 #define Item NMTTools_CommonBlock
99 #define Item_hxx <NMTTools_CommonBlock.hxx>
100 #define TCollection_ListNode NMTTools_ListNodeOfListOfCommonBlock
101 #define TCollection_ListNode_hxx <NMTTools_ListNodeOfListOfCommonBlock.hxx>
102 #define TCollection_ListIterator NMTTools_ListIteratorOfListOfCommonBlock
103 #define TCollection_ListIterator_hxx <NMTTools_ListIteratorOfListOfCommonBlock.hxx>
104 #define Handle_TCollection_ListNode Handle_NMTTools_ListNodeOfListOfCommonBlock
105 #define TCollection_ListNode_Type_() NMTTools_ListNodeOfListOfCommonBlock_Type_()
106 #define TCollection_List NMTTools_ListOfCommonBlock
107 #define TCollection_List_hxx <NMTTools_ListOfCommonBlock.hxx>
108
109 #include <TCollection_ListNode.lxx>
110
111 #undef Item
112 #undef Item_hxx
113 #undef TCollection_ListNode
114 #undef TCollection_ListNode_hxx
115 #undef TCollection_ListIterator
116 #undef TCollection_ListIterator_hxx
117 #undef Handle_TCollection_ListNode
118 #undef TCollection_ListNode_Type_
119 #undef TCollection_List
120 #undef TCollection_List_hxx
121
122
123 // other Inline functions and methods (like "C++: function call" methods)
124 //
125
126
127 #endif