1 | unit UObjectDouble;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | UObjectTypeBase, UObjectBoolean;
|
---|
7 |
|
---|
8 | type
|
---|
9 | TDouble = class(TInterfacedObject, IAssignable, IOrderable, IComparable)
|
---|
10 | procedure Assign(Source: TInterfacedObject);
|
---|
11 | function HigherThen(Operand: IOrderable): TBoolean;
|
---|
12 | function LowerThan(Operand: IOrderable): TBoolean;
|
---|
13 | function Max(Operand1, Operand2: IOrderable): IOrderable;
|
---|
14 | function Min(Operand1, Operand2: IOrderable): IOrderable;
|
---|
15 | function EqualTo(Operand: IComparable): TBoolean;
|
---|
16 | function Predecessor: IOrderable;
|
---|
17 | function Successor: IOrderable;
|
---|
18 | function Low: IOrderable;
|
---|
19 | function High: IOrderable;
|
---|
20 | end;
|
---|
21 |
|
---|
22 | implementation
|
---|
23 |
|
---|
24 | { TDouble }
|
---|
25 |
|
---|
26 | procedure TDouble.Assign(Source: TInterfacedObject);
|
---|
27 | begin
|
---|
28 |
|
---|
29 | end;
|
---|
30 |
|
---|
31 | function TDouble.EqualTo(Operand: IComparable): TBoolean;
|
---|
32 | begin
|
---|
33 |
|
---|
34 | end;
|
---|
35 |
|
---|
36 | function TDouble.High: IOrderable;
|
---|
37 | begin
|
---|
38 |
|
---|
39 | end;
|
---|
40 |
|
---|
41 | function TDouble.HigherThen(Operand: IOrderable): TBoolean;
|
---|
42 | begin
|
---|
43 |
|
---|
44 | end;
|
---|
45 |
|
---|
46 | function TDouble.Low: IOrderable;
|
---|
47 | begin
|
---|
48 |
|
---|
49 | end;
|
---|
50 |
|
---|
51 | function TDouble.LowerThan(Operand: IOrderable): TBoolean;
|
---|
52 | begin
|
---|
53 |
|
---|
54 | end;
|
---|
55 |
|
---|
56 | function TDouble.Max(Operand1, Operand2: IOrderable): IOrderable;
|
---|
57 | begin
|
---|
58 |
|
---|
59 | end;
|
---|
60 |
|
---|
61 | function TDouble.Min(Operand1, Operand2: IOrderable): IOrderable;
|
---|
62 | begin
|
---|
63 |
|
---|
64 | end;
|
---|
65 |
|
---|
66 | function TDouble.Predecessor: IOrderable;
|
---|
67 | begin
|
---|
68 |
|
---|
69 | end;
|
---|
70 |
|
---|
71 | function TDouble.Successor: IOrderable;
|
---|
72 | begin
|
---|
73 |
|
---|
74 | end;
|
---|
75 |
|
---|
76 | end.
|
---|