blob: e024351c1bb5504d0e8298f0805cebbfea85797a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
-- File: RUIterator.cdl
-- Created: Wed Feb 6 16:39:20 1991
-- Author: Arnaud BOUZY
-- <adn@topsn3>
---Copyright: Matra Datavision 1991
class RUIterator from Expr
---Purpose: Iterates on NamedUnknowns in a GeneralRelation.
---Level : Internal
uses GeneralRelation from Expr,
NamedUnknown from Expr,
MapOfNamedUnknown from Expr
raises NoMoreObject from Standard,
NoSuchObject from Standard
is
Create(rel : GeneralRelation)
---Purpose: Creates an iterator on every NamedUnknown contained in
-- <rel>.
returns RUIterator;
More(me)
---Purpose: Returns False if on other unknown remains.
returns Boolean
is static;
Next(me : in out)
raises NoMoreObject
is static;
Value(me)
---Purpose: Returns current NamedUnknown.
-- Raises exception if no more unknowns remain.
returns NamedUnknown
raises NoSuchObject
is static;
fields
myMap : MapOfNamedUnknown;
myCurrent : Integer;
end RUIterator;
|