0024841: Remove duplicated and/or unused instances of collections
[occt.git] / src / PCollection / PCollection_Compare.cdl
1 -- Created on: 1991-05-14
2 -- Created by: Annick PANCHER
3 -- Copyright (c) 1991-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 -- Revised:     Mireille MERCIEN
18
19
20 deferred generic class Compare from PCollection ( Item as Storable)
21 inherits Storable
22
23         ---Purpose: Defines a comparison operator which can be used by
24         -- any ordered structure.   The  way to compare items
25         -- has  to be described  in  subclasses, which inherit
26         -- from instantiations of Compare.
27
28 is
29
30     IsLower (me; Left, Right: Item)
31         ---Purpose: Returns True if <Left> is lower than <Right>
32         returns Boolean is virtual;
33     ---Level: Public
34     
35     IsGreater (me; Left, Right: Item)
36         ---Purpose: Returns True if <Left> is greater than <Right>
37         returns Boolean is virtual;
38     ---Level: Public
39
40     IsEqual(me; Left, Right: Item)
41         ---Purpose: Returns True when <Right> and <Left> are equal.
42         returns Boolean;
43     ---Level: Public
44 end;
45
46