0024157: Parallelization of assembly part of BO
[occt.git] / src / IFSelect / IFSelect_SelectInList.cdl
b311480e 1-- Created on: 1993-01-07
2-- Created by: Christian CAILLET
3-- Copyright (c) 1993-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
7fd59977 21
23deferred class SelectInList from IFSelect inherits SelectAnyList
25 ---Purpose : A SelectInList kind Selection selects a List of an Entity,
26 -- which is composed of single Entities
27 -- To know the list on which to work, SelectInList has two
28 -- deferred methods : NbItems (inherited from SelectAnyList) and
29 -- ListedEntity (which gives an item as an Entity) which must be
30 -- defined to get a List in an Entity of the required Type (and
31 -- consider that list is empty if Entity has not required Type)
32 --
33 -- As for SelectAnyList, if a type of Entity defines several
34 -- lists, a given sub-class of SelectInList is attached on one
36uses AsciiString from TCollection, Transient, EntityIterator, Graph, IntParam
38raises OutOfRange
42-- NbItems (me; ent : Transient) returns Integer is deferred;
43-- KeepInputEntity (me; iter : in out EntityIterator) is deferred;
44-- these method are inherited as deferred and remain to be defined
46 ListedEntity (me; num : Integer; ent : Transient)
47 returns Transient raises OutOfRange is deferred;
48 ---Purpose : Returns an Entity, given its rank in the list
50 FillResult (me; n1,n2 : Integer; ent : Transient;
51 result : in out EntityIterator);
52 ---Purpose : Puts into the result, the sub-entities of the list, from n1 to
53 -- n2 included. Remark that adequation with Entity's type and
54 -- length of list has already been made at this stage
55 -- Called by RootResult; calls ListedEntity (see below)
57end SelectInList;