0024157: Parallelization of assembly part of BO
[occt.git] / src / IFSelect / IFSelect_SelectionIterator.cdl
CommitLineData
b311480e 1-- Created on: 1992-11-17
2-- Created by: Christian CAILLET
3-- Copyright (c) 1992-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class SelectionIterator from IFSelect
24
25 ---Purpose : Defines an Iterator on a list of Selections
26
27uses Selection, HSeqOfSelection, TSeqOfSelection
28
29raises NoSuchObject
30
31is
32
33 Create returns SelectionIterator;
34 ---Purpose : Creates an empty iterator, ready to be filled
35
36 Create (sel : Selection) returns SelectionIterator;
37 ---Purpose : Creates an iterator from a Selection : it lists the Selections
38 -- from which <sel> depends (given by its method FillIterator)
39
40 AddFromIter (me : in out; iter : in out SelectionIterator) is static;
41 ---Purpose : Adds to an iterator the content of another one
42 -- (each selection is present only once in the result)
43
44 AddItem (me : in out; sel : any Selection) is static;
45 ---Purpose : Adds a Selection to an iterator (if not yet noted)
46
47 AddList (me : in out; list : TSeqOfSelection) is static;
48 ---Purpose : Adds a list of Selections to an iterator (this list comes
49 -- from the description of a Selection or a Dispatch, etc...)
50
51
52 More (me) returns Boolean is static;
53 ---Purpose : Returns True if there are more Selections to get
54
55 Next (me : in out) is static;
56 ---Purpose : Sets iterator to the next item
57
58 Value (me) returns any Selection raises NoSuchObject is static;
59 ---Purpose : Returns the current Selction beeing iterated
60 -- Error if count of Selection has been passed
61 ---C++ : return const &
62
63fields
64
65 thecurr : Integer;
66 thelist : HSeqOfSelection;
67
68end SelectionIterator;