]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/NMTDS/NMTDS_ListOfPairBoolean.hxx
Salome HOME
0021672: [CEA 565] Dump Study from script
[modules/geom.git] / src / NMTDS / NMTDS_ListOfPairBoolean.hxx
index 7e8d08ad534bb21a89d2af714a74fe160e4e6110..e45f4b91a9867876c4f64b4b7646364366e4c1af 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 _NMTDS_ListOfPairBoolean_HeaderFile\r
-#define _NMTDS_ListOfPairBoolean_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 _Standard_Address_HeaderFile\r
-#include <Standard_Address.hxx>\r
-#endif\r
-#ifndef _Handle_NMTDS_ListNodeOfListOfPairBoolean_HeaderFile\r
-#include <Handle_NMTDS_ListNodeOfListOfPairBoolean.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_NoSuchObject;\r
-class NMTDS_ListIteratorOfListOfPairBoolean;\r
-class NMTDS_PairBoolean;\r
-class NMTDS_ListNodeOfListOfPairBoolean;\r
-\r
-\r
-\r
-class NMTDS_ListOfPairBoolean  {\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   NMTDS_ListOfPairBoolean();\r
-  \r
-  Standard_EXPORT     void Assign(const NMTDS_ListOfPairBoolean& Other) ;\r
-    void operator=(const NMTDS_ListOfPairBoolean& Other) \r
-{\r
-  Assign(Other);\r
-}\r
-  \r
-  Standard_EXPORT     Standard_Integer Extent() const;\r
-  \r
-  Standard_EXPORT     void Clear() ;\r
-~NMTDS_ListOfPairBoolean()\r
-{\r
-  Clear();\r
-}\r
-  \r
-        Standard_Boolean IsEmpty() const;\r
-  \r
-  Standard_EXPORT     void Prepend(const NMTDS_PairBoolean& I) ;\r
-  \r
-  Standard_EXPORT     void Prepend(const NMTDS_PairBoolean& I,NMTDS_ListIteratorOfListOfPairBoolean& theIt) ;\r
-  \r
-  Standard_EXPORT     void Prepend(NMTDS_ListOfPairBoolean& Other) ;\r
-  \r
-  Standard_EXPORT     void Append(const NMTDS_PairBoolean& I) ;\r
-  \r
-  Standard_EXPORT     void Append(const NMTDS_PairBoolean& I,NMTDS_ListIteratorOfListOfPairBoolean& theIt) ;\r
-  \r
-  Standard_EXPORT     void Append(NMTDS_ListOfPairBoolean& Other) ;\r
-  \r
-  Standard_EXPORT     NMTDS_PairBoolean& First() const;\r
-  \r
-  Standard_EXPORT     NMTDS_PairBoolean& Last() const;\r
-  \r
-  Standard_EXPORT     void RemoveFirst() ;\r
-  \r
-  Standard_EXPORT     void Remove(NMTDS_ListIteratorOfListOfPairBoolean& It) ;\r
-  \r
-  Standard_EXPORT     void InsertBefore(const NMTDS_PairBoolean& I,NMTDS_ListIteratorOfListOfPairBoolean& It) ;\r
-  \r
-  Standard_EXPORT     void InsertBefore(NMTDS_ListOfPairBoolean& Other,NMTDS_ListIteratorOfListOfPairBoolean& It) ;\r
-  \r
-  Standard_EXPORT     void InsertAfter(const NMTDS_PairBoolean& I,NMTDS_ListIteratorOfListOfPairBoolean& It) ;\r
-  \r
-  Standard_EXPORT     void InsertAfter(NMTDS_ListOfPairBoolean& Other,NMTDS_ListIteratorOfListOfPairBoolean& It) ;\r
-\r
-\r
-friend class NMTDS_ListIteratorOfListOfPairBoolean;\r
-\r
-\r
-\r
-protected:\r
-\r
-\r
-\r
-\r
-\r
-private:\r
-\r
-  \r
-  Standard_EXPORT   NMTDS_ListOfPairBoolean(const NMTDS_ListOfPairBoolean& Other);\r
-\r
-\r
-Standard_Address myFirst;\r
-Standard_Address myLast;\r
-\r
-\r
-};\r
-\r
-#define Item NMTDS_PairBoolean\r
-#define Item_hxx <NMTDS_PairBoolean.hxx>\r
-#define TCollection_ListNode NMTDS_ListNodeOfListOfPairBoolean\r
-#define TCollection_ListNode_hxx <NMTDS_ListNodeOfListOfPairBoolean.hxx>\r
-#define TCollection_ListIterator NMTDS_ListIteratorOfListOfPairBoolean\r
-#define TCollection_ListIterator_hxx <NMTDS_ListIteratorOfListOfPairBoolean.hxx>\r
-#define Handle_TCollection_ListNode Handle_NMTDS_ListNodeOfListOfPairBoolean\r
-#define TCollection_ListNode_Type_() NMTDS_ListNodeOfListOfPairBoolean_Type_()\r
-#define TCollection_List NMTDS_ListOfPairBoolean\r
-#define TCollection_List_hxx <NMTDS_ListOfPairBoolean.hxx>\r
-\r
-#include <TCollection_List.lxx>\r
-\r
-#undef Item\r
-#undef Item_hxx\r
-#undef TCollection_ListNode\r
-#undef TCollection_ListNode_hxx\r
-#undef TCollection_ListIterator\r
-#undef TCollection_ListIterator_hxx\r
-#undef Handle_TCollection_ListNode\r
-#undef TCollection_ListNode_Type_\r
-#undef TCollection_List\r
-#undef TCollection_List_hxx\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:       NMTDS_ListOfPairBoolean.hxx
+// Created:    Mon Feb 20 07:27:34 2012
+// Author:     
+//             <pkv@BDEURI37616>
+
+
+#ifndef NMTDS_ListOfPairBoolean_HeaderFile
+#define NMTDS_ListOfPairBoolean_HeaderFile
+
+#include <NCollection_List.hxx>   
+#include <NMTDS_PairBoolean.hxx>
+
+typedef NCollection_List<NMTDS_PairBoolean> NMTDS_ListOfPairBoolean; 
+typedef NMTDS_ListOfPairBoolean::Iterator NMTDS_ListIteratorOfListOfPairBoolean;  
+
+#endif