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_HSequenceOfMesh_0.cxx
27 #include "SMDS_HSequenceOfMesh.hxx"
29 #ifndef _Standard_TypeMismatch_HeaderFile
30 #include <Standard_TypeMismatch.hxx>
33 #ifndef _Standard_NoSuchObject_HeaderFile
34 #include <Standard_NoSuchObject.hxx>
36 #ifndef _Standard_OutOfRange_HeaderFile
37 #include <Standard_OutOfRange.hxx>
39 #ifndef _SMDS_Mesh_HeaderFile
40 #include "SMDS_Mesh.hxx"
42 #ifndef _SMDS_SequenceOfMesh_HeaderFile
43 #include "SMDS_SequenceOfMesh.hxx"
45 SMDS_HSequenceOfMesh::~SMDS_HSequenceOfMesh() {}
49 Standard_EXPORT Handle_Standard_Type& SMDS_HSequenceOfMesh_Type_()
52 static Handle_Standard_Type aType1 = STANDARD_TYPE(MMgt_TShared);
53 if ( aType1.IsNull()) aType1 = STANDARD_TYPE(MMgt_TShared);
54 static Handle_Standard_Type aType2 = STANDARD_TYPE(Standard_Transient);
55 if ( aType2.IsNull()) aType2 = STANDARD_TYPE(Standard_Transient);
58 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,NULL};
59 static Handle_Standard_Type _aType = new Standard_Type("SMDS_HSequenceOfMesh",
60 sizeof(SMDS_HSequenceOfMesh),
62 (Standard_Address)_Ancestors,
63 (Standard_Address)NULL);
70 // allow safe downcasting
72 const Handle(SMDS_HSequenceOfMesh) Handle(SMDS_HSequenceOfMesh)::DownCast(const Handle(Standard_Transient)& AnObject)
74 Handle(SMDS_HSequenceOfMesh) _anOtherObject;
76 if (!AnObject.IsNull()) {
77 if (AnObject->IsKind(STANDARD_TYPE(SMDS_HSequenceOfMesh))) {
78 _anOtherObject = Handle(SMDS_HSequenceOfMesh)((Handle(SMDS_HSequenceOfMesh)&)AnObject);
82 return _anOtherObject ;
84 const Handle(Standard_Type)& SMDS_HSequenceOfMesh::DynamicType() const
86 return STANDARD_TYPE(SMDS_HSequenceOfMesh) ;
88 Standard_Boolean SMDS_HSequenceOfMesh::IsKind(const Handle(Standard_Type)& AType) const
90 return (STANDARD_TYPE(SMDS_HSequenceOfMesh) == AType || MMgt_TShared::IsKind(AType));
92 Handle_SMDS_HSequenceOfMesh::~Handle_SMDS_HSequenceOfMesh() {}
93 #define Item Handle_SMDS_Mesh
94 #define Item_hxx "SMDS_Mesh.hxx"
95 #define TheSequence SMDS_SequenceOfMesh
96 #define TheSequence_hxx "SMDS_SequenceOfMesh.hxx"
97 #define TCollection_HSequence SMDS_HSequenceOfMesh
98 #define TCollection_HSequence_hxx "SMDS_HSequenceOfMesh.hxx"
99 #define Handle_TCollection_HSequence Handle_SMDS_HSequenceOfMesh
100 #define TCollection_HSequence_Type_() SMDS_HSequenceOfMesh_Type_()
101 #include <TCollection_HSequence.gxx>