Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-23 09:20:44

0001 // Created on: 1992-09-22
0002 // Created by: Gilles DEBARBOUILLE
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _MAT_TListNodeOfListOfEdge_HeaderFile
0018 #define _MAT_TListNodeOfListOfEdge_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Transient.hxx>
0024 class MAT_Edge;
0025 class MAT_ListOfEdge;
0026 
0027 class MAT_TListNodeOfListOfEdge : public Standard_Transient
0028 {
0029 
0030 public:
0031   MAT_TListNodeOfListOfEdge();
0032 
0033   MAT_TListNodeOfListOfEdge(const occ::handle<MAT_Edge>& anitem);
0034 
0035   occ::handle<MAT_Edge> GetItem() const;
0036 
0037   occ::handle<MAT_TListNodeOfListOfEdge> Next() const;
0038 
0039   occ::handle<MAT_TListNodeOfListOfEdge> Previous() const;
0040 
0041   void SetItem(const occ::handle<MAT_Edge>& anitem);
0042 
0043   void Next(const occ::handle<MAT_TListNodeOfListOfEdge>& atlistnode);
0044 
0045   void Previous(const occ::handle<MAT_TListNodeOfListOfEdge>& atlistnode);
0046 
0047   Standard_EXPORT void Dummy() const;
0048 
0049   DEFINE_STANDARD_RTTI_INLINE(MAT_TListNodeOfListOfEdge, Standard_Transient)
0050 
0051 private:
0052   occ::handle<MAT_TListNodeOfListOfEdge> thenext;
0053   occ::handle<MAT_TListNodeOfListOfEdge> theprevious;
0054   occ::handle<MAT_Edge>                  theitem;
0055 };
0056 
0057 //=================================================================================================
0058 // Inline implementations
0059 //=================================================================================================
0060 
0061 inline MAT_TListNodeOfListOfEdge::MAT_TListNodeOfListOfEdge() = default;
0062 
0063 //=================================================================================================
0064 
0065 inline MAT_TListNodeOfListOfEdge::MAT_TListNodeOfListOfEdge(const occ::handle<MAT_Edge>& anitem)
0066 {
0067   theitem = anitem;
0068 }
0069 
0070 //=================================================================================================
0071 
0072 inline occ::handle<MAT_Edge> MAT_TListNodeOfListOfEdge::GetItem() const
0073 {
0074   return theitem;
0075 }
0076 
0077 //=================================================================================================
0078 
0079 inline occ::handle<MAT_TListNodeOfListOfEdge> MAT_TListNodeOfListOfEdge::Next() const
0080 {
0081   return thenext;
0082 }
0083 
0084 //=================================================================================================
0085 
0086 inline occ::handle<MAT_TListNodeOfListOfEdge> MAT_TListNodeOfListOfEdge::Previous() const
0087 {
0088   return theprevious;
0089 }
0090 
0091 //=================================================================================================
0092 
0093 inline void MAT_TListNodeOfListOfEdge::SetItem(const occ::handle<MAT_Edge>& anitem)
0094 {
0095   theitem = anitem;
0096 }
0097 
0098 //=================================================================================================
0099 
0100 inline void MAT_TListNodeOfListOfEdge::Next(
0101   const occ::handle<MAT_TListNodeOfListOfEdge>& atlistnode)
0102 {
0103   thenext = atlistnode;
0104 }
0105 
0106 //=================================================================================================
0107 
0108 inline void MAT_TListNodeOfListOfEdge::Previous(
0109   const occ::handle<MAT_TListNodeOfListOfEdge>& atlistnode)
0110 {
0111   theprevious = atlistnode;
0112 }
0113 
0114 #endif // _MAT_TListNodeOfListOfEdge_HeaderFile