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_SequenceNodeOfSequenceOfMesh_0.cxx
27 #include "SMDS_SequenceNodeOfSequenceOfMesh.hxx"
29 #ifndef _Standard_TypeMismatch_HeaderFile
30 #include <Standard_TypeMismatch.hxx>
33 #ifndef _SMDS_Mesh_HeaderFile
34 #include "SMDS_Mesh.hxx"
36 #ifndef _SMDS_SequenceOfMesh_HeaderFile
37 #include "SMDS_SequenceOfMesh.hxx"
39 SMDS_SequenceNodeOfSequenceOfMesh::~SMDS_SequenceNodeOfSequenceOfMesh() {}
43 Standard_EXPORT Handle_Standard_Type& SMDS_SequenceNodeOfSequenceOfMesh_Type_()
46 static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_SeqNode);
47 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(TCollection_SeqNode);
48 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
49 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(MMgt_TShared);
50 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
51 if ( aType3.IsNull()) aType3 = STANDARD_TYPE(Standard_Transient);
54 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
55 static Handle_Standard_Type _aType = new Standard_Type("SMDS_SequenceNodeOfSequenceOfMesh",
56 sizeof(SMDS_SequenceNodeOfSequenceOfMesh),
58 (Standard_Address)_Ancestors,
59 (Standard_Address)NULL);
66 // allow safe downcasting
68 const Handle(SMDS_SequenceNodeOfSequenceOfMesh) Handle(SMDS_SequenceNodeOfSequenceOfMesh)::DownCast(const Handle(Standard_Transient)& AnObject)
70 Handle(SMDS_SequenceNodeOfSequenceOfMesh) _anOtherObject;
72 if (!AnObject.IsNull()) {
73 if (AnObject->IsKind(STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh))) {
74 _anOtherObject = Handle(SMDS_SequenceNodeOfSequenceOfMesh)((Handle(SMDS_SequenceNodeOfSequenceOfMesh)&)AnObject);
78 return _anOtherObject ;
80 const Handle(Standard_Type)& SMDS_SequenceNodeOfSequenceOfMesh::DynamicType() const
82 return STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh) ;
84 Standard_Boolean SMDS_SequenceNodeOfSequenceOfMesh::IsKind(const Handle(Standard_Type)& AType) const
86 return (STANDARD_TYPE(SMDS_SequenceNodeOfSequenceOfMesh) == AType || TCollection_SeqNode::IsKind(AType));
88 Handle_SMDS_SequenceNodeOfSequenceOfMesh::~Handle_SMDS_SequenceNodeOfSequenceOfMesh() {}
89 #define SeqItem Handle_SMDS_Mesh
90 #define SeqItem_hxx "SMDS_Mesh.hxx"
91 #define TCollection_SequenceNode SMDS_SequenceNodeOfSequenceOfMesh
92 #define TCollection_SequenceNode_hxx "SMDS_SequenceNodeOfSequenceOfMesh.hxx"
93 #define Handle_TCollection_SequenceNode Handle_SMDS_SequenceNodeOfSequenceOfMesh
94 #define TCollection_SequenceNode_Type_() SMDS_SequenceNodeOfSequenceOfMesh_Type_()
95 #define TCollection_Sequence SMDS_SequenceOfMesh
96 #define TCollection_Sequence_hxx "SMDS_SequenceOfMesh.hxx"
97 #include <TCollection_SequenceNode.gxx>