/src/contrib/geom-5.1.2.7/inc/GEOMAlgo_DataMapOfPassKeyShapeShape.hxx

http://pythonocc.googlecode.com/ · C++ Header · 157 lines · 71 code · 53 blank · 33 comment · 1 complexity · 9e7eec03004d13718575b8d5d0f60129 MD5 · raw file

  1. // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
  2. //
  3. // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
  4. // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  5. //
  6. // This library is free software; you can redistribute it and/or
  7. // modify it under the terms of the GNU Lesser General Public
  8. // License as published by the Free Software Foundation; either
  9. // version 2.1 of the License.
  10. //
  11. // This library is distributed in the hope that it will be useful,
  12. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. // Lesser General Public License for more details.
  15. //
  16. // You should have received a copy of the GNU Lesser General Public
  17. // License along with this library; if not, write to the Free Software
  18. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. //
  20. // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
  21. //
  22. #ifndef _GEOMAlgo_DataMapOfPassKeyShapeShape_HeaderFile
  23. #define _GEOMAlgo_DataMapOfPassKeyShapeShape_HeaderFile
  24. #ifndef _TCollection_BasicMap_HeaderFile
  25. #include <TCollection_BasicMap.hxx>
  26. #endif
  27. #ifndef _Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyShapeShape_HeaderFile
  28. #include <Handle_GEOMAlgo_DataMapNodeOfDataMapOfPassKeyShapeShape.hxx>
  29. #endif
  30. #ifndef _Standard_Integer_HeaderFile
  31. #include <Standard_Integer.hxx>
  32. #endif
  33. #ifndef _Standard_Boolean_HeaderFile
  34. #include <Standard_Boolean.hxx>
  35. #endif
  36. class Standard_DomainError;
  37. class Standard_NoSuchObject;
  38. class GEOMAlgo_PassKeyShape;
  39. class TopoDS_Shape;
  40. class GEOMAlgo_PassKeyShapeMapHasher;
  41. class GEOMAlgo_DataMapNodeOfDataMapOfPassKeyShapeShape;
  42. class GEOMAlgo_DataMapIteratorOfDataMapOfPassKeyShapeShape;
  43. #ifndef _Standard_HeaderFile
  44. #include <Standard.hxx>
  45. #endif
  46. #ifndef _Standard_Macro_HeaderFile
  47. #include <Standard_Macro.hxx>
  48. #endif
  49. class GEOMAlgo_DataMapOfPassKeyShapeShape : public TCollection_BasicMap {
  50. public:
  51. void* operator new(size_t,void* anAddress)
  52. {
  53. return anAddress;
  54. }
  55. void* operator new(size_t size)
  56. {
  57. return Standard::Allocate(size);
  58. }
  59. void operator delete(void *anAddress)
  60. {
  61. if (anAddress) Standard::Free((Standard_Address&)anAddress);
  62. }
  63. // Methods PUBLIC
  64. //
  65. Standard_EXPORT GEOMAlgo_DataMapOfPassKeyShapeShape(const Standard_Integer NbBuckets = 1);
  66. Standard_EXPORT GEOMAlgo_DataMapOfPassKeyShapeShape& Assign(const GEOMAlgo_DataMapOfPassKeyShapeShape& Other) ;
  67. GEOMAlgo_DataMapOfPassKeyShapeShape& operator =(const GEOMAlgo_DataMapOfPassKeyShapeShape& Other)
  68. {
  69. return Assign(Other);
  70. }
  71. Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
  72. Standard_EXPORT void Clear() ;
  73. ~GEOMAlgo_DataMapOfPassKeyShapeShape()
  74. {
  75. Clear();
  76. }
  77. Standard_EXPORT Standard_Boolean Bind(const GEOMAlgo_PassKeyShape& K,const TopoDS_Shape& I) ;
  78. Standard_EXPORT Standard_Boolean IsBound(const GEOMAlgo_PassKeyShape& K) const;
  79. Standard_EXPORT Standard_Boolean UnBind(const GEOMAlgo_PassKeyShape& K) ;
  80. Standard_EXPORT const TopoDS_Shape& Find(const GEOMAlgo_PassKeyShape& K) const;
  81. const TopoDS_Shape& operator()(const GEOMAlgo_PassKeyShape& K) const
  82. {
  83. return Find(K);
  84. }
  85. Standard_EXPORT TopoDS_Shape& ChangeFind(const GEOMAlgo_PassKeyShape& K) ;
  86. TopoDS_Shape& operator()(const GEOMAlgo_PassKeyShape& K)
  87. {
  88. return ChangeFind(K);
  89. }
  90. protected:
  91. // Methods PROTECTED
  92. //
  93. // Fields PROTECTED
  94. //
  95. private:
  96. // Methods PRIVATE
  97. //
  98. Standard_EXPORT GEOMAlgo_DataMapOfPassKeyShapeShape(const GEOMAlgo_DataMapOfPassKeyShapeShape& Other);
  99. // Fields PRIVATE
  100. //
  101. };
  102. // other Inline functions and methods (like "C++: function call" methods)
  103. //
  104. #endif