1 // SMESH SMDS : implementaion of Salome mesh data structure
3 // Copyright (C) 2003 OPEN CASCADE
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.
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.
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
19 // See http://www.opencascade.org or email : webmaster@opencascade.org
23 // File : SMDS_ListIteratorOfListOfMeshGroup.hxx
26 #ifndef _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile
27 #define _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile
29 #ifndef _Standard_Address_HeaderFile
30 #include <Standard_Address.hxx>
32 #ifndef _Handle_SMDS_MeshGroup_HeaderFile
33 #include "Handle_SMDS_MeshGroup.hxx"
35 #ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile
36 #include "Handle_SMDS_ListNodeOfListOfMeshGroup.hxx"
38 #ifndef _Standard_Boolean_HeaderFile
39 #include <Standard_Boolean.hxx>
41 class Standard_NoMoreObject;
42 class Standard_NoSuchObject;
43 class SMDS_ListOfMeshGroup;
45 class SMDS_ListNodeOfListOfMeshGroup;
48 #ifndef _Standard_HeaderFile
49 #include <Standard.hxx>
51 #ifndef _Standard_Macro_HeaderFile
52 #include <Standard_Macro.hxx>
55 class SMDS_ListIteratorOfListOfMeshGroup {
59 inline void* operator new(size_t,void* anAddress)
63 inline void* operator new(size_t size)
65 return Standard::Allocate(size);
67 inline void operator delete(void *anAddress)
69 if (anAddress) Standard::Free((Standard_Address&)anAddress);
71 // inline void operator delete(void *anAddress, size_t size)
73 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
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;
85 friend class SMDS_ListOfMeshGroup;
107 Standard_Address current;
108 Standard_Address previous;
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"
124 #include <TCollection_ListIterator.lxx>
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
138 // other inline functions and methods (like "C++: function call" methods)