]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMAlgo/GEOMAlgo_DataMapOfShapePnt.hxx
Salome HOME
0021672: [CEA 565] Dump Study from script
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_DataMapOfShapePnt.hxx
index aca9d89e2539534293efaf73c3e93156a0d6d06a..c552d1c81c3f0f7313b9e277a08402ec2e25cd1c 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_DataMapOfShapePnt_HeaderFile\r
-#define _GEOMAlgo_DataMapOfShapePnt_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_DataMapNodeOfDataMapOfShapePnt_HeaderFile\r
-#include <Handle_GEOMAlgo_DataMapNodeOfDataMapOfShapePnt.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
-\r
-class Standard_DomainError;\r
-class Standard_NoSuchObject;\r
-class TopoDS_Shape;\r
-class gp_Pnt;\r
-class TopTools_ShapeMapHasher;\r
-class GEOMAlgo_DataMapNodeOfDataMapOfShapePnt;\r
-class GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt;\r
-\r
-#include <Basics_OCCTVersion.hxx>\r
-\r
-class GEOMAlgo_DataMapOfShapePnt  : 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_DataMapOfShapePnt(const Standard_Integer NbBuckets = 1);\r
-  \r
-  Standard_EXPORT     GEOMAlgo_DataMapOfShapePnt& Assign(const GEOMAlgo_DataMapOfShapePnt& Other) ;\r
-    GEOMAlgo_DataMapOfShapePnt& operator =(const GEOMAlgo_DataMapOfShapePnt& 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_DataMapOfShapePnt()\r
-{\r
-  Clear();\r
-}\r
-  \r
-  Standard_EXPORT     Standard_Boolean Bind(const TopoDS_Shape& K,const gp_Pnt& 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 gp_Pnt& Find(const TopoDS_Shape& K) const;\r
-   const gp_Pnt& operator()(const TopoDS_Shape& K) const\r
-{\r
-  return Find(K);\r
-}\r
-  \r
-  Standard_EXPORT     gp_Pnt& ChangeFind(const TopoDS_Shape& K) ;\r
-    gp_Pnt& operator()(const TopoDS_Shape& K) \r
-{\r
-  return ChangeFind(K);\r
-}\r
-\r
-#if OCC_VERSION_LARGE > 0x06050100 // for OCC-6.5.2 and higher version\r
-  Standard_EXPORT Standard_Address Find1 (const TopoDS_Shape& K) const;\r
-  Standard_EXPORT Standard_Address ChangeFind1 (const TopoDS_Shape& K);\r
-#endif\r
-\r
-private:\r
-  \r
-  Standard_EXPORT   GEOMAlgo_DataMapOfShapePnt(const GEOMAlgo_DataMapOfShapePnt& Other);\r
-\r
-};\r
-\r
-// other Inline functions and methods (like "C++: function call" methods)\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_DataMapOfShapePnt.hxx
+// Created:    Wed Feb 22 11:10:15 2012
+// Author:
+//             <pkv@BDEURI37616>
+
+
+#ifndef GEOMAlgo_DataMapOfShapePnt_HeaderFile
+#define GEOMAlgo_DataMapOfShapePnt_HeaderFile
+
+
+#include <TopoDS_Shape.hxx>
+#include <gp_Pnt.hxx>
+#include <TopTools_ShapeMapHasher.hxx>
+
+#define _NCollection_MapHasher
+#include <NCollection_DataMap.hxx>
+#include <gp_Pnt.hxx>
+
+typedef NCollection_DataMap<TopoDS_Shape, gp_Pnt, TopTools_ShapeMapHasher> GEOMAlgo_DataMapOfShapePnt;
+typedef GEOMAlgo_DataMapOfShapePnt::Iterator GEOMAlgo_DataMapIteratorOfDataMapOfShapePnt;
+
+#undef _NCollection_MapHasher
+
+
+
+#endif