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

http://pythonocc.googlecode.com/ · C++ Header · 146 lines · 83 code · 28 blank · 35 comment · 1 complexity · fb166f87c3de87ebcdcbfd0a64ff1425 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_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape_HeaderFile
  23. #define _GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape_HeaderFile
  24. #ifndef _Standard_HeaderFile
  25. #include <Standard.hxx>
  26. #endif
  27. #ifndef _Handle_GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape_HeaderFile
  28. #include <Handle_GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape.hxx>
  29. #endif
  30. #ifndef _GEOMAlgo_PassKey_HeaderFile
  31. #include <GEOMAlgo_PassKey.hxx>
  32. #endif
  33. #ifndef _Standard_Integer_HeaderFile
  34. #include <Standard_Integer.hxx>
  35. #endif
  36. #ifndef _TopTools_ListOfShape_HeaderFile
  37. #include <TopTools_ListOfShape.hxx>
  38. #endif
  39. #ifndef _TCollection_MapNodePtr_HeaderFile
  40. #include <TCollection_MapNodePtr.hxx>
  41. #endif
  42. #ifndef _TCollection_MapNode_HeaderFile
  43. #include <TCollection_MapNode.hxx>
  44. #endif
  45. class GEOMAlgo_PassKey;
  46. class TopTools_ListOfShape;
  47. class GEOMAlgo_PassKeyMapHasher;
  48. class GEOMAlgo_IndexedDataMapOfPassKeyListOfShape;
  49. class GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape : public TCollection_MapNode {
  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. GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape(const GEOMAlgo_PassKey& K1,const Standard_Integer K2,const TopTools_ListOfShape& I,const TCollection_MapNodePtr& n1,const TCollection_MapNodePtr& n2);
  66. GEOMAlgo_PassKey& Key1() const;
  67. Standard_Integer& Key2() const;
  68. TCollection_MapNodePtr& Next2() const;
  69. TopTools_ListOfShape& Value() const;
  70. Standard_EXPORT ~GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape();
  71. // Type management
  72. //
  73. Standard_EXPORT friend Handle_Standard_Type& GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape_Type_();
  74. Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
  75. Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
  76. protected:
  77. // Methods PROTECTED
  78. //
  79. // Fields PROTECTED
  80. //
  81. private:
  82. // Methods PRIVATE
  83. //
  84. // Fields PRIVATE
  85. //
  86. GEOMAlgo_PassKey myKey1;
  87. Standard_Integer myKey2;
  88. TopTools_ListOfShape myValue;
  89. TCollection_MapNodePtr myNext2;
  90. };
  91. #define TheKey GEOMAlgo_PassKey
  92. #define TheKey_hxx <GEOMAlgo_PassKey.hxx>
  93. #define TheItem TopTools_ListOfShape
  94. #define TheItem_hxx <TopTools_ListOfShape.hxx>
  95. #define Hasher GEOMAlgo_PassKeyMapHasher
  96. #define Hasher_hxx <GEOMAlgo_PassKeyMapHasher.hxx>
  97. #define TCollection_IndexedDataMapNode GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape
  98. #define TCollection_IndexedDataMapNode_hxx <GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape.hxx>
  99. #define Handle_TCollection_IndexedDataMapNode Handle_GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape
  100. #define TCollection_IndexedDataMapNode_Type_() GEOMAlgo_IndexedDataMapNodeOfIndexedDataMapOfPassKeyListOfShape_Type_()
  101. #define TCollection_IndexedDataMap GEOMAlgo_IndexedDataMapOfPassKeyListOfShape
  102. #define TCollection_IndexedDataMap_hxx <GEOMAlgo_IndexedDataMapOfPassKeyListOfShape.hxx>
  103. #include <TCollection_IndexedDataMapNode.lxx>
  104. #undef TheKey
  105. #undef TheKey_hxx
  106. #undef TheItem
  107. #undef TheItem_hxx
  108. #undef Hasher
  109. #undef Hasher_hxx
  110. #undef TCollection_IndexedDataMapNode
  111. #undef TCollection_IndexedDataMapNode_hxx
  112. #undef Handle_TCollection_IndexedDataMapNode
  113. #undef TCollection_IndexedDataMapNode_Type_
  114. #undef TCollection_IndexedDataMap
  115. #undef TCollection_IndexedDataMap_hxx
  116. // other Inline functions and methods (like "C++: function call" methods)
  117. //
  118. #endif