Salome HOME
sources v1.2
[modules/smesh.git] / src / SMDS / SMDS_ListNodeOfListOfMeshGroup.hxx
1 //  SMESH SMDS : implementaion of Salome mesh data structure
2 //
3 //  Copyright (C) 2003  OPEN CASCADE
4 // 
5 //  This library is free software; you can redistribute it and/or 
6 //  modify it under the terms of the GNU Lesser General Public 
7 //  License as published by the Free Software Foundation; either 
8 //  version 2.1 of the License. 
9 // 
10 //  This library is distributed in the hope that it will be useful, 
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
13 //  Lesser General Public License for more details. 
14 // 
15 //  You should have received a copy of the GNU Lesser General Public 
16 //  License along with this library; if not, write to the Free Software 
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
18 // 
19 //  See http://www.opencascade.org or email : webmaster@opencascade.org 
20 //
21 //
22 //
23 //  File   : SMDS_ListNodeOfListOfMeshGroup.hxx
24 //  Module : SMESH
25
26 #ifndef _SMDS_ListNodeOfListOfMeshGroup_HeaderFile
27 #define _SMDS_ListNodeOfListOfMeshGroup_HeaderFile
28
29 #ifndef _Standard_HeaderFile
30 #include <Standard.hxx>
31 #endif
32 #ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile
33 #include "Handle_SMDS_ListNodeOfListOfMeshGroup.hxx"
34 #endif
35
36 #ifndef _Handle_SMDS_MeshGroup_HeaderFile
37 #include "Handle_SMDS_MeshGroup.hxx"
38 #endif
39 #ifndef _TCollection_MapNode_HeaderFile
40 #include <TCollection_MapNode.hxx>
41 #endif
42 #ifndef _TCollection_MapNodePtr_HeaderFile
43 #include <TCollection_MapNodePtr.hxx>
44 #endif
45 class SMDS_MeshGroup;
46 class SMDS_ListOfMeshGroup;
47 class SMDS_ListIteratorOfListOfMeshGroup;
48
49
50 class SMDS_ListNodeOfListOfMeshGroup : public TCollection_MapNode {
51
52 public:
53
54     inline void* operator new(size_t,void* anAddress) 
55       {
56         return anAddress;
57       }
58     inline void* operator new(size_t size) 
59       { 
60         return Standard::Allocate(size); 
61       }
62     inline void  operator delete(void *anAddress) 
63       { 
64         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
65       }
66 //    inline void  operator delete(void *anAddress, size_t size) 
67 //      { 
68 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
69 //      }
70  // Methods PUBLIC
71  // 
72 Standard_EXPORT inline SMDS_ListNodeOfListOfMeshGroup(const Handle(SMDS_MeshGroup)& I,const TCollection_MapNodePtr& n);
73 Standard_EXPORT inline   Handle_SMDS_MeshGroup& Value() const;
74 Standard_EXPORT ~SMDS_ListNodeOfListOfMeshGroup();
75
76
77
78
79  // Type management
80  //
81  Standard_EXPORT friend Handle_Standard_Type& SMDS_ListNodeOfListOfMeshGroup_Type_();
82  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
83  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
84
85 protected:
86
87  // Methods PROTECTED
88  // 
89
90
91  // Fields PROTECTED
92  //
93
94
95 private: 
96
97  // Methods PRIVATE
98  // 
99
100
101  // Fields PRIVATE
102  //
103 Handle_SMDS_MeshGroup myValue;
104
105
106 };
107
108 #define Item Handle_SMDS_MeshGroup
109 #define Item_hxx "SMDS_MeshGroup.hxx"
110 #define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup
111 #define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx"
112 #define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup
113 #define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx"
114 #define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup
115 #define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_()
116 #define TCollection_List SMDS_ListOfMeshGroup
117 #define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx"
118
119 #include <TCollection_ListNode.lxx>
120
121 #undef Item
122 #undef Item_hxx
123 #undef TCollection_ListNode
124 #undef TCollection_ListNode_hxx
125 #undef TCollection_ListIterator
126 #undef TCollection_ListIterator_hxx
127 #undef Handle_TCollection_ListNode
128 #undef TCollection_ListNode_Type_
129 #undef TCollection_List
130 #undef TCollection_List_hxx
131
132
133 // other inline functions and methods (like "C++: function call" methods)
134 //
135
136
137 #endif