Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-01 08:33:13

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_ListOfEdge_HeaderFile
0018 #define _MAT_ListOfEdge_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <Standard_Integer.hxx>
0024 #include <Standard_Transient.hxx>
0025 class MAT_TListNodeOfListOfEdge;
0026 class MAT_Edge;
0027 
0028 class MAT_ListOfEdge;
0029 DEFINE_STANDARD_HANDLE(MAT_ListOfEdge, Standard_Transient)
0030 
0031 class MAT_ListOfEdge : public Standard_Transient
0032 {
0033 
0034 public:
0035   Standard_EXPORT MAT_ListOfEdge();
0036 
0037   Standard_EXPORT ~MAT_ListOfEdge();
0038 
0039   Standard_EXPORT void First();
0040 
0041   Standard_EXPORT void Last();
0042 
0043   Standard_EXPORT void Init(const Handle(MAT_Edge)& aniten);
0044 
0045   Standard_EXPORT void Next();
0046 
0047   Standard_EXPORT void Previous();
0048 
0049   Standard_EXPORT Standard_Boolean More() const;
0050 
0051   Standard_EXPORT Handle(MAT_Edge) Current() const;
0052 
0053   Standard_EXPORT void Current(const Handle(MAT_Edge)& anitem) const;
0054 
0055   Standard_EXPORT Handle(MAT_Edge) FirstItem() const;
0056 
0057   Standard_EXPORT Handle(MAT_Edge) LastItem() const;
0058 
0059   Standard_EXPORT Handle(MAT_Edge) PreviousItem() const;
0060 
0061   Standard_EXPORT Handle(MAT_Edge) NextItem() const;
0062 
0063   Standard_Integer Number() const;
0064 
0065   Standard_Integer Index() const;
0066 
0067   Standard_EXPORT Handle(MAT_Edge) Brackets(const Standard_Integer anindex);
0068 
0069   Handle(MAT_Edge) operator()(const Standard_Integer anindex) { return Brackets(anindex); }
0070 
0071   Standard_EXPORT void Unlink();
0072 
0073   Standard_EXPORT void LinkBefore(const Handle(MAT_Edge)& anitem);
0074 
0075   Standard_EXPORT void LinkAfter(const Handle(MAT_Edge)& anitem);
0076 
0077   Standard_EXPORT void FrontAdd(const Handle(MAT_Edge)& anitem);
0078 
0079   Standard_EXPORT void BackAdd(const Handle(MAT_Edge)& anitem);
0080 
0081   Standard_EXPORT void Permute();
0082 
0083   Standard_EXPORT void Loop() const;
0084 
0085   Standard_Boolean IsEmpty() const;
0086 
0087   Standard_EXPORT void Dump(const Standard_Integer ashift, const Standard_Integer alevel);
0088 
0089   DEFINE_STANDARD_RTTI_INLINE(MAT_ListOfEdge, Standard_Transient)
0090 
0091 protected:
0092 private:
0093   Handle(MAT_TListNodeOfListOfEdge) thefirstnode;
0094   Handle(MAT_TListNodeOfListOfEdge) thelastnode;
0095   Handle(MAT_TListNodeOfListOfEdge) thecurrentnode;
0096   Standard_Integer                  thecurrentindex;
0097   Standard_Integer                  thenumberofitems;
0098 };
0099 
0100 #define Item Handle(MAT_Edge)
0101 #define Item_hxx <MAT_Edge.hxx>
0102 #define MAT_TListNode MAT_TListNodeOfListOfEdge
0103 #define MAT_TListNode_hxx <MAT_TListNodeOfListOfEdge.hxx>
0104 #define Handle_MAT_TListNode Handle(MAT_TListNodeOfListOfEdge)
0105 #define MAT_TList MAT_ListOfEdge
0106 #define MAT_TList_hxx <MAT_ListOfEdge.hxx>
0107 #define Handle_MAT_TList Handle(MAT_ListOfEdge)
0108 
0109 #include <MAT_TList.lxx>
0110 
0111 #undef Item
0112 #undef Item_hxx
0113 #undef MAT_TListNode
0114 #undef MAT_TListNode_hxx
0115 #undef Handle_MAT_TListNode
0116 #undef MAT_TList
0117 #undef MAT_TList_hxx
0118 #undef Handle_MAT_TList
0119 
0120 #endif // _MAT_ListOfEdge_HeaderFile