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_ListNodeOfListOfMeshGroup.hxx
26 #ifndef _SMDS_ListNodeOfListOfMeshGroup_HeaderFile
27 #define _SMDS_ListNodeOfListOfMeshGroup_HeaderFile
29 #ifndef _Standard_HeaderFile
30 #include <Standard.hxx>
32 #ifndef _Handle_SMDS_ListNodeOfListOfMeshGroup_HeaderFile
33 #include "Handle_SMDS_ListNodeOfListOfMeshGroup.hxx"
36 #ifndef _Handle_SMDS_MeshGroup_HeaderFile
37 #include "Handle_SMDS_MeshGroup.hxx"
39 #ifndef _TCollection_MapNode_HeaderFile
40 #include <TCollection_MapNode.hxx>
42 #ifndef _TCollection_MapNodePtr_HeaderFile
43 #include <TCollection_MapNodePtr.hxx>
46 class SMDS_ListOfMeshGroup;
47 class SMDS_ListIteratorOfListOfMeshGroup;
50 class SMDS_ListNodeOfListOfMeshGroup : public TCollection_MapNode {
54 inline void* operator new(size_t,void* anAddress)
58 inline void* operator new(size_t size)
60 return Standard::Allocate(size);
62 inline void operator delete(void *anAddress)
64 if (anAddress) Standard::Free((Standard_Address&)anAddress);
66 // inline void operator delete(void *anAddress, size_t size)
68 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
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();
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;
103 Handle_SMDS_MeshGroup myValue;
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"
119 #include <TCollection_ListNode.lxx>
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
133 // other inline functions and methods (like "C++: function call" methods)