/src/contrib/geom-5.1.2.7/inc_pythonocc/GEOMAlgo_ListOfPnt.hxx

http://pythonocc.googlecode.com/ · C++ Header · 197 lines · 94 code · 70 blank · 33 comment · 1 complexity · 53b1016ec24b65fde01cd2b4fd3890cf 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_ListOfPnt_HeaderFile
  23. #define _GEOMAlgo_ListOfPnt_HeaderFile
  24. #ifndef _Standard_Address_HeaderFile
  25. #include <Standard_Address.hxx>
  26. #endif
  27. #ifndef _Handle_GEOMAlgo_ListNodeOfListOfPnt_HeaderFile
  28. #include <Handle_GEOMAlgo_ListNodeOfListOfPnt.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_NoSuchObject;
  37. class GEOMAlgo_ListIteratorOfListOfPnt;
  38. class gp_Pnt;
  39. class GEOMAlgo_ListNodeOfListOfPnt;
  40. #ifndef _Standard_HeaderFile
  41. #include <Standard.hxx>
  42. #endif
  43. #ifndef _Standard_Macro_HeaderFile
  44. #include <Standard_Macro.hxx>
  45. #endif
  46. class GEOMAlgo_ListOfPnt {
  47. public:
  48. void* operator new(size_t,void* anAddress)
  49. {
  50. return anAddress;
  51. }
  52. void* operator new(size_t size)
  53. {
  54. return Standard::Allocate(size);
  55. }
  56. void operator delete(void *anAddress)
  57. {
  58. if (anAddress) Standard::Free((Standard_Address&)anAddress);
  59. }
  60. // Methods PUBLIC
  61. //
  62. Standard_EXPORT GEOMAlgo_ListOfPnt();
  63. Standard_EXPORT void Assign(const GEOMAlgo_ListOfPnt& Other) ;
  64. void operator=(const GEOMAlgo_ListOfPnt& Other)
  65. {
  66. Assign(Other);
  67. }
  68. Standard_EXPORT Standard_Integer Extent() const;
  69. Standard_EXPORT void Clear() ;
  70. ~GEOMAlgo_ListOfPnt()
  71. {
  72. Clear();
  73. }
  74. Standard_Boolean IsEmpty() const;
  75. Standard_EXPORT void Prepend(const gp_Pnt& I) ;
  76. Standard_EXPORT void Prepend(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& theIt) ;
  77. Standard_EXPORT void Prepend(GEOMAlgo_ListOfPnt& Other) ;
  78. Standard_EXPORT void Append(const gp_Pnt& I) ;
  79. Standard_EXPORT void Append(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& theIt) ;
  80. Standard_EXPORT void Append(GEOMAlgo_ListOfPnt& Other) ;
  81. Standard_EXPORT gp_Pnt& First() const;
  82. Standard_EXPORT gp_Pnt& Last() const;
  83. Standard_EXPORT void RemoveFirst() ;
  84. Standard_EXPORT void Remove(GEOMAlgo_ListIteratorOfListOfPnt& It) ;
  85. Standard_EXPORT void InsertBefore(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
  86. Standard_EXPORT void InsertBefore(GEOMAlgo_ListOfPnt& Other,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
  87. Standard_EXPORT void InsertAfter(const gp_Pnt& I,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
  88. Standard_EXPORT void InsertAfter(GEOMAlgo_ListOfPnt& Other,GEOMAlgo_ListIteratorOfListOfPnt& It) ;
  89. friend class GEOMAlgo_ListIteratorOfListOfPnt;
  90. protected:
  91. // Methods PROTECTED
  92. //
  93. // Fields PROTECTED
  94. //
  95. private:
  96. // Methods PRIVATE
  97. //
  98. Standard_EXPORT GEOMAlgo_ListOfPnt(const GEOMAlgo_ListOfPnt& Other);
  99. // Fields PRIVATE
  100. //
  101. Standard_Address myFirst;
  102. Standard_Address myLast;
  103. };
  104. #define Item gp_Pnt
  105. #define Item_hxx <gp_Pnt.hxx>
  106. #define TCollection_ListNode GEOMAlgo_ListNodeOfListOfPnt
  107. #define TCollection_ListNode_hxx <GEOMAlgo_ListNodeOfListOfPnt.hxx>
  108. #define TCollection_ListIterator GEOMAlgo_ListIteratorOfListOfPnt
  109. #define TCollection_ListIterator_hxx <GEOMAlgo_ListIteratorOfListOfPnt.hxx>
  110. #define Handle_TCollection_ListNode Handle_GEOMAlgo_ListNodeOfListOfPnt
  111. #define TCollection_ListNode_Type_() GEOMAlgo_ListNodeOfListOfPnt_Type_()
  112. #define TCollection_List GEOMAlgo_ListOfPnt
  113. #define TCollection_List_hxx <GEOMAlgo_ListOfPnt.hxx>
  114. #include <TCollection_List.lxx>
  115. #undef Item
  116. #undef Item_hxx
  117. #undef TCollection_ListNode
  118. #undef TCollection_ListNode_hxx
  119. #undef TCollection_ListIterator
  120. #undef TCollection_ListIterator_hxx
  121. #undef Handle_TCollection_ListNode
  122. #undef TCollection_ListNode_Type_
  123. #undef TCollection_List
  124. #undef TCollection_List_hxx
  125. // other Inline functions and methods (like "C++: function call" methods)
  126. //
  127. #endif