ntg Namespace Reference


Classes

struct  color
 Generic type for color. More...
struct  interval
struct  hsi_traits< hsi_H >
struct  hsi_traits< hsi_S >
struct  hsi_traits< hsi_I >
struct  hsl_traits< hsl_H >
struct  hsl_traits< hsl_S >
struct  hsl_traits< hsl_L >
struct  hsv_traits< hsv_H >
struct  hsv_traits< hsv_S >
struct  hsv_traits< hsv_V >
struct  nrgb_traits< nrgb_R >
struct  nrgb_traits< nrgb_G >
struct  nrgb_traits< nrgb_B >
struct  rgb_traits< rgb_R >
struct  rgb_traits< rgb_G >
struct  rgb_traits< rgb_B >
struct  xyz_traits< xyz_X >
struct  xyz_traits< xyz_Y >
struct  xyz_traits< xyz_Z >
struct  yiq_traits< yiq_Y >
struct  yiq_traits< yiq_I >
struct  yiq_traits< yiq_Q >
struct  yuv_traits< yuv_Y >
struct  yuv_traits< yuv_U >
struct  yuv_traits< yuv_V >
class  data_type
 Top of the hierarchy. More...
class  non_vectorial
class  real
class  integer
class  unsigned_integer
class  signed_integer
class  decimal
class  enumerated
class  binary
class  vectorial
class  bounded
class  bounded_u
class  bounded_s
class  any
 Top of static hierarchy. More...
class  any_class
class  any_const_class
class  type_traits
 Associates properties and methods to types. More...
class  any_ntg
 Top of the ntg types hierarchy. More...
class  value
 Concrete value storage class. More...
class  bin
class  enum_value
struct  unsafe
 No check performed. More...
struct  force
 Force the value to be assigned without checks. More...
struct  strict
 Strict checking, abort in there is a problem. More...
struct  saturate
 Bound values to the nearest limit when an overflow occurs. More...
struct  cycle_behavior
 Apply a modulus when an overflow occurs. More...
struct  C_for_int_u
struct  C_for_int_s
struct  C_for_int_u< 8 >
struct  C_for_int_s< 8 >
struct  C_for_int_u< 16 >
struct  C_for_int_s< 16 >
struct  C_for_int_u< 32 >
struct  C_for_int_s< 32 >
struct  C_for_float_s
struct  C_for_float_d
class  cycle
class  int_s
class  int_u
class  range
 Restrict the interval of a type. More...
class  real_value
class  float_value
class  int_value
class  uint_value
class  sint_value
class  cplx< rect, T >
class  cplx< polar, T >
class  vec
class  vect_value

Namespaces

namespace  builtin
namespace  cast
namespace  internal
namespace  nrgb_16_color
namespace  nrgb_32_color
namespace  nrgb_8_color

Typedefs

typedef color< 3, 8, hsi_traits > hsi_8
typedef color< 3, 16, hsi_traits > hsi_16
typedef color< 3, 32, hsi_traits > hsi_32
typedef color< 3, 8, hsl_traits > hsl_8
typedef color< 3, 16, hsl_traits > hsl_16
typedef color< 3, 32, hsl_traits > hsl_32
typedef color< 3, 8, hsv_traits > hsv_8
typedef color< 3, 16, hsv_traits > hsv_16
typedef color< 3, 32, hsv_traits > hsv_32
typedef color< 3, 8, nrgb_traits > nrgb_8
typedef color< 3, 16, nrgb_traits > nrgb_16
typedef color< 3, 32, nrgb_traits > nrgb_32
typedef color< 3, 8, rgb_traits > rgb_8
typedef color< 3, 16, rgb_traits > rgb_16
typedef color< 3, 32, rgb_traits > rgb_32
typedef color< 3, 8, xyz_traits > xyz_8
typedef color< 3, 16, xyz_traits > xyz_16
typedef color< 3, 32, xyz_traits > xyz_32
typedef color< 3, 8, yiq_traits > yiq_8
typedef color< 3, 16, yiq_traits > yiq_16
typedef color< 3, 32, yiq_traits > yiq_32
typedef color< 3, 8, yuv_traits > yuv_8
typedef color< 3, 16, yuv_traits > yuv_16
typedef color< 3, 32, yuv_traits > yuv_32
typedef float float_s
typedef double float_d
typedef int_u< 8, strictint_u8
typedef int_u< 8, unsafeint_u8u
typedef int_u< 8, saturateint_u8s
typedef int_u< 16, strictint_u16
typedef int_u< 16, unsafeint_u16u
typedef int_u< 16, saturateint_u16s
typedef int_u< 32, strictint_u32
typedef int_u< 32, unsafeint_u32u
typedef int_u< 32, saturateint_u32s
typedef int_s< 8, strictint_s8
typedef int_s< 8, unsafeint_s8u
typedef int_s< 8, saturateint_s8s
typedef int_s< 16, strictint_s16
typedef int_s< 16, unsafeint_s16u
typedef int_s< 16, saturateint_s16s
typedef int_s< 32, strictint_s32
typedef int_s< 32, unsafeint_s32u
typedef int_s< 32, saturateint_s32s

Enumerations

enum  hsi_comp { hsi_H = 0, hsi_S = 1, hsi_I = 2 }
enum  hsl_comp { hsl_H = 0, hsl_S = 1, hsl_L = 2 }
enum  hsv_comp { hsv_H = 0, hsv_S = 1, hsv_V = 2 }
enum  nrgb_comp { nrgb_R = 0, nrgb_G = 1, nrgb_B = 2 }
enum  rgb_comp { rgb_R = 0, rgb_G = 1, rgb_B = 2 }
enum  xyz_comp { xyz_X = 0, xyz_Y = 1, xyz_Z = 2 }
enum  yiq_comp { yiq_Y = 0, yiq_I = 1, yiq_Q = 2 }
enum  yuv_comp { yuv_Y = 0, yuv_U = 1, yuv_V = 2 }
enum  cplx_representation { rect, polar }

Functions

template<unsigned ncomps, unsigned qbits, template< unsigned > class color_system>
std::ostream & operator<< (std::ostream &o, const color< ncomps, qbits, color_system > &r)
template<typename T>
succ (const T &t)
template<typename T>
pred (const T &t)
std::ostream & operator<< (std::ostream &stream, const bin &rhs)
template<class T, class interval>
std::ostream & operator<< (std::ostream &stream, const cycle< T, interval > &rhs)
template<unsigned nbits, class behavior>
std::ostream & operator<< (std::ostream &stream, const int_s< nbits, behavior > &rhs)
template<unsigned nbits, class behavior>
std::ostream & operator<< (std::ostream &stream, const int_u< nbits, behavior > &rhs)
template<class T, class interval, class behavior>
std::ostream & operator<< (std::ostream &stream, const range< T, interval, behavior > &rhs)
template<class T>
ntg::type_traits< T >::ntg_type to_ntg (T val)
template<class T>
ntg::type_traits< T >::signed_type to_signed_ntg (T val)
template<class T>
std::string typename_of_var (const T &)
template<class T>
std::string typename_of ()
template<class T>
std::ostream & operator<< (std::ostream &ostr, const cplx< rect, T > &rhs)
template<class T>
std::ostream & operator<< (std::ostream &ostr, const cplx< polar, T > &rhs)
template<unsigned N, class T>
std::ostream & operator<< (std::ostream &ostr, const vec< N, T > &rhs)


Enumeration Type Documentation

enum ntg::nrgb_comp

NTSC RGB format.

Definition at line 41 of file nrgb.hh.

00042     {
00043       nrgb_R = 0,
00044       nrgb_G = 1,
00045       nrgb_B = 2
00046     };

enum ntg::rgb_comp

CIE RGB format.

Definition at line 41 of file rgb.hh.

00042     {
00043       rgb_R = 0,
00044       rgb_G = 1,
00045       rgb_B = 2
00046     };


Function Documentation

template<typename T>
T ntg::pred ( const T &  t  ) 

Return the predecessor of t.

Note:
The goal is to iterate on types such as ntg::bin.

Definition at line 71 of file pred_succ.hh.

Referenced by oln::utils::histogram_max< T, CPT, V2P, Exact >::max(), oln::utils::histogram_minmax< T, CPT, V2P, Exact >::max(), and oln::utils::max().

00072   {
00073     return T(typename internal::with_arith<T>::ret(t) - 1);
00074   }

template<typename T>
T ntg::succ ( const T &  t  ) 

Return the successor of t.

Note:
The goal is to iterate on types such as ntg::bin.

Definition at line 60 of file pred_succ.hh.

Referenced by oln::utils::histogram_min< T, CPT, V2P, Exact >::min(), oln::utils::histogram_minmax< T, CPT, V2P, Exact >::min(), and oln::utils::min().

00061   {
00062     return T(typename internal::with_arith<T>::ret(t) + 1);
00063   }


Generated on Tue Feb 20 20:22:57 2007 for Olena by  doxygen 1.5.1