1 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
\r
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
\r
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
\r
6 // This library is free software; you can redistribute it and/or
\r
7 // modify it under the terms of the GNU Lesser General Public
\r
8 // License as published by the Free Software Foundation; either
\r
9 // version 2.1 of the License.
\r
11 // This library is distributed in the hope that it will be useful,
\r
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
14 // Lesser General Public License for more details.
\r
16 // You should have received a copy of the GNU Lesser General Public
\r
17 // License along with this library; if not, write to the Free Software
\r
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
\r
22 #include <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>
\r
24 #ifndef _Standard_TypeMismatch_HeaderFile
\r
25 #include <Standard_TypeMismatch.hxx>
\r
28 #ifndef _TopoDS_Shape_HeaderFile
\r
29 #include <TopoDS_Shape.hxx>
\r
31 #ifndef _TopTools_MapOfShape_HeaderFile
\r
32 #include <TopTools_MapOfShape.hxx>
\r
34 #ifndef _TopTools_ShapeMapHasher_HeaderFile
\r
35 #include <TopTools_ShapeMapHasher.hxx>
\r
37 #ifndef _GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile
\r
38 #include <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>
\r
40 #ifndef _GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape_HeaderFile
\r
41 #include <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>
\r
47 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()
\r
50 static Handle_Standard_Type aType1 = STANDARD_TYPE(TCollection_MapNode);
\r
51 static Handle_Standard_Type aType2 = STANDARD_TYPE(MMgt_TShared);
\r
52 static Handle_Standard_Type aType3 = STANDARD_TYPE(Standard_Transient);
\r
55 static Handle_Standard_Transient _Ancestors[]= {aType1,aType2,aType3,NULL};
\r
56 static Handle_Standard_Type _aType = new Standard_Type("GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape",
\r
57 sizeof(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape),
\r
59 (Standard_Address)_Ancestors,
\r
60 (Standard_Address)NULL);
\r
67 // allow safe downcasting
\r
69 const Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)::DownCast(const Handle(Standard_Transient)& AnObject)
\r
71 Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) _anOtherObject;
\r
73 if (!AnObject.IsNull()) {
\r
74 if (AnObject->IsKind(STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape))) {
\r
75 _anOtherObject = Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)((Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)&)AnObject);
\r
79 return _anOtherObject ;
\r
81 const Handle(Standard_Type)& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::DynamicType() const
\r
83 return STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) ;
\r
85 //Standard_Boolean GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::IsKind(const Handle(Standard_Type)& AType) const
\r
87 // return (STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) == AType || TCollection_MapNode::IsKind(AType));
\r
89 //Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::~Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape() {}
\r
90 #define TheKey TopoDS_Shape
\r
91 #define TheKey_hxx <TopoDS_Shape.hxx>
\r
92 #define TheItem TopTools_MapOfShape
\r
93 #define TheItem_hxx <TopTools_MapOfShape.hxx>
\r
94 #define Hasher TopTools_ShapeMapHasher
\r
95 #define Hasher_hxx <TopTools_ShapeMapHasher.hxx>
\r
96 #define TCollection_DataMapNode GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape
\r
97 #define TCollection_DataMapNode_hxx <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>
\r
98 #define TCollection_DataMapIterator GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape
\r
99 #define TCollection_DataMapIterator_hxx <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>
\r
100 #define Handle_TCollection_DataMapNode Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape
\r
101 #define TCollection_DataMapNode_Type_() GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()
\r
102 #define TCollection_DataMap GEOMAlgo_DataMapOfShapeMapOfShape
\r
103 #define TCollection_DataMap_hxx <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>
\r
104 #include <TCollection_DataMapNode.gxx>
\r