Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
itpp
fixed
fixed.h
Go to the documentation of this file.
1
29
#ifndef FIXED_H
30
#define FIXED_H
31
32
#include <
itpp/fixed/fix.h
>
33
#include <itpp/itexports.h>
34
35
36
namespace
itpp
37
{
38
41
47
template
<
int
w, e_mode e = TC, o_mode o = WRAP, q_mode q = TRN >
48
class
Fixed
:
public
Fix
49
{
50
public
:
52
Fixed
(
double
x = 0.0,
int
s = 0,
Stat
*ptr = 0)
53
:
Fix
(x, s, w, e, o, q, ptr) {}
55
explicit
Fixed
(
Stat
*ptr)
56
:
Fix
(0.0, 0, w, e, o, q, ptr) {}
58
Fixed
(
const
Fix
&x,
Stat
*ptr = 0)
59
:
Fix
(x, w, e, o, q, ptr) {}
61
virtual
~Fixed
() {}
62
64
Fixed
&
operator=
(
const
Fix
&x) {
65
shift
= x.
shift
;
66
re
=
apply_o_mode
(x.
re
);
67
return
*
this
;
68
}
70
Fixed
&
operator=
(
int
x) {
71
shift
= 0;
72
re
=
apply_o_mode
(x);
73
return
*
this
;
74
}
75
protected
:
76
};
77
79
81
typedef
Fixed<1, TC, WRAP>
fixed1
;
83
typedef
Fixed<2, TC, WRAP>
fixed2;
84
typedef
Fixed<3, TC, WRAP>
fixed3;
85
typedef
Fixed<4, TC, WRAP>
fixed4;
86
typedef
Fixed<5, TC, WRAP>
fixed5;
87
typedef
Fixed<6, TC, WRAP>
fixed6;
88
typedef
Fixed<7, TC, WRAP>
fixed7;
89
typedef
Fixed<8, TC, WRAP>
fixed8;
90
typedef
Fixed<9, TC, WRAP>
fixed9;
91
typedef
Fixed<10, TC, WRAP>
fixed10;
92
typedef
Fixed<11, TC, WRAP>
fixed11;
93
typedef
Fixed<12, TC, WRAP>
fixed12;
94
typedef
Fixed<13, TC, WRAP>
fixed13;
95
typedef
Fixed<14, TC, WRAP>
fixed14;
96
typedef
Fixed<15, TC, WRAP>
fixed15;
97
typedef
Fixed<16, TC, WRAP>
fixed16;
98
typedef
Fixed<17, TC, WRAP>
fixed17;
99
typedef
Fixed<18, TC, WRAP>
fixed18;
100
typedef
Fixed<19, TC, WRAP>
fixed19;
101
typedef
Fixed<20, TC, WRAP>
fixed20;
102
typedef
Fixed<21, TC, WRAP>
fixed21;
103
typedef
Fixed<22, TC, WRAP>
fixed22;
104
typedef
Fixed<23, TC, WRAP>
fixed23;
105
typedef
Fixed<24, TC, WRAP>
fixed24;
106
typedef
Fixed<25, TC, WRAP>
fixed25;
107
typedef
Fixed<26, TC, WRAP>
fixed26;
108
typedef
Fixed<27, TC, WRAP>
fixed27;
109
typedef
Fixed<28, TC, WRAP>
fixed28;
110
typedef
Fixed<29, TC, WRAP>
fixed29;
111
typedef
Fixed<30, TC, WRAP>
fixed30;
112
typedef
Fixed<31, TC, WRAP>
fixed31;
113
typedef
Fixed<32, TC, WRAP>
fixed32;
114
typedef
Fixed<33, TC, WRAP>
fixed33;
115
typedef
Fixed<34, TC, WRAP>
fixed34;
116
typedef
Fixed<35, TC, WRAP>
fixed35;
117
typedef
Fixed<36, TC, WRAP>
fixed36;
118
typedef
Fixed<37, TC, WRAP>
fixed37;
119
typedef
Fixed<38, TC, WRAP>
fixed38;
120
typedef
Fixed<39, TC, WRAP>
fixed39;
121
typedef
Fixed<40, TC, WRAP>
fixed40;
122
typedef
Fixed<41, TC, WRAP>
fixed41;
123
typedef
Fixed<42, TC, WRAP>
fixed42;
124
typedef
Fixed<43, TC, WRAP>
fixed43;
125
typedef
Fixed<44, TC, WRAP>
fixed44;
126
typedef
Fixed<45, TC, WRAP>
fixed45;
127
typedef
Fixed<46, TC, WRAP>
fixed46;
128
typedef
Fixed<47, TC, WRAP>
fixed47;
129
typedef
Fixed<48, TC, WRAP>
fixed48;
130
typedef
Fixed<49, TC, WRAP>
fixed49;
131
typedef
Fixed<50, TC, WRAP>
fixed50;
132
typedef
Fixed<51, TC, WRAP>
fixed51;
133
typedef
Fixed<52, TC, WRAP>
fixed52;
134
typedef
Fixed<53, TC, WRAP>
fixed53;
135
typedef
Fixed<54, TC, WRAP>
fixed54;
136
typedef
Fixed<55, TC, WRAP>
fixed55;
137
typedef
Fixed<56, TC, WRAP>
fixed56;
138
typedef
Fixed<57, TC, WRAP>
fixed57;
139
typedef
Fixed<58, TC, WRAP>
fixed58;
140
typedef
Fixed<59, TC, WRAP>
fixed59;
141
typedef
Fixed<60, TC, WRAP>
fixed60;
142
typedef
Fixed<61, TC, WRAP>
fixed61;
143
typedef
Fixed<62, TC, WRAP>
fixed62;
144
typedef
Fixed<63, TC, WRAP>
fixed63;
145
typedef
Fixed<64, TC, WRAP>
fixed64;
147
149
typedef
Fixed<1, US, WRAP>
ufixed1
;
151
typedef
Fixed<2, US, WRAP>
ufixed2;
152
typedef
Fixed<3, US, WRAP>
ufixed3;
153
typedef
Fixed<4, US, WRAP>
ufixed4;
154
typedef
Fixed<5, US, WRAP>
ufixed5;
155
typedef
Fixed<6, US, WRAP>
ufixed6;
156
typedef
Fixed<7, US, WRAP>
ufixed7;
157
typedef
Fixed<8, US, WRAP>
ufixed8;
158
typedef
Fixed<9, US, WRAP>
ufixed9;
159
typedef
Fixed<10, US, WRAP>
ufixed10;
160
typedef
Fixed<11, US, WRAP>
ufixed11;
161
typedef
Fixed<12, US, WRAP>
ufixed12;
162
typedef
Fixed<13, US, WRAP>
ufixed13;
163
typedef
Fixed<14, US, WRAP>
ufixed14;
164
typedef
Fixed<15, US, WRAP>
ufixed15;
165
typedef
Fixed<16, US, WRAP>
ufixed16;
166
typedef
Fixed<17, US, WRAP>
ufixed17;
167
typedef
Fixed<18, US, WRAP>
ufixed18;
168
typedef
Fixed<19, US, WRAP>
ufixed19;
169
typedef
Fixed<20, US, WRAP>
ufixed20;
170
typedef
Fixed<21, US, WRAP>
ufixed21;
171
typedef
Fixed<22, US, WRAP>
ufixed22;
172
typedef
Fixed<23, US, WRAP>
ufixed23;
173
typedef
Fixed<24, US, WRAP>
ufixed24;
174
typedef
Fixed<25, US, WRAP>
ufixed25;
175
typedef
Fixed<26, US, WRAP>
ufixed26;
176
typedef
Fixed<27, US, WRAP>
ufixed27;
177
typedef
Fixed<28, US, WRAP>
ufixed28;
178
typedef
Fixed<29, US, WRAP>
ufixed29;
179
typedef
Fixed<30, US, WRAP>
ufixed30;
180
typedef
Fixed<31, US, WRAP>
ufixed31;
181
typedef
Fixed<32, US, WRAP>
ufixed32;
182
typedef
Fixed<33, US, WRAP>
ufixed33;
183
typedef
Fixed<34, US, WRAP>
ufixed34;
184
typedef
Fixed<35, US, WRAP>
ufixed35;
185
typedef
Fixed<36, US, WRAP>
ufixed36;
186
typedef
Fixed<37, US, WRAP>
ufixed37;
187
typedef
Fixed<38, US, WRAP>
ufixed38;
188
typedef
Fixed<39, US, WRAP>
ufixed39;
189
typedef
Fixed<40, US, WRAP>
ufixed40;
190
typedef
Fixed<41, US, WRAP>
ufixed41;
191
typedef
Fixed<42, US, WRAP>
ufixed42;
192
typedef
Fixed<43, US, WRAP>
ufixed43;
193
typedef
Fixed<44, US, WRAP>
ufixed44;
194
typedef
Fixed<45, US, WRAP>
ufixed45;
195
typedef
Fixed<46, US, WRAP>
ufixed46;
196
typedef
Fixed<47, US, WRAP>
ufixed47;
197
typedef
Fixed<48, US, WRAP>
ufixed48;
198
typedef
Fixed<49, US, WRAP>
ufixed49;
199
typedef
Fixed<50, US, WRAP>
ufixed50;
200
typedef
Fixed<51, US, WRAP>
ufixed51;
201
typedef
Fixed<52, US, WRAP>
ufixed52;
202
typedef
Fixed<53, US, WRAP>
ufixed53;
203
typedef
Fixed<54, US, WRAP>
ufixed54;
204
typedef
Fixed<55, US, WRAP>
ufixed55;
205
typedef
Fixed<56, US, WRAP>
ufixed56;
206
typedef
Fixed<57, US, WRAP>
ufixed57;
207
typedef
Fixed<58, US, WRAP>
ufixed58;
208
typedef
Fixed<59, US, WRAP>
ufixed59;
209
typedef
Fixed<60, US, WRAP>
ufixed60;
210
typedef
Fixed<61, US, WRAP>
ufixed61;
211
typedef
Fixed<62, US, WRAP>
ufixed62;
212
typedef
Fixed<63, US, WRAP>
ufixed63;
213
typedef
Fixed<64, US, WRAP>
ufixed64;
215
217
typedef
Fixed<1, TC, SAT>
sfixed1
;
219
typedef
Fixed<2, TC, SAT>
sfixed2;
220
typedef
Fixed<3, TC, SAT>
sfixed3;
221
typedef
Fixed<4, TC, SAT>
sfixed4;
222
typedef
Fixed<5, TC, SAT>
sfixed5;
223
typedef
Fixed<6, TC, SAT>
sfixed6;
224
typedef
Fixed<7, TC, SAT>
sfixed7;
225
typedef
Fixed<8, TC, SAT>
sfixed8;
226
typedef
Fixed<9, TC, SAT>
sfixed9;
227
typedef
Fixed<10, TC, SAT>
sfixed10;
228
typedef
Fixed<11, TC, SAT>
sfixed11;
229
typedef
Fixed<12, TC, SAT>
sfixed12;
230
typedef
Fixed<13, TC, SAT>
sfixed13;
231
typedef
Fixed<14, TC, SAT>
sfixed14;
232
typedef
Fixed<15, TC, SAT>
sfixed15;
233
typedef
Fixed<16, TC, SAT>
sfixed16;
234
typedef
Fixed<17, TC, SAT>
sfixed17;
235
typedef
Fixed<18, TC, SAT>
sfixed18;
236
typedef
Fixed<19, TC, SAT>
sfixed19;
237
typedef
Fixed<20, TC, SAT>
sfixed20;
238
typedef
Fixed<21, TC, SAT>
sfixed21;
239
typedef
Fixed<22, TC, SAT>
sfixed22;
240
typedef
Fixed<23, TC, SAT>
sfixed23;
241
typedef
Fixed<24, TC, SAT>
sfixed24;
242
typedef
Fixed<25, TC, SAT>
sfixed25;
243
typedef
Fixed<26, TC, SAT>
sfixed26;
244
typedef
Fixed<27, TC, SAT>
sfixed27;
245
typedef
Fixed<28, TC, SAT>
sfixed28;
246
typedef
Fixed<29, TC, SAT>
sfixed29;
247
typedef
Fixed<30, TC, SAT>
sfixed30;
248
typedef
Fixed<31, TC, SAT>
sfixed31;
249
typedef
Fixed<32, TC, SAT>
sfixed32;
250
typedef
Fixed<33, TC, SAT>
sfixed33;
251
typedef
Fixed<34, TC, SAT>
sfixed34;
252
typedef
Fixed<35, TC, SAT>
sfixed35;
253
typedef
Fixed<36, TC, SAT>
sfixed36;
254
typedef
Fixed<37, TC, SAT>
sfixed37;
255
typedef
Fixed<38, TC, SAT>
sfixed38;
256
typedef
Fixed<39, TC, SAT>
sfixed39;
257
typedef
Fixed<40, TC, SAT>
sfixed40;
258
typedef
Fixed<41, TC, SAT>
sfixed41;
259
typedef
Fixed<42, TC, SAT>
sfixed42;
260
typedef
Fixed<43, TC, SAT>
sfixed43;
261
typedef
Fixed<44, TC, SAT>
sfixed44;
262
typedef
Fixed<45, TC, SAT>
sfixed45;
263
typedef
Fixed<46, TC, SAT>
sfixed46;
264
typedef
Fixed<47, TC, SAT>
sfixed47;
265
typedef
Fixed<48, TC, SAT>
sfixed48;
266
typedef
Fixed<49, TC, SAT>
sfixed49;
267
typedef
Fixed<50, TC, SAT>
sfixed50;
268
typedef
Fixed<51, TC, SAT>
sfixed51;
269
typedef
Fixed<52, TC, SAT>
sfixed52;
270
typedef
Fixed<53, TC, SAT>
sfixed53;
271
typedef
Fixed<54, TC, SAT>
sfixed54;
272
typedef
Fixed<55, TC, SAT>
sfixed55;
273
typedef
Fixed<56, TC, SAT>
sfixed56;
274
typedef
Fixed<57, TC, SAT>
sfixed57;
275
typedef
Fixed<58, TC, SAT>
sfixed58;
276
typedef
Fixed<59, TC, SAT>
sfixed59;
277
typedef
Fixed<60, TC, SAT>
sfixed60;
278
typedef
Fixed<61, TC, SAT>
sfixed61;
279
typedef
Fixed<62, TC, SAT>
sfixed62;
280
typedef
Fixed<63, TC, SAT>
sfixed63;
281
typedef
Fixed<64, TC, SAT>
sfixed64;
283
285
typedef
Fixed<1, US, SAT>
sufixed1
;
287
typedef
Fixed<2, US, SAT>
sufixed2;
288
typedef
Fixed<3, US, SAT>
sufixed3;
289
typedef
Fixed<4, US, SAT>
sufixed4;
290
typedef
Fixed<5, US, SAT>
sufixed5;
291
typedef
Fixed<6, US, SAT>
sufixed6;
292
typedef
Fixed<7, US, SAT>
sufixed7;
293
typedef
Fixed<8, US, SAT>
sufixed8;
294
typedef
Fixed<9, US, SAT>
sufixed9;
295
typedef
Fixed<10, US, SAT>
sufixed10;
296
typedef
Fixed<11, US, SAT>
sufixed11;
297
typedef
Fixed<12, US, SAT>
sufixed12;
298
typedef
Fixed<13, US, SAT>
sufixed13;
299
typedef
Fixed<14, US, SAT>
sufixed14;
300
typedef
Fixed<15, US, SAT>
sufixed15;
301
typedef
Fixed<16, US, SAT>
sufixed16;
302
typedef
Fixed<17, US, SAT>
sufixed17;
303
typedef
Fixed<18, US, SAT>
sufixed18;
304
typedef
Fixed<19, US, SAT>
sufixed19;
305
typedef
Fixed<20, US, SAT>
sufixed20;
306
typedef
Fixed<21, US, SAT>
sufixed21;
307
typedef
Fixed<22, US, SAT>
sufixed22;
308
typedef
Fixed<23, US, SAT>
sufixed23;
309
typedef
Fixed<24, US, SAT>
sufixed24;
310
typedef
Fixed<25, US, SAT>
sufixed25;
311
typedef
Fixed<26, US, SAT>
sufixed26;
312
typedef
Fixed<27, US, SAT>
sufixed27;
313
typedef
Fixed<28, US, SAT>
sufixed28;
314
typedef
Fixed<29, US, SAT>
sufixed29;
315
typedef
Fixed<30, US, SAT>
sufixed30;
316
typedef
Fixed<31, US, SAT>
sufixed31;
317
typedef
Fixed<32, US, SAT>
sufixed32;
318
typedef
Fixed<33, US, SAT>
sufixed33;
319
typedef
Fixed<34, US, SAT>
sufixed34;
320
typedef
Fixed<35, US, SAT>
sufixed35;
321
typedef
Fixed<36, US, SAT>
sufixed36;
322
typedef
Fixed<37, US, SAT>
sufixed37;
323
typedef
Fixed<38, US, SAT>
sufixed38;
324
typedef
Fixed<39, US, SAT>
sufixed39;
325
typedef
Fixed<40, US, SAT>
sufixed40;
326
typedef
Fixed<41, US, SAT>
sufixed41;
327
typedef
Fixed<42, US, SAT>
sufixed42;
328
typedef
Fixed<43, US, SAT>
sufixed43;
329
typedef
Fixed<44, US, SAT>
sufixed44;
330
typedef
Fixed<45, US, SAT>
sufixed45;
331
typedef
Fixed<46, US, SAT>
sufixed46;
332
typedef
Fixed<47, US, SAT>
sufixed47;
333
typedef
Fixed<48, US, SAT>
sufixed48;
334
typedef
Fixed<49, US, SAT>
sufixed49;
335
typedef
Fixed<50, US, SAT>
sufixed50;
336
typedef
Fixed<51, US, SAT>
sufixed51;
337
typedef
Fixed<52, US, SAT>
sufixed52;
338
typedef
Fixed<53, US, SAT>
sufixed53;
339
typedef
Fixed<54, US, SAT>
sufixed54;
340
typedef
Fixed<55, US, SAT>
sufixed55;
341
typedef
Fixed<56, US, SAT>
sufixed56;
342
typedef
Fixed<57, US, SAT>
sufixed57;
343
typedef
Fixed<58, US, SAT>
sufixed58;
344
typedef
Fixed<59, US, SAT>
sufixed59;
345
typedef
Fixed<60, US, SAT>
sufixed60;
346
typedef
Fixed<61, US, SAT>
sufixed61;
347
typedef
Fixed<62, US, SAT>
sufixed62;
348
typedef
Fixed<63, US, SAT>
sufixed63;
349
typedef
Fixed<64, US, SAT>
sufixed64;
350
351
// ----------------------------------------------------------------------
352
// Instantiations
353
// ----------------------------------------------------------------------
354
355
ITPP_EXPORT_TEMPLATE
template
class
ITPP_EXPORT
Fixed<64, TC, WRAP>
;
356
358
359
}
// namespace itpp
360
361
#endif // #ifndef FIXED_H
Generated on Sat May 25 2013 16:32:22 for IT++ by
Doxygen
1.8.2