42cf5bc1 |
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_ListOfBisector_HeaderFile |
18 | #define _MAT_ListOfBisector_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_Type.hxx> |
22 | |
23 | #include <Standard_Integer.hxx> |
25e59720 |
24 | #include <Standard_Transient.hxx> |
42cf5bc1 |
25 | #include <Standard_Boolean.hxx> |
26 | class MAT_TListNodeOfListOfBisector; |
27 | class MAT_Bisector; |
28 | |
29 | |
30 | class MAT_ListOfBisector; |
25e59720 |
31 | DEFINE_STANDARD_HANDLE(MAT_ListOfBisector, Standard_Transient) |
42cf5bc1 |
32 | |
33 | |
25e59720 |
34 | class MAT_ListOfBisector : public Standard_Transient |
42cf5bc1 |
35 | { |
36 | |
37 | public: |
38 | |
42cf5bc1 |
39 | Standard_EXPORT MAT_ListOfBisector(); |
40 | |
23c2ae55 |
41 | Standard_EXPORT ~MAT_ListOfBisector(); |
42 | |
42cf5bc1 |
43 | Standard_EXPORT void First(); |
44 | |
45 | Standard_EXPORT void Last(); |
46 | |
47 | Standard_EXPORT void Init (const Handle(MAT_Bisector)& aniten); |
48 | |
49 | Standard_EXPORT void Next(); |
50 | |
51 | Standard_EXPORT void Previous(); |
52 | |
53 | Standard_EXPORT Standard_Boolean More() const; |
54 | |
55 | Standard_EXPORT Handle(MAT_Bisector) Current() const; |
56 | |
57 | Standard_EXPORT void Current (const Handle(MAT_Bisector)& anitem) const; |
58 | |
59 | Standard_EXPORT Handle(MAT_Bisector) FirstItem() const; |
60 | |
61 | Standard_EXPORT Handle(MAT_Bisector) LastItem() const; |
62 | |
63 | Standard_EXPORT Handle(MAT_Bisector) PreviousItem() const; |
64 | |
65 | Standard_EXPORT Handle(MAT_Bisector) NextItem() const; |
66 | |
67 | Standard_Integer Number() const; |
68 | |
69 | Standard_Integer Index() const; |
70 | |
71 | Standard_EXPORT Handle(MAT_Bisector) Brackets (const Standard_Integer anindex); |
72 | Handle(MAT_Bisector) operator() (const Standard_Integer anindex) |
73 | { |
74 | return Brackets(anindex); |
75 | } |
76 | |
77 | Standard_EXPORT void Unlink(); |
78 | |
79 | Standard_EXPORT void LinkBefore (const Handle(MAT_Bisector)& anitem); |
80 | |
81 | Standard_EXPORT void LinkAfter (const Handle(MAT_Bisector)& anitem); |
82 | |
83 | Standard_EXPORT void FrontAdd (const Handle(MAT_Bisector)& anitem); |
84 | |
85 | Standard_EXPORT void BackAdd (const Handle(MAT_Bisector)& anitem); |
86 | |
87 | Standard_EXPORT void Permute(); |
88 | |
89 | Standard_EXPORT void Loop() const; |
90 | |
0f57ab75 |
91 | Standard_Boolean IsEmpty() const; |
42cf5bc1 |
92 | |
93 | Standard_EXPORT void Dump (const Standard_Integer ashift, const Standard_Integer alevel); |
94 | |
95 | |
96 | |
97 | |
25e59720 |
98 | DEFINE_STANDARD_RTTI_INLINE(MAT_ListOfBisector,Standard_Transient) |
42cf5bc1 |
99 | |
100 | protected: |
101 | |
102 | |
103 | |
104 | |
105 | private: |
106 | |
107 | |
108 | Handle(MAT_TListNodeOfListOfBisector) thefirstnode; |
109 | Handle(MAT_TListNodeOfListOfBisector) thelastnode; |
110 | Handle(MAT_TListNodeOfListOfBisector) thecurrentnode; |
111 | Standard_Integer thecurrentindex; |
112 | Standard_Integer thenumberofitems; |
113 | |
114 | |
115 | }; |
116 | |
117 | #define Item Handle(MAT_Bisector) |
118 | #define Item_hxx <MAT_Bisector.hxx> |
119 | #define MAT_TListNode MAT_TListNodeOfListOfBisector |
120 | #define MAT_TListNode_hxx <MAT_TListNodeOfListOfBisector.hxx> |
121 | #define Handle_MAT_TListNode Handle(MAT_TListNodeOfListOfBisector) |
122 | #define MAT_TList MAT_ListOfBisector |
123 | #define MAT_TList_hxx <MAT_ListOfBisector.hxx> |
124 | #define Handle_MAT_TList Handle(MAT_ListOfBisector) |
125 | |
126 | #include <MAT_TList.lxx> |
127 | |
128 | #undef Item |
129 | #undef Item_hxx |
130 | #undef MAT_TListNode |
131 | #undef MAT_TListNode_hxx |
132 | #undef Handle_MAT_TListNode |
133 | #undef MAT_TList |
134 | #undef MAT_TList_hxx |
135 | #undef Handle_MAT_TList |
136 | |
137 | |
138 | |
139 | |
140 | #endif // _MAT_ListOfBisector_HeaderFile |