Salome HOME
Remove Opencascade dependencies
[modules/smesh.git] / src / SMDS / SMDS_ListIteratorOfListOfMeshGroup.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_ListIteratorOfListOfMeshGroup.hxx
24 //  Module : SMESH
25
26 #ifndef _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile
27 #define _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile
28
29 #ifndef _Standard_Address_HeaderFile
30 #include <Standard_Address.hxx>
31 #endif
32 #ifndef _Handle_SMDS_MeshGroup_HeaderFile
33 #include "Handle_SMDS_MeshGroup.hxx"
34 #endif
35 #ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile
36 #include "Handle_SMDS_ListNodeOfListOfMeshGroup.hxx"
37 #endif
38 #ifndef _Standard_Boolean_HeaderFile
39 #include <Standard_Boolean.hxx>
40 #endif
41 class Standard_NoMoreObject;
42 class Standard_NoSuchObject;
43 class SMDS_ListOfMeshGroup;
44 class SMDS_MeshGroup;
45 class SMDS_ListNodeOfListOfMeshGroup;
46
47
48 #ifndef _Standard_HeaderFile
49 #include <Standard.hxx>
50 #endif
51 #ifndef _Standard_Macro_HeaderFile
52 #include <Standard_Macro.hxx>
53 #endif
54
55 class SMDS_ListIteratorOfListOfMeshGroup  {
56
57 public:
58
59     inline void* operator new(size_t,void* anAddress) 
60       {
61         return anAddress;
62       }
63     inline void* operator new(size_t size) 
64       { 
65         return Standard::Allocate(size); 
66       }
67     inline void  operator delete(void *anAddress) 
68       { 
69         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
70       }
71 //    inline void  operator delete(void *anAddress, size_t size) 
72 //      { 
73 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
74 //      }
75  // Methods PUBLIC
76  // 
77 Standard_EXPORT SMDS_ListIteratorOfListOfMeshGroup();
78 Standard_EXPORT SMDS_ListIteratorOfListOfMeshGroup(const SMDS_ListOfMeshGroup& L);
79 Standard_EXPORT   void Initialize(const SMDS_ListOfMeshGroup& L) ;
80 Standard_EXPORT inline   Standard_Boolean More() const;
81 Standard_EXPORT   void Next() ;
82 Standard_EXPORT   Handle_SMDS_MeshGroup& Value() const;
83
84
85 friend class SMDS_ListOfMeshGroup;
86
87
88
89 protected:
90
91  // Methods PROTECTED
92  // 
93
94
95  // Fields PROTECTED
96  //
97
98
99 private: 
100
101  // Methods PRIVATE
102  // 
103
104
105  // Fields PRIVATE
106  //
107 Standard_Address current;
108 Standard_Address previous;
109
110
111 };
112
113 #define Item Handle_SMDS_MeshGroup
114 #define Item_hxx "SMDS_MeshGroup.hxx"
115 #define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup
116 #define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx"
117 #define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup
118 #define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx"
119 #define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup
120 #define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_()
121 #define TCollection_List SMDS_ListOfMeshGroup
122 #define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx"
123
124 #include <TCollection_ListIterator.lxx>
125
126 #undef Item
127 #undef Item_hxx
128 #undef TCollection_ListNode
129 #undef TCollection_ListNode_hxx
130 #undef TCollection_ListIterator
131 #undef TCollection_ListIterator_hxx
132 #undef Handle_TCollection_ListNode
133 #undef TCollection_ListNode_Type_
134 #undef TCollection_List
135 #undef TCollection_List_hxx
136
137
138 // other inline functions and methods (like "C++: function call" methods)
139 //
140
141
142 #endif