42cf5bc1 |
1 | // Created on: 1993-02-05 |
2 | // Created by: Jacques GOUSSARD |
3 | // Copyright (c) 1993-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 _Contap_SequenceOfSegmentOfTheSearch_HeaderFile |
18 | #define _Contap_SequenceOfSegmentOfTheSearch_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <TCollection_BaseSequence.hxx> |
25 | #include <Standard_Integer.hxx> |
26 | class Standard_NoSuchObject; |
27 | class Standard_OutOfRange; |
28 | class Contap_TheSegmentOfTheSearch; |
29 | class Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch; |
30 | |
31 | |
32 | |
33 | class Contap_SequenceOfSegmentOfTheSearch : public TCollection_BaseSequence |
34 | { |
35 | public: |
36 | |
37 | DEFINE_STANDARD_ALLOC |
38 | |
39 | |
40 | Contap_SequenceOfSegmentOfTheSearch(); |
41 | |
42 | Standard_EXPORT Contap_SequenceOfSegmentOfTheSearch(const Contap_SequenceOfSegmentOfTheSearch& Other); |
43 | |
44 | Standard_EXPORT void Clear(); |
45 | ~Contap_SequenceOfSegmentOfTheSearch() |
46 | { |
47 | Clear(); |
48 | } |
49 | |
50 | Standard_EXPORT const Contap_SequenceOfSegmentOfTheSearch& Assign (const Contap_SequenceOfSegmentOfTheSearch& Other); |
51 | const Contap_SequenceOfSegmentOfTheSearch& operator = (const Contap_SequenceOfSegmentOfTheSearch& Other) |
52 | { |
53 | return Assign(Other); |
54 | } |
55 | |
56 | Standard_EXPORT void Append (const Contap_TheSegmentOfTheSearch& T); |
57 | |
58 | void Append (Contap_SequenceOfSegmentOfTheSearch& S); |
59 | |
60 | Standard_EXPORT void Prepend (const Contap_TheSegmentOfTheSearch& T); |
61 | |
62 | void Prepend (Contap_SequenceOfSegmentOfTheSearch& S); |
63 | |
64 | void InsertBefore (const Standard_Integer Index, const Contap_TheSegmentOfTheSearch& T); |
65 | |
66 | void InsertBefore (const Standard_Integer Index, Contap_SequenceOfSegmentOfTheSearch& S); |
67 | |
68 | Standard_EXPORT void InsertAfter (const Standard_Integer Index, const Contap_TheSegmentOfTheSearch& T); |
69 | |
70 | void InsertAfter (const Standard_Integer Index, Contap_SequenceOfSegmentOfTheSearch& S); |
71 | |
72 | Standard_EXPORT const Contap_TheSegmentOfTheSearch& First() const; |
73 | |
74 | Standard_EXPORT const Contap_TheSegmentOfTheSearch& Last() const; |
75 | |
76 | void Split (const Standard_Integer Index, Contap_SequenceOfSegmentOfTheSearch& Sub); |
77 | |
78 | Standard_EXPORT const Contap_TheSegmentOfTheSearch& Value (const Standard_Integer Index) const; |
79 | const Contap_TheSegmentOfTheSearch& operator() (const Standard_Integer Index) const |
80 | { |
81 | return Value(Index); |
82 | } |
83 | |
84 | Standard_EXPORT void SetValue (const Standard_Integer Index, const Contap_TheSegmentOfTheSearch& I); |
85 | |
86 | Standard_EXPORT Contap_TheSegmentOfTheSearch& ChangeValue (const Standard_Integer Index); |
87 | Contap_TheSegmentOfTheSearch& operator() (const Standard_Integer Index) |
88 | { |
89 | return ChangeValue(Index); |
90 | } |
91 | |
92 | Standard_EXPORT void Remove (const Standard_Integer Index); |
93 | |
94 | Standard_EXPORT void Remove (const Standard_Integer FromIndex, const Standard_Integer ToIndex); |
95 | |
96 | |
97 | |
98 | |
99 | protected: |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | private: |
106 | |
107 | |
108 | |
109 | |
110 | |
111 | }; |
112 | |
113 | #define SeqItem Contap_TheSegmentOfTheSearch |
114 | #define SeqItem_hxx <Contap_TheSegmentOfTheSearch.hxx> |
115 | #define TCollection_SequenceNode Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch |
116 | #define TCollection_SequenceNode_hxx <Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch.hxx> |
117 | #define Handle_TCollection_SequenceNode Handle(Contap_SequenceNodeOfSequenceOfSegmentOfTheSearch) |
118 | #define TCollection_Sequence Contap_SequenceOfSegmentOfTheSearch |
119 | #define TCollection_Sequence_hxx <Contap_SequenceOfSegmentOfTheSearch.hxx> |
120 | |
121 | #include <TCollection_Sequence.lxx> |
122 | |
123 | #undef SeqItem |
124 | #undef SeqItem_hxx |
125 | #undef TCollection_SequenceNode |
126 | #undef TCollection_SequenceNode_hxx |
127 | #undef Handle_TCollection_SequenceNode |
128 | #undef TCollection_Sequence |
129 | #undef TCollection_Sequence_hxx |
130 | |
131 | |
132 | |
133 | |
134 | #endif // _Contap_SequenceOfSegmentOfTheSearch_HeaderFile |