|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\include\e32math.inl |
|
15 // |
|
16 // |
|
17 |
|
18 #if !defined(__E32MATH_INL__) |
|
19 #define __E32MATH_INL__ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 // class TRealX |
|
25 |
|
26 TBool TRealX::operator==(const TRealX &aVal) const |
|
27 /** |
|
28 @publishedAll |
|
29 @released |
|
30 |
|
31 Compares this extended precision number for equality with another. |
|
32 |
|
33 @param aVal A reference to the extended precision value to be compared. |
|
34 |
|
35 @return True, if this extended precision number is equal to aVal; |
|
36 false, otherwise. |
|
37 */ |
|
38 { |
|
39 return(Compare(aVal)&EEqual); |
|
40 } |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 TBool TRealX::operator!=(const TRealX &aVal) const |
|
46 /** |
|
47 @publishedAll |
|
48 @released |
|
49 |
|
50 Compares this extended precision number for in-equality with another. |
|
51 |
|
52 @param aVal A reference to the extended precision value to be compared. |
|
53 |
|
54 @return True, if this extended precision number is not equal to aVal; |
|
55 false, otherwise. |
|
56 */ |
|
57 { |
|
58 return!(Compare(aVal)&EEqual); |
|
59 } |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 TBool TRealX::operator>=(const TRealX &aVal) const |
|
65 /** |
|
66 @publishedAll |
|
67 @released |
|
68 |
|
69 Compares this extended precision number for being greater than |
|
70 or equal to another. |
|
71 |
|
72 @param aVal A reference to the extended precision value to be compared. |
|
73 |
|
74 @return True, if this extended precision number is greater than or equal |
|
75 to aVal, false, otherwise. |
|
76 */ |
|
77 { |
|
78 return(Compare(aVal)&(EEqual|EGreaterThan)); |
|
79 } |
|
80 |
|
81 |
|
82 |
|
83 |
|
84 TBool TRealX::operator<=(const TRealX &aVal) const |
|
85 /** |
|
86 @publishedAll |
|
87 @released |
|
88 |
|
89 Compares this extended precision number for being less than |
|
90 or equal to another. |
|
91 |
|
92 @param aVal A reference to the extended precision value to be compared. |
|
93 |
|
94 @return True, if this extended precision number is less than or equal |
|
95 to aVal, false, otherwise. |
|
96 */ |
|
97 { |
|
98 return(Compare(aVal)&(ELessThan|EEqual)); |
|
99 } |
|
100 |
|
101 |
|
102 |
|
103 |
|
104 TBool TRealX::operator>(const TRealX &aVal) const |
|
105 /** |
|
106 @publishedAll |
|
107 @released |
|
108 |
|
109 Compares this extended precision number for being greater than |
|
110 another. |
|
111 |
|
112 @param aVal A reference to the extended precision value to be compared. |
|
113 |
|
114 @return True, if this extended precision number is greater than aVal, |
|
115 false, otherwise. |
|
116 */ |
|
117 { |
|
118 return(Compare(aVal)&EGreaterThan); |
|
119 } |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 TBool TRealX::operator<(const TRealX &aVal) const |
|
125 /** |
|
126 @publishedAll |
|
127 @released |
|
128 |
|
129 Compares this extended precision number for being less than |
|
130 another. |
|
131 |
|
132 @param aVal A reference to the extended precision value to be compared. |
|
133 |
|
134 @return True, if this extended precision number is less than aVal, |
|
135 false, otherwise. |
|
136 */ |
|
137 { |
|
138 return(Compare(aVal)&ELessThan); |
|
139 } |
|
140 |
|
141 #endif |