Salome HOME
Mantis issue 0021541: EDF 2213 GEOM: Filling accuracy
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_DataMapOfShapeMapOfShape.hxx
index f1e56991cf0dfdefc4875da609c6b26a0625ab24..510f4373c36ba85e2fa87f213fe3e8dc3e83130a 100644 (file)
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE\r
-//\r
-// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,\r
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS\r
-//\r
-// This library is free software; you can redistribute it and/or\r
-// modify it under the terms of the GNU Lesser General Public\r
-// License as published by the Free Software Foundation; either\r
-// version 2.1 of the License.\r
-//\r
-// This library is distributed in the hope that it will be useful,\r
-// but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
-// Lesser General Public License for more details.\r
-//\r
-// You should have received a copy of the GNU Lesser General Public\r
-// License along with this library; if not, write to the Free Software\r
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA\r
-//\r
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com\r
-\r
-#ifndef _GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile\r
-#define _GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile\r
-\r
-#ifndef _Standard_HeaderFile\r
-#include <Standard.hxx>\r
-#endif\r
-#ifndef _Standard_Macro_HeaderFile\r
-#include <Standard_Macro.hxx>\r
-#endif\r
-\r
-#ifndef _TCollection_BasicMap_HeaderFile\r
-#include <TCollection_BasicMap.hxx>\r
-#endif\r
-#ifndef _Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape_HeaderFile\r
-#include <Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape.hxx>\r
-#endif\r
-#ifndef _Standard_Integer_HeaderFile\r
-#include <Standard_Integer.hxx>\r
-#endif\r
-#ifndef _Standard_Boolean_HeaderFile\r
-#include <Standard_Boolean.hxx>\r
-#endif\r
-class Standard_DomainError;\r
-class Standard_NoSuchObject;\r
-class TopoDS_Shape;\r
-class TopTools_MapOfShape;\r
-class TopTools_ShapeMapHasher;\r
-class GEOMAlgo_DataMapNodeOfDataMapOfShapeMapOfShape;\r
-class GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape;\r
-\r
-\r
-\r
-class GEOMAlgo_DataMapOfShapeMapOfShape  : public TCollection_BasicMap {\r
-public:\r
-\r
-  void* operator new(size_t,void* anAddress) \r
-  {\r
-    return anAddress;\r
-  }\r
-  void* operator new(size_t size) \r
-  {\r
-    return Standard::Allocate(size); \r
-  }\r
-  void  operator delete(void *anAddress) \r
-  {\r
-    if (anAddress) Standard::Free((Standard_Address&)anAddress); \r
-  }\r
-\r
-  \r
-  Standard_EXPORT   GEOMAlgo_DataMapOfShapeMapOfShape(const Standard_Integer NbBuckets = 1);\r
-  \r
-  Standard_EXPORT     GEOMAlgo_DataMapOfShapeMapOfShape& Assign(const GEOMAlgo_DataMapOfShapeMapOfShape& Other) ;\r
-    GEOMAlgo_DataMapOfShapeMapOfShape& operator =(const GEOMAlgo_DataMapOfShapeMapOfShape& Other) \r
-{\r
-  return Assign(Other);\r
-}\r
-  \r
-  Standard_EXPORT     void ReSize(const Standard_Integer NbBuckets) ;\r
-  \r
-  Standard_EXPORT     void Clear() ;\r
-~GEOMAlgo_DataMapOfShapeMapOfShape()\r
-{\r
-  Clear();\r
-}\r
-  \r
-  Standard_EXPORT     Standard_Boolean Bind(const TopoDS_Shape& K,const TopTools_MapOfShape& I) ;\r
-  \r
-  Standard_EXPORT     Standard_Boolean IsBound(const TopoDS_Shape& K) const;\r
-  \r
-  Standard_EXPORT     Standard_Boolean UnBind(const TopoDS_Shape& K) ;\r
-  \r
-  Standard_EXPORT    const TopTools_MapOfShape& Find(const TopoDS_Shape& K) const;\r
-   const TopTools_MapOfShape& operator()(const TopoDS_Shape& K) const\r
-{\r
-  return Find(K);\r
-}\r
-  \r
-  Standard_EXPORT     TopTools_MapOfShape& ChangeFind(const TopoDS_Shape& K) ;\r
-    TopTools_MapOfShape& operator()(const TopoDS_Shape& K) \r
-{\r
-  return ChangeFind(K);\r
-}\r
-\r
-\r
-\r
-\r
-\r
-protected:\r
-\r
-\r
-\r
-\r
-\r
-private:\r
-\r
-  \r
-  Standard_EXPORT   GEOMAlgo_DataMapOfShapeMapOfShape(const GEOMAlgo_DataMapOfShapeMapOfShape& Other);\r
-\r
-\r
-\r
-\r
-};\r
-\r
-\r
-\r
-\r
-\r
-// other Inline functions and methods (like "C++: function call" methods)\r
-\r
-\r
-#endif\r
+// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+// File:       GEOMAlgo_DataMapOfShapeMapOfShape.hxx
+// Created:    Wed Feb 22 11:07:16 2012
+// Author:
+//             <pkv@BDEURI37616>
+
+
+#ifndef GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile
+#define GEOMAlgo_DataMapOfShapeMapOfShape_HeaderFile
+
+
+#include <TopoDS_Shape.hxx>
+#include <TopTools_MapOfShape.hxx>
+#include <TopTools_ShapeMapHasher.hxx>
+
+#define _NCollection_MapHasher
+#include <NCollection_DataMap.hxx>
+
+
+typedef NCollection_DataMap<TopoDS_Shape, TopTools_MapOfShape, TopTools_ShapeMapHasher> GEOMAlgo_DataMapOfShapeMapOfShape;
+typedef GEOMAlgo_DataMapOfShapeMapOfShape::Iterator GEOMAlgo_DataMapIteratorOfDataMapOfShapeMapOfShape;
+
+#undef _NCollection_MapHasher
+
+
+
+#endif