Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
itpp
fixed
fix_factory.h
Go to the documentation of this file.
1
30
#ifndef FIX_FACTORY_H
31
#define FIX_FACTORY_H
32
33
#include <
itpp/base/factory.h
>
34
#include <
itpp/fixed/fix_base.h
>
35
#include <itpp/itexports.h>
36
37
38
namespace
itpp
39
{
40
41
// Forward declarations
42
class
Fix;
43
class
CFix;
44
47
120
class
ITPP_EXPORT
Fix_Factory
:
public
Factory
121
{
122
friend
class
Fix
;
123
friend
class
CFix
;
124
public
:
126
explicit
Fix_Factory
(
int
w =
MAX_WORDLEN
,
e_mode
e =
TC
,
o_mode
o =
WRAP
,
q_mode
q =
TRN
,
Stat
*ptr = 0)
127
: wordlen(w), emode(e), omode(o), qmode(q), stat_ptr(ptr) {}
129
virtual
~Fix_Factory
() {}
131
operator
double()
const
{
return
0.0;}
133
virtual
void
create(
Fix
* &ptr,
const
int
n)
const
;
135
virtual
void
create(
CFix
* &ptr,
const
int
n)
const
;
136
protected
:
138
int
wordlen
;
140
e_mode
emode
;
142
o_mode
omode
;
144
q_mode
qmode
;
146
Stat
*
stat_ptr
;
147
};
148
150
template
<>
151
ITPP_EXPORT
void
create_elements<Fix>
(
Fix
* &ptr,
const
int
n,
const
Factory
&f);
152
154
template
<>
155
ITPP_EXPORT
void
create_elements<CFix>
(
CFix
* &ptr,
const
int
n,
const
Factory
&f);
156
158
159
161
const
Fix_Factory
FIX1
(1,
TC
,
WRAP
);
163
const
Fix_Factory
FIX2(2,
TC
,
WRAP
);
164
const
Fix_Factory
FIX3(3,
TC
,
WRAP
);
165
const
Fix_Factory
FIX4(4,
TC
,
WRAP
);
166
const
Fix_Factory
FIX5(5,
TC
,
WRAP
);
167
const
Fix_Factory
FIX6(6,
TC
,
WRAP
);
168
const
Fix_Factory
FIX7(7,
TC
,
WRAP
);
169
const
Fix_Factory
FIX8(8,
TC
,
WRAP
);
170
const
Fix_Factory
FIX9(9,
TC
,
WRAP
);
171
const
Fix_Factory
FIX10(10,
TC
,
WRAP
);
172
const
Fix_Factory
FIX11(11,
TC
,
WRAP
);
173
const
Fix_Factory
FIX12(12,
TC
,
WRAP
);
174
const
Fix_Factory
FIX13(13,
TC
,
WRAP
);
175
const
Fix_Factory
FIX14(14,
TC
,
WRAP
);
176
const
Fix_Factory
FIX15(15,
TC
,
WRAP
);
177
const
Fix_Factory
FIX16(16,
TC
,
WRAP
);
178
const
Fix_Factory
FIX17(17,
TC
,
WRAP
);
179
const
Fix_Factory
FIX18(18,
TC
,
WRAP
);
180
const
Fix_Factory
FIX19(19,
TC
,
WRAP
);
181
const
Fix_Factory
FIX20(20,
TC
,
WRAP
);
182
const
Fix_Factory
FIX21(21,
TC
,
WRAP
);
183
const
Fix_Factory
FIX22(22,
TC
,
WRAP
);
184
const
Fix_Factory
FIX23(23,
TC
,
WRAP
);
185
const
Fix_Factory
FIX24(24,
TC
,
WRAP
);
186
const
Fix_Factory
FIX25(25,
TC
,
WRAP
);
187
const
Fix_Factory
FIX26(26,
TC
,
WRAP
);
188
const
Fix_Factory
FIX27(27,
TC
,
WRAP
);
189
const
Fix_Factory
FIX28(28,
TC
,
WRAP
);
190
const
Fix_Factory
FIX29(29,
TC
,
WRAP
);
191
const
Fix_Factory
FIX30(30,
TC
,
WRAP
);
192
const
Fix_Factory
FIX31(31,
TC
,
WRAP
);
193
const
Fix_Factory
FIX32(32,
TC
,
WRAP
);
194
const
Fix_Factory
FIX33(33,
TC
,
WRAP
);
195
const
Fix_Factory
FIX34(34,
TC
,
WRAP
);
196
const
Fix_Factory
FIX35(35,
TC
,
WRAP
);
197
const
Fix_Factory
FIX36(36,
TC
,
WRAP
);
198
const
Fix_Factory
FIX37(37,
TC
,
WRAP
);
199
const
Fix_Factory
FIX38(38,
TC
,
WRAP
);
200
const
Fix_Factory
FIX39(39,
TC
,
WRAP
);
201
const
Fix_Factory
FIX40(40,
TC
,
WRAP
);
202
const
Fix_Factory
FIX41(41,
TC
,
WRAP
);
203
const
Fix_Factory
FIX42(42,
TC
,
WRAP
);
204
const
Fix_Factory
FIX43(43,
TC
,
WRAP
);
205
const
Fix_Factory
FIX44(44,
TC
,
WRAP
);
206
const
Fix_Factory
FIX45(45,
TC
,
WRAP
);
207
const
Fix_Factory
FIX46(46,
TC
,
WRAP
);
208
const
Fix_Factory
FIX47(47,
TC
,
WRAP
);
209
const
Fix_Factory
FIX48(48,
TC
,
WRAP
);
210
const
Fix_Factory
FIX49(49,
TC
,
WRAP
);
211
const
Fix_Factory
FIX50(50,
TC
,
WRAP
);
212
const
Fix_Factory
FIX51(51,
TC
,
WRAP
);
213
const
Fix_Factory
FIX52(52,
TC
,
WRAP
);
214
const
Fix_Factory
FIX53(53,
TC
,
WRAP
);
215
const
Fix_Factory
FIX54(54,
TC
,
WRAP
);
216
const
Fix_Factory
FIX55(55,
TC
,
WRAP
);
217
const
Fix_Factory
FIX56(56,
TC
,
WRAP
);
218
const
Fix_Factory
FIX57(57,
TC
,
WRAP
);
219
const
Fix_Factory
FIX58(58,
TC
,
WRAP
);
220
const
Fix_Factory
FIX59(59,
TC
,
WRAP
);
221
const
Fix_Factory
FIX60(60,
TC
,
WRAP
);
222
const
Fix_Factory
FIX61(61,
TC
,
WRAP
);
223
const
Fix_Factory
FIX62(62,
TC
,
WRAP
);
224
const
Fix_Factory
FIX63(63,
TC
,
WRAP
);
225
const
Fix_Factory
FIX64(64,
TC
,
WRAP
);
227
229
const
Fix_Factory
UFIX1
(1,
US
,
WRAP
);
231
const
Fix_Factory
UFIX2(2,
US
,
WRAP
);
232
const
Fix_Factory
UFIX3(3,
US
,
WRAP
);
233
const
Fix_Factory
UFIX4(4,
US
,
WRAP
);
234
const
Fix_Factory
UFIX5(5,
US
,
WRAP
);
235
const
Fix_Factory
UFIX6(6,
US
,
WRAP
);
236
const
Fix_Factory
UFIX7(7,
US
,
WRAP
);
237
const
Fix_Factory
UFIX8(8,
US
,
WRAP
);
238
const
Fix_Factory
UFIX9(9,
US
,
WRAP
);
239
const
Fix_Factory
UFIX10(10,
US
,
WRAP
);
240
const
Fix_Factory
UFIX11(11,
US
,
WRAP
);
241
const
Fix_Factory
UFIX12(12,
US
,
WRAP
);
242
const
Fix_Factory
UFIX13(13,
US
,
WRAP
);
243
const
Fix_Factory
UFIX14(14,
US
,
WRAP
);
244
const
Fix_Factory
UFIX15(15,
US
,
WRAP
);
245
const
Fix_Factory
UFIX16(16,
US
,
WRAP
);
246
const
Fix_Factory
UFIX17(17,
US
,
WRAP
);
247
const
Fix_Factory
UFIX18(18,
US
,
WRAP
);
248
const
Fix_Factory
UFIX19(19,
US
,
WRAP
);
249
const
Fix_Factory
UFIX20(20,
US
,
WRAP
);
250
const
Fix_Factory
UFIX21(21,
US
,
WRAP
);
251
const
Fix_Factory
UFIX22(22,
US
,
WRAP
);
252
const
Fix_Factory
UFIX23(23,
US
,
WRAP
);
253
const
Fix_Factory
UFIX24(24,
US
,
WRAP
);
254
const
Fix_Factory
UFIX25(25,
US
,
WRAP
);
255
const
Fix_Factory
UFIX26(26,
US
,
WRAP
);
256
const
Fix_Factory
UFIX27(27,
US
,
WRAP
);
257
const
Fix_Factory
UFIX28(28,
US
,
WRAP
);
258
const
Fix_Factory
UFIX29(29,
US
,
WRAP
);
259
const
Fix_Factory
UFIX30(30,
US
,
WRAP
);
260
const
Fix_Factory
UFIX31(31,
US
,
WRAP
);
261
const
Fix_Factory
UFIX32(32,
US
,
WRAP
);
262
const
Fix_Factory
UFIX33(33,
US
,
WRAP
);
263
const
Fix_Factory
UFIX34(34,
US
,
WRAP
);
264
const
Fix_Factory
UFIX35(35,
US
,
WRAP
);
265
const
Fix_Factory
UFIX36(36,
US
,
WRAP
);
266
const
Fix_Factory
UFIX37(37,
US
,
WRAP
);
267
const
Fix_Factory
UFIX38(38,
US
,
WRAP
);
268
const
Fix_Factory
UFIX39(39,
US
,
WRAP
);
269
const
Fix_Factory
UFIX40(40,
US
,
WRAP
);
270
const
Fix_Factory
UFIX41(41,
US
,
WRAP
);
271
const
Fix_Factory
UFIX42(42,
US
,
WRAP
);
272
const
Fix_Factory
UFIX43(43,
US
,
WRAP
);
273
const
Fix_Factory
UFIX44(44,
US
,
WRAP
);
274
const
Fix_Factory
UFIX45(45,
US
,
WRAP
);
275
const
Fix_Factory
UFIX46(46,
US
,
WRAP
);
276
const
Fix_Factory
UFIX47(47,
US
,
WRAP
);
277
const
Fix_Factory
UFIX48(48,
US
,
WRAP
);
278
const
Fix_Factory
UFIX49(49,
US
,
WRAP
);
279
const
Fix_Factory
UFIX50(50,
US
,
WRAP
);
280
const
Fix_Factory
UFIX51(51,
US
,
WRAP
);
281
const
Fix_Factory
UFIX52(52,
US
,
WRAP
);
282
const
Fix_Factory
UFIX53(53,
US
,
WRAP
);
283
const
Fix_Factory
UFIX54(54,
US
,
WRAP
);
284
const
Fix_Factory
UFIX55(55,
US
,
WRAP
);
285
const
Fix_Factory
UFIX56(56,
US
,
WRAP
);
286
const
Fix_Factory
UFIX57(57,
US
,
WRAP
);
287
const
Fix_Factory
UFIX58(58,
US
,
WRAP
);
288
const
Fix_Factory
UFIX59(59,
US
,
WRAP
);
289
const
Fix_Factory
UFIX60(60,
US
,
WRAP
);
290
const
Fix_Factory
UFIX61(61,
US
,
WRAP
);
291
const
Fix_Factory
UFIX62(62,
US
,
WRAP
);
292
const
Fix_Factory
UFIX63(63,
US
,
WRAP
);
293
const
Fix_Factory
UFIX64(64,
US
,
WRAP
);
295
297
const
Fix_Factory
SFIX1
(1,
TC
,
SAT
);
299
const
Fix_Factory
SFIX2(2,
TC
,
SAT
);
300
const
Fix_Factory
SFIX3(3,
TC
,
SAT
);
301
const
Fix_Factory
SFIX4(4,
TC
,
SAT
);
302
const
Fix_Factory
SFIX5(5,
TC
,
SAT
);
303
const
Fix_Factory
SFIX6(6,
TC
,
SAT
);
304
const
Fix_Factory
SFIX7(7,
TC
,
SAT
);
305
const
Fix_Factory
SFIX8(8,
TC
,
SAT
);
306
const
Fix_Factory
SFIX9(9,
TC
,
SAT
);
307
const
Fix_Factory
SFIX10(10,
TC
,
SAT
);
308
const
Fix_Factory
SFIX11(11,
TC
,
SAT
);
309
const
Fix_Factory
SFIX12(12,
TC
,
SAT
);
310
const
Fix_Factory
SFIX13(13,
TC
,
SAT
);
311
const
Fix_Factory
SFIX14(14,
TC
,
SAT
);
312
const
Fix_Factory
SFIX15(15,
TC
,
SAT
);
313
const
Fix_Factory
SFIX16(16,
TC
,
SAT
);
314
const
Fix_Factory
SFIX17(17,
TC
,
SAT
);
315
const
Fix_Factory
SFIX18(18,
TC
,
SAT
);
316
const
Fix_Factory
SFIX19(19,
TC
,
SAT
);
317
const
Fix_Factory
SFIX20(20,
TC
,
SAT
);
318
const
Fix_Factory
SFIX21(21,
TC
,
SAT
);
319
const
Fix_Factory
SFIX22(22,
TC
,
SAT
);
320
const
Fix_Factory
SFIX23(23,
TC
,
SAT
);
321
const
Fix_Factory
SFIX24(24,
TC
,
SAT
);
322
const
Fix_Factory
SFIX25(25,
TC
,
SAT
);
323
const
Fix_Factory
SFIX26(26,
TC
,
SAT
);
324
const
Fix_Factory
SFIX27(27,
TC
,
SAT
);
325
const
Fix_Factory
SFIX28(28,
TC
,
SAT
);
326
const
Fix_Factory
SFIX29(29,
TC
,
SAT
);
327
const
Fix_Factory
SFIX30(30,
TC
,
SAT
);
328
const
Fix_Factory
SFIX31(31,
TC
,
SAT
);
329
const
Fix_Factory
SFIX32(32,
TC
,
SAT
);
330
const
Fix_Factory
SFIX33(33,
TC
,
SAT
);
331
const
Fix_Factory
SFIX34(34,
TC
,
SAT
);
332
const
Fix_Factory
SFIX35(35,
TC
,
SAT
);
333
const
Fix_Factory
SFIX36(36,
TC
,
SAT
);
334
const
Fix_Factory
SFIX37(37,
TC
,
SAT
);
335
const
Fix_Factory
SFIX38(38,
TC
,
SAT
);
336
const
Fix_Factory
SFIX39(39,
TC
,
SAT
);
337
const
Fix_Factory
SFIX40(40,
TC
,
SAT
);
338
const
Fix_Factory
SFIX41(41,
TC
,
SAT
);
339
const
Fix_Factory
SFIX42(42,
TC
,
SAT
);
340
const
Fix_Factory
SFIX43(43,
TC
,
SAT
);
341
const
Fix_Factory
SFIX44(44,
TC
,
SAT
);
342
const
Fix_Factory
SFIX45(45,
TC
,
SAT
);
343
const
Fix_Factory
SFIX46(46,
TC
,
SAT
);
344
const
Fix_Factory
SFIX47(47,
TC
,
SAT
);
345
const
Fix_Factory
SFIX48(48,
TC
,
SAT
);
346
const
Fix_Factory
SFIX49(49,
TC
,
SAT
);
347
const
Fix_Factory
SFIX50(50,
TC
,
SAT
);
348
const
Fix_Factory
SFIX51(51,
TC
,
SAT
);
349
const
Fix_Factory
SFIX52(52,
TC
,
SAT
);
350
const
Fix_Factory
SFIX53(53,
TC
,
SAT
);
351
const
Fix_Factory
SFIX54(54,
TC
,
SAT
);
352
const
Fix_Factory
SFIX55(55,
TC
,
SAT
);
353
const
Fix_Factory
SFIX56(56,
TC
,
SAT
);
354
const
Fix_Factory
SFIX57(57,
TC
,
SAT
);
355
const
Fix_Factory
SFIX58(58,
TC
,
SAT
);
356
const
Fix_Factory
SFIX59(59,
TC
,
SAT
);
357
const
Fix_Factory
SFIX60(60,
TC
,
SAT
);
358
const
Fix_Factory
SFIX61(61,
TC
,
SAT
);
359
const
Fix_Factory
SFIX62(62,
TC
,
SAT
);
360
const
Fix_Factory
SFIX63(63,
TC
,
SAT
);
361
const
Fix_Factory
SFIX64(64,
TC
,
SAT
);
363
365
const
Fix_Factory
SUFIX1
(1,
US
,
SAT
);
367
const
Fix_Factory
SUFIX2(2,
US
,
SAT
);
368
const
Fix_Factory
SUFIX3(3,
US
,
SAT
);
369
const
Fix_Factory
SUFIX4(4,
US
,
SAT
);
370
const
Fix_Factory
SUFIX5(5,
US
,
SAT
);
371
const
Fix_Factory
SUFIX6(6,
US
,
SAT
);
372
const
Fix_Factory
SUFIX7(7,
US
,
SAT
);
373
const
Fix_Factory
SUFIX8(8,
US
,
SAT
);
374
const
Fix_Factory
SUFIX9(9,
US
,
SAT
);
375
const
Fix_Factory
SUFIX10(10,
US
,
SAT
);
376
const
Fix_Factory
SUFIX11(11,
US
,
SAT
);
377
const
Fix_Factory
SUFIX12(12,
US
,
SAT
);
378
const
Fix_Factory
SUFIX13(13,
US
,
SAT
);
379
const
Fix_Factory
SUFIX14(14,
US
,
SAT
);
380
const
Fix_Factory
SUFIX15(15,
US
,
SAT
);
381
const
Fix_Factory
SUFIX16(16,
US
,
SAT
);
382
const
Fix_Factory
SUFIX17(17,
US
,
SAT
);
383
const
Fix_Factory
SUFIX18(18,
US
,
SAT
);
384
const
Fix_Factory
SUFIX19(19,
US
,
SAT
);
385
const
Fix_Factory
SUFIX20(20,
US
,
SAT
);
386
const
Fix_Factory
SUFIX21(21,
US
,
SAT
);
387
const
Fix_Factory
SUFIX22(22,
US
,
SAT
);
388
const
Fix_Factory
SUFIX23(23,
US
,
SAT
);
389
const
Fix_Factory
SUFIX24(24,
US
,
SAT
);
390
const
Fix_Factory
SUFIX25(25,
US
,
SAT
);
391
const
Fix_Factory
SUFIX26(26,
US
,
SAT
);
392
const
Fix_Factory
SUFIX27(27,
US
,
SAT
);
393
const
Fix_Factory
SUFIX28(28,
US
,
SAT
);
394
const
Fix_Factory
SUFIX29(29,
US
,
SAT
);
395
const
Fix_Factory
SUFIX30(30,
US
,
SAT
);
396
const
Fix_Factory
SUFIX31(31,
US
,
SAT
);
397
const
Fix_Factory
SUFIX32(32,
US
,
SAT
);
398
const
Fix_Factory
SUFIX33(33,
US
,
SAT
);
399
const
Fix_Factory
SUFIX34(34,
US
,
SAT
);
400
const
Fix_Factory
SUFIX35(35,
US
,
SAT
);
401
const
Fix_Factory
SUFIX36(36,
US
,
SAT
);
402
const
Fix_Factory
SUFIX37(37,
US
,
SAT
);
403
const
Fix_Factory
SUFIX38(38,
US
,
SAT
);
404
const
Fix_Factory
SUFIX39(39,
US
,
SAT
);
405
const
Fix_Factory
SUFIX40(40,
US
,
SAT
);
406
const
Fix_Factory
SUFIX41(41,
US
,
SAT
);
407
const
Fix_Factory
SUFIX42(42,
US
,
SAT
);
408
const
Fix_Factory
SUFIX43(43,
US
,
SAT
);
409
const
Fix_Factory
SUFIX44(44,
US
,
SAT
);
410
const
Fix_Factory
SUFIX45(45,
US
,
SAT
);
411
const
Fix_Factory
SUFIX46(46,
US
,
SAT
);
412
const
Fix_Factory
SUFIX47(47,
US
,
SAT
);
413
const
Fix_Factory
SUFIX48(48,
US
,
SAT
);
414
const
Fix_Factory
SUFIX49(49,
US
,
SAT
);
415
const
Fix_Factory
SUFIX50(50,
US
,
SAT
);
416
const
Fix_Factory
SUFIX51(51,
US
,
SAT
);
417
const
Fix_Factory
SUFIX52(52,
US
,
SAT
);
418
const
Fix_Factory
SUFIX53(53,
US
,
SAT
);
419
const
Fix_Factory
SUFIX54(54,
US
,
SAT
);
420
const
Fix_Factory
SUFIX55(55,
US
,
SAT
);
421
const
Fix_Factory
SUFIX56(56,
US
,
SAT
);
422
const
Fix_Factory
SUFIX57(57,
US
,
SAT
);
423
const
Fix_Factory
SUFIX58(58,
US
,
SAT
);
424
const
Fix_Factory
SUFIX59(59,
US
,
SAT
);
425
const
Fix_Factory
SUFIX60(60,
US
,
SAT
);
426
const
Fix_Factory
SUFIX61(61,
US
,
SAT
);
427
const
Fix_Factory
SUFIX62(62,
US
,
SAT
);
428
const
Fix_Factory
SUFIX63(63,
US
,
SAT
);
429
const
Fix_Factory
SUFIX64(64,
US
,
SAT
);
431
432
}
// namespace itpp
433
434
#endif // #ifndef FIX_FACTORY_H
Generated on Sat May 25 2013 16:32:22 for IT++ by
Doxygen
1.8.2