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_0.cxx
27 #include "SMDS_ListNodeOfListOfMeshGroup.hxx"
29 #ifndef _Standard_TypeMismatch_HeaderFile
30 #include <Standard_TypeMismatch.hxx>
33 #ifndef _SMDS_MeshGroup_HeaderFile
34 #include "SMDS_MeshGroup.hxx"
36 #ifndef _SMDS_ListOfMeshGroup_HeaderFile
37 #include "SMDS_ListOfMeshGroup.hxx"
39 #ifndef _SMDS_ListIteratorOfListOfMeshGroup_HeaderFile
40 #include "SMDS_ListIteratorOfListOfMeshGroup.hxx"
42 SMDS_ListNodeOfListOfMeshGroup::~SMDS_ListNodeOfListOfMeshGroup() {}
46 Standard_EXPORT Handle_Standard_Type& SMDS_ListNodeOfListOfMeshGroup_Type_()
49 static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);
50 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_MapNode);
51 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
52 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
53 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
54 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
57 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
58 static Handle_Standard_Type _aType = new Standard_Type("SMDS_ListNodeOfListOfMeshGroup",
59 sizeof(SMDS_ListNodeOfListOfMeshGroup),
61 (Standard_Address)_Ancestors,
62 (Standard_Address)NULL);
69 // allow safe downcasting
71 const Handle(SMDS_ListNodeOfListOfMeshGroup) Handle(SMDS_ListNodeOfListOfMeshGroup)::DownCast(const Handle(Standard_Transient)& AnObject)
73 Handle(SMDS_ListNodeOfListOfMeshGroup) _anOtherObject;
75 if (!AnObject.IsNull()) {
76 if (AnObject->IsKind(STANDARD_TYPE(SMDS_ListNodeOfListOfMeshGroup))) {
77 _anOtherObject = Handle(SMDS_ListNodeOfListOfMeshGroup)((Handle(SMDS_ListNodeOfListOfMeshGroup)&)AnObject);
81 return _anOtherObject ;
83 const Handle(Standard_Type)& SMDS_ListNodeOfListOfMeshGroup::DynamicType() const
85 return STANDARD_TYPE(SMDS_ListNodeOfListOfMeshGroup) ;
87 Standard_Boolean SMDS_ListNodeOfListOfMeshGroup::IsKind(const Handle(Standard_Type)& AType) const
89 return (STANDARD_TYPE(SMDS_ListNodeOfListOfMeshGroup) == AType || TCollection_MapNode::IsKind(AType));
91 Handle_SMDS_ListNodeOfListOfMeshGroup::~Handle_SMDS_ListNodeOfListOfMeshGroup() {}
92 #define Item Handle_SMDS_MeshGroup
93 #define Item_hxx "SMDS_MeshGroup.hxx"
94 #define TCollection_ListNode SMDS_ListNodeOfListOfMeshGroup
95 #define TCollection_ListNode_hxx "SMDS_ListNodeOfListOfMeshGroup.hxx"
96 #define TCollection_ListIterator SMDS_ListIteratorOfListOfMeshGroup
97 #define TCollection_ListIterator_hxx "SMDS_ListIteratorOfListOfMeshGroup.hxx"
98 #define Handle_TCollection_ListNode Handle_SMDS_ListNodeOfListOfMeshGroup
99 #define TCollection_ListNode_Type_() SMDS_ListNodeOfListOfMeshGroup_Type_()
100 #define TCollection_List SMDS_ListOfMeshGroup
101 #define TCollection_List_hxx "SMDS_ListOfMeshGroup.hxx"
102 #include <TCollection_ListNode.gxx>