blob: 0c8e9aad6d44d6b7306f1fd4863a50d969143285 (
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
|
-- File: TCollection_Compare.cdl
-- Created: Tue May 14 18:07:48 1991
-- Author: Annick PANCHER
-- <apc@topsn2>
-- Revised: Mireille MERCIEN
-- <mip@sdsun3>
-- Copyright: Matra Datavision 1992
deferred generic class Compare from TCollection ( Item as any )
---Purpose: Defines a comparison operator which can be used by
-- any ordered structure. The way to compare items
-- has to be described in subclasses, which inherit
-- from instantiations of Compare.
is
IsLower (me; Left, Right: Item)
---Level: Public
---Purpose: returns True if <Left> is lower than <Right>.
returns Boolean
is virtual;
IsGreater (me; Left, Right: Item)
---Level: Public
---Purpose: returns True if <Left> is greater than <Right>.
returns Boolean
is virtual;
IsEqual(me; Left, Right: Item)
---Level: Public
---Purpose: returns True when <Right> and <Left> are equal.
returns Boolean
is virtual;
end;
|