Salome HOME
IMP 0021129: EDF 1541 GEOM: Problem with GetInPlace. A new GetInPlace implementation...
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_0.cxx
1 // Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
2 //\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
5 //\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
10 //\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
15 //\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
19 //\r
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
21 \r
22 #include <GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>\r
23 \r
24 #ifndef _Standard_TypeMismatch_HeaderFile\r
25 #include <Standard_TypeMismatch.hxx>\r
26 #endif\r
27 \r
28 #ifndef _TopoDS_Shape_HeaderFile\r
29 #include <TopoDS_Shape.hxx>\r
30 #endif\r
31 #ifndef _TopTools_MapOfShape_HeaderFile\r
32 #include <TopTools_MapOfShape.hxx>\r
33 #endif\r
34 #ifndef _TopTools_ShapeMapHasher_HeaderFile\r
35 #include <TopTools_ShapeMapHasher.hxx>\r
36 #endif\r
37 #ifndef _GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile\r
38 #include <GEOMAlgo_DataMapOfShapeMapOfShape.hxx>\r
39 #endif\r
40 #ifndef _GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape_HeaderFile\r
41 #include <GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape.hxx>\r
42 #endif\r
43 \r
44  \r
45 \r
46 \r
47 Standard_EXPORT Handle_Standard_Type& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_Type_()\r
48 {\r
49 \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
53  \r
54 \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
58                                                          1,\r
59                                                          (Standard_Address)_Ancestors,\r
60                                                          (Standard_Address)NULL);\r
61 \r
62   return _aType;\r
63 }\r
64 \r
65 \r
66 // DownCast method\r
67 //   allow safe downcasting\r
68 //\r
69 const Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape)::DownCast(const Handle(Standard_Transient)& AnObject) \r
70 {\r
71   Handle(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) _anOtherObject;\r
72 \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
76      }\r
77   }\r
78 \r
79   return _anOtherObject ;\r
80 }\r
81 const Handle(Standard_Type)& GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::DynamicType() const \r
82\r
83   return STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) ; \r
84 }\r
85 //Standard_Boolean GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape::IsKind(const Handle(Standard_Type)& AType) const \r
86 //{ \r
87 //  return (STANDARD_TYPE(GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape) == AType || TCollection_MapNode::IsKind(AType)); \r
88 //}\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
105 \r