Files
OCCT/src/IFSelect/IFSelect_SelectionIterator.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

63 lines
2.3 KiB
Plaintext

-- Created on: 1992-11-17
-- Created by: Christian CAILLET
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class SelectionIterator from IFSelect
---Purpose : Defines an Iterator on a list of Selections
uses Selection, HSeqOfSelection, TSeqOfSelection
raises NoSuchObject
is
Create returns SelectionIterator;
---Purpose : Creates an empty iterator, ready to be filled
Create (sel : Selection) returns SelectionIterator;
---Purpose : Creates an iterator from a Selection : it lists the Selections
-- from which <sel> depends (given by its method FillIterator)
AddFromIter (me : in out; iter : in out SelectionIterator) is static;
---Purpose : Adds to an iterator the content of another one
-- (each selection is present only once in the result)
AddItem (me : in out; sel : any Selection) is static;
---Purpose : Adds a Selection to an iterator (if not yet noted)
AddList (me : in out; list : TSeqOfSelection) is static;
---Purpose : Adds a list of Selections to an iterator (this list comes
-- from the description of a Selection or a Dispatch, etc...)
More (me) returns Boolean is static;
---Purpose : Returns True if there are more Selections to get
Next (me : in out) is static;
---Purpose : Sets iterator to the next item
Value (me) returns any Selection raises NoSuchObject is static;
---Purpose : Returns the current Selction beeing iterated
-- Error if count of Selection has been passed
---C++ : return const &
fields
thecurr : Integer;
thelist : HSeqOfSelection;
end SelectionIterator;