35 #include <itpp/itexports.h> 127 : wordlen(w), emode(e), omode(o), qmode(q), stat_ptr(ptr) {}
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;
434 #endif // #ifndef FIX_FACTORY_H Definitions of a base class for fixed-point data types.
const Fix_Factory SFIX1(1, TC, SAT)
Fix_Factories for unsigned Fix/CFix with wrap-around (SFIX1, SFIX2, ..., SFIX64)
void create_elements< Fix >(Fix *&ptr, const int n, const Factory &f)
Create an n-length array of Fix using Fix_Factory f.
e_mode emode
Sign encoding mode.
const Fix_Factory FIX1(1, TC, WRAP)
Fix_Factories for signed Fix/CFix with wrap-around (FIX1, FIX2, ..., FIX64)
Class factory for fixed-point data types Fix and CFix.
q_mode qmode
Quantization mode.
Base class for class factories.
Complex fixed-point data type.
e_mode
Sign encoding modes (aligned with SystemC)
Stat * stat_ptr
Pointer to statistics object.
o_mode
Overflow modes (aligned with SystemC)
Base class for class factories and memory allocation functions.
const int MAX_WORDLEN
Max word length.
Fix_Factory(int w=MAX_WORDLEN, e_mode e=TC, o_mode o=WRAP, q_mode q=TRN, Stat *ptr=0)
Constructor.
const Fix_Factory UFIX1(1, US, WRAP)
Fix_Factories for unsigned Fix/CFix with wrap-around (UFIX1, UFIX2, ..., UFIX64)
o_mode omode
Overflow mode.
virtual ~Fix_Factory()
Destructor.
const Fix_Factory SUFIX1(1, US, SAT)
Fix_Factories for unsigned Fix/CFix with saturation (SUFIX1, SUFIX2, ..., SUFIX64) ...
A class for sampling a signal and calculating statistics.
q_mode
Quantization modes (aligned with SystemC)
void create_elements< CFix >(CFix *&ptr, const int n, const Factory &f)
Create an n-length array of CFix using Fix_Factory f.