00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef NTG_CORE_PREDECLS_HH
00029 # define NTG_CORE_PREDECLS_HH
00030
00031 # include <mlc/type.hh>
00032
00033 # include <ntg/vect/cplx_representation.hh>
00034
00035
00036
00037
00038
00039 namespace ntg
00040 {
00041
00042
00043
00044
00045
00046 class unsafe;
00047 class strict;
00048 class saturate;
00049
00050
00051
00052
00053
00054 template <class T, T i_min, T i_max> class bounded;
00055 template <unsigned i_min, unsigned i_max> class bounded_u;
00056 template <signed i_min, signed i_max> class bounded_s;
00057
00058
00059
00060
00061
00062 template <unsigned nbits, class behavior = strict> class int_u;
00063 template <unsigned nbits, class behavior = strict> class int_s;
00064 template <class T, class interval, class behavior = strict> class range;
00065 template <class T, class interval> class cycle;
00066
00067 typedef float float_s;
00068 typedef double float_d;
00069
00070
00071
00072
00073
00074 class bin;
00075
00076
00077
00078
00079
00080 template <unsigned N, class T, class Self = mlc::final> class vec;
00081
00082 template <cplx_representation R, class T> class cplx;
00083
00084
00085
00086
00087
00088
00089 #ifndef SWIG
00090 template <unsigned ncomps,
00091 unsigned qbits,
00092 template <unsigned> class color_system>
00093 struct color;
00094 #else
00095 struct color;
00096 #endif
00097
00098 template<int lval, int uval>
00099 struct interval;
00100
00101
00102
00103
00104
00105 typedef int_u<8, strict> int_u8;
00106 typedef int_u<8, unsafe> int_u8u;
00107 typedef int_u<8, saturate> int_u8s;
00108
00109 typedef int_u<16, strict> int_u16;
00110 typedef int_u<16, unsafe> int_u16u;
00111 typedef int_u<16, saturate> int_u16s;
00112
00113 typedef int_u<32, strict> int_u32;
00114 typedef int_u<32, unsafe> int_u32u;
00115 typedef int_u<32, saturate> int_u32s;
00116
00117
00118
00119
00120
00121 typedef int_s<8, strict> int_s8;
00122 typedef int_s<8, unsafe> int_s8u;
00123 typedef int_s<8, saturate> int_s8s;
00124
00125 typedef int_s<16, strict> int_s16;
00126 typedef int_s<16, unsafe> int_s16u;
00127 typedef int_s<16, saturate> int_s16s;
00128
00129 typedef int_s<32, strict> int_s32;
00130 typedef int_s<32, unsafe> int_s32u;
00131 typedef int_s<32, saturate> int_s32s;
00132
00133 }
00134
00135 #endif // !NTG_CORE_PREDECLS_HH