1 // Created on: 1992-09-22 2 // Created by: Gilles DEBARBOUILLE 3 // Copyright (c) 1992-1999 Matra Datavision 4 // Copyright (c) 1999-2014 OPEN CASCADE SAS 5 // 6 // This file is part of Open CASCADE Technology software library. 7 // 8 // This library is free software; you can redistribute it and/or modify it under 9 // the terms of the GNU Lesser General Public License version 2.1 as published 10 // by the Free Software Foundation, with special exception defined in the file 11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 12 // distribution for complete text of the license and disclaimer of any warranty. 13 // 14 // Alternatively, this file may be used under the terms of Open CASCADE 15 // commercial license or contractual agreement. 16 17 #ifndef _MAT_TListNodeOfListOfEdge_HeaderFile 18 #define _MAT_TListNodeOfListOfEdge_HeaderFile 19 20 #include <Standard.hxx> 21 #include <Standard_Type.hxx> 22 23 #include <Standard_Transient.hxx> 24 class MAT_Edge; 25 class MAT_ListOfEdge; 26 27 28 class MAT_TListNodeOfListOfEdge; 29 DEFINE_STANDARD_HANDLE(MAT_TListNodeOfListOfEdge, Standard_Transient) 30 31 32 class MAT_TListNodeOfListOfEdge : public Standard_Transient 33 { 34 35 public: 36 37 38 MAT_TListNodeOfListOfEdge(); 39 40 MAT_TListNodeOfListOfEdge(const Handle(MAT_Edge)& anitem); 41 42 Handle(MAT_Edge) GetItem() const; 43 44 Handle(MAT_TListNodeOfListOfEdge) Next() const; 45 46 Handle(MAT_TListNodeOfListOfEdge) Previous() const; 47 48 void SetItem (const Handle(MAT_Edge)& anitem); 49 50 void Next (const Handle(MAT_TListNodeOfListOfEdge)& atlistnode); 51 52 void Previous (const Handle(MAT_TListNodeOfListOfEdge)& atlistnode); 53 54 Standard_EXPORT void Dummy() const; 55 56 57 58 59 DEFINE_STANDARD_RTTI_INLINE(MAT_TListNodeOfListOfEdge,Standard_Transient) 60 61 protected: 62 63 64 65 66 private: 67 68 69 Handle(MAT_TListNodeOfListOfEdge) thenext; 70 Handle(MAT_TListNodeOfListOfEdge) theprevious; 71 Handle(MAT_Edge) theitem; 72 73 74 }; 75 76 #define Item Handle(MAT_Edge) 77 #define Item_hxx <MAT_Edge.hxx> 78 #define MAT_TListNode MAT_TListNodeOfListOfEdge 79 #define MAT_TListNode_hxx <MAT_TListNodeOfListOfEdge.hxx> 80 #define Handle_MAT_TListNode Handle(MAT_TListNodeOfListOfEdge) 81 #define MAT_TList MAT_ListOfEdge 82 #define MAT_TList_hxx <MAT_ListOfEdge.hxx> 83 #define Handle_MAT_TList Handle(MAT_ListOfEdge) 84 85 #include <MAT_TListNode.lxx> 86 87 #undef Item 88 #undef Item_hxx 89 #undef MAT_TListNode 90 #undef MAT_TListNode_hxx 91 #undef Handle_MAT_TListNode 92 #undef MAT_TList 93 #undef MAT_TList_hxx 94 #undef Handle_MAT_TList 95 96 97 98 99 #endif // _MAT_TListNodeOfListOfEdge_HeaderFile 100