Classes | Typedefs | Functions

mln::value::internal Namespace Reference

Forward declarations. More...

Classes

struct  convert_
struct  convert_< bool >
struct  convert_< float01_< n > >
struct  convert_< graylevel< n > >
struct  encoding_signed_
struct  encoding_signed_< 16 >
struct  encoding_signed_< 32 >
struct  encoding_signed_< 64 >
struct  encoding_signed_< 8 >
struct  encoding_signed_< 99 >
struct  encoding_unsigned_
struct  encoding_unsigned_< 16 >
struct  encoding_unsigned_< 32 >
struct  encoding_unsigned_< 64 >
struct  encoding_unsigned_< 8 >
struct  encoding_unsigned_< 99 >
struct  equiv_
struct  equiv_ret_< 1, T >
struct  equiv_ret_< 2, T >
class  gray_
 General gray-level class where n bits is not know at compile-time. More...
struct  gray_f
 General gray-level class on n bits. More...
struct  helper_gray__op_< gray_< n > >
struct  helper_gray__op_< gray_f >
struct  helper_scalar_
struct  helper_stack_image_lvalue_
struct  helper_stack_image_lvalue_< n, const I >
struct  Integer
struct  iterable_set
struct  limits
struct  make_
struct  no_
struct  set_selector_
struct  set_selector_< T, E, true >
struct  value_like_
 Base class for value classes defined over another type. More...

Typedefs

typedef char yes_

Functions

template<typename S >
const S & cast_ (const void *, const S &src)
template<typename O , typename S >
const S & cast_ (const Object< O > *, const S &src)
template<unsigned n_dest>
unsigned long convert (unsigned n_src, unsigned long val)
template<unsigned n_src, unsigned n_dest>
long convert (int val)
no_ equiv_selector_ (void *)
template<typename V >
yes_ equiv_selector_ (Value< V > *)
std::string make_generic_name (const char *name, int quantification)
 Construct a type name as string.
template<typename V , typename S >
 mln_value_equiv (S) cast_(const Value< V > *
template<unsigned n>
label< n > next_dispatch (const label< n > &v)
template<typename V >
next_dispatch (const V &v)
template<unsigned n>
gray_< n > operator* (int s, const gray_< n > &rhs)
template<unsigned n>
gray_< n > operator* (const gray_< n > &lhs, int s)
template<unsigned n, unsigned m>
mln::trait::op::times< gray_
< n >, gray_< m > >::ret 
operator* (const gray_< n > &lhs, const gray_< m > &rhs)
template<unsigned n, unsigned m>
mln::trait::op::plus< gray_< n >
, gray_< m > >::ret 
operator+ (const gray_< n > &lhs, const gray_< m > &rhs)
template<unsigned n, unsigned m>
mln::trait::op::minus< gray_
< n >, gray_< m > >::ret 
operator- (const gray_< n > &lhs, const gray_< m > &rhs)
template<unsigned n>
gray_< n > operator/ (const gray_< n > &lhs, int s)
template<typename V , typename C , typename N , typename E >
bool operator< (const value_like_< V, C, N, E > &lhs, const value_like_< V, C, N, E > &rhs)
 General definition of the "less than" operator between value-like types.
template<unsigned n, unsigned m>
bool operator< (const gray_< n > &lhs, const gray_< m > &rhs)
std::ostream & operator<< (std::ostream &ostr, const gray_f &g)
 Op<<.
template<unsigned n>
std::ostream & operator<< (std::ostream &ostr, const gray_< n > &g)
template<typename V , typename C , typename N , typename E >
bool operator== (const value_like_< V, C, N, E > &lhs, const value_like_< V, C, N, E > &rhs)
 General definition of the "equal to" operator between value-like types.
template<unsigned n, unsigned m>
bool operator== (const gray_< n > &lhs, const gray_< m > &rhs)
template<typename V >
other_ (mln::trait::value::quant::high, const Value< V > &val_)
template<typename V >
other_ (mln::trait::value::quant::low, const Value< V > &val_)
template<typename V >
other_ (const void *, const V &val)
template<typename V >
other_ (const Value< V > *, const V &val)
template<typename V >
other_ (mln::trait::value::quant::high, const value::Scalar< V > &val_)
bool other_ (const void *, const bool &val)
template<typename V >
run_equiv_ (const void *, const V *v)
template<typename V >
internal::equiv_< V >::ret run_equiv_ (const V &v)
template<typename V , typename T >
internal::equiv_< V >::ret run_equiv_ (const Value< V > *v, const T *)
unsigned long two_pow_ (unsigned n)
unsigned long two_pow_n_minus_1 (unsigned n)

Detailed Description

Forward declarations.


Typedef Documentation

Definition at line 70 of file equiv.hh.


Function Documentation

template<typename S >
const S& mln::value::internal::cast_ ( const void *  ,
const S &  src 
) [inline]

Definition at line 59 of file value/cast.hh.

Referenced by mln::value::cast().

template<typename O , typename S >
const S& mln::value::internal::cast_ ( const Object< O > *  ,
const S &  src 
) [inline]

Definition at line 67 of file value/cast.hh.

template<unsigned n_dest>
unsigned long mln::value::internal::convert ( unsigned  n_src,
unsigned long  val 
) [inline]

Definition at line 135 of file float01.hh.

References two_pow_(), and two_pow_n_minus_1().

template<unsigned n_src, unsigned n_dest>
long mln::value::internal::convert ( int  val  )  [inline]

Definition at line 230 of file gray_.hh.

no_ mln::value::internal::equiv_selector_ ( void *   ) 
template<typename V >
yes_ mln::value::internal::equiv_selector_ ( Value< V > *   ) 
std::string mln::value::internal::make_generic_name ( const char *  name,
int  quantification 
) [inline]
template<typename V , typename S >
mln::value::internal::mln_value_equiv (  )  const [inline]
template<unsigned n>
label<n> mln::value::internal::next_dispatch ( const label< n > &  v  )  [inline]

Definition at line 89 of file next.hh.

References mln::value::implementation::next_label().

Referenced by mln::value::next().

template<typename V >
V mln::value::internal::next_dispatch ( const V &  v  )  [inline]

Definition at line 98 of file next.hh.

References mln::value::next().

template<unsigned n>
gray_< n > mln::value::internal::operator* ( int  s,
const gray_< n > &  rhs 
) [inline]

Definition at line 428 of file gray_.hh.

References mln::value::internal::gray_< n >::value().

template<unsigned n>
gray_< n > mln::value::internal::operator* ( const gray_< n > &  lhs,
int  s 
) [inline]

Definition at line 436 of file gray_.hh.

References mln::value::internal::gray_< n >::value().

template<unsigned n, unsigned m>
mln::trait::op::times< gray_<n> , gray_<m> >::ret mln::value::internal::operator* ( const gray_< n > &  lhs,
const gray_< m > &  rhs 
) [inline]

Definition at line 419 of file gray_.hh.

template<unsigned n, unsigned m>
mln::trait::op::plus< gray_< n >, gray_< m > >::ret mln::value::internal::operator+ ( const gray_< n > &  lhs,
const gray_< m > &  rhs 
) [inline]

Definition at line 373 of file gray_.hh.

template<unsigned n, unsigned m>
mln::trait::op::minus< gray_< n >, gray_< m > >::ret mln::value::internal::operator- ( const gray_< n > &  lhs,
const gray_< m > &  rhs 
) [inline]

Definition at line 391 of file gray_.hh.

template<unsigned n>
gray_< n > mln::value::internal::operator/ ( const gray_< n > &  lhs,
int  s 
) [inline]

Definition at line 444 of file gray_.hh.

References mln::value::internal::gray_< n >::value().

template<typename V , typename C , typename N , typename E >
bool mln::value::internal::operator< ( const value_like_< V, C, N, E > &  lhs,
const value_like_< V, C, N, E > &  rhs 
) [inline]

General definition of the "less than" operator between value-like types.

Definition at line 133 of file value_like.hh.

References mln::rhs.

template<unsigned n, unsigned m>
bool mln::value::internal::operator< ( const gray_< n > &  lhs,
const gray_< m > &  rhs 
) [inline]

Definition at line 360 of file gray_.hh.

std::ostream & mln::value::internal::operator<< ( std::ostream &  ostr,
const gray_f &  g 
) [inline]

Op<<.

Definition at line 318 of file gray_f.hh.

References mln::value::internal::gray_f::value().

template<unsigned n>
std::ostream & mln::value::internal::operator<< ( std::ostream &  ostr,
const gray_< n > &  g 
) [inline]

Definition at line 330 of file gray_.hh.

template<typename V , typename C , typename N , typename E >
bool mln::value::internal::operator== ( const value_like_< V, C, N, E > &  lhs,
const value_like_< V, C, N, E > &  rhs 
) [inline]

General definition of the "equal to" operator between value-like types.

Definition at line 125 of file value_like.hh.

References mln::value::internal::value_like_< V, C, N, E >::to_enc().

template<unsigned n, unsigned m>
bool mln::value::internal::operator== ( const gray_< n > &  lhs,
const gray_< m > &  rhs 
) [inline]

Definition at line 337 of file gray_.hh.

References mln::down, mln::up, and mln::value::internal::gray_< n >::value().

template<typename V >
V mln::value::internal::other_ ( mln::trait::value::quant::high  ,
const Value< V > &  val_ 
) [inline]

Definition at line 75 of file other.hh.

References mln::exact().

template<typename V >
V mln::value::internal::other_ ( mln::trait::value::quant::low  ,
const Value< V > &  val_ 
) [inline]

Definition at line 93 of file other.hh.

References mln::exact().

template<typename V >
V mln::value::internal::other_ ( const void *  ,
const V &  val 
)

Definition at line 59 of file other.hh.

Referenced by mln::value::other(), and other_().

template<typename V >
V mln::value::internal::other_ ( const Value< V > *  ,
const V &  val 
) [inline]

Definition at line 105 of file other.hh.

References other_().

template<typename V >
V mln::value::internal::other_ ( mln::trait::value::quant::high  ,
const value::Scalar< V > &  val_ 
) [inline]

Definition at line 84 of file other.hh.

References mln::exact().

bool mln::value::internal::other_ ( const void *  ,
const bool &  val 
) [inline]

Definition at line 66 of file other.hh.

template<typename V >
V mln::value::internal::run_equiv_ ( const void *  ,
const V *  v 
) [inline]

Definition at line 101 of file equiv.hh.

template<typename V >
internal::equiv_< V >::ret mln::value::internal::run_equiv_ ( const V &  v  )  [inline]

Definition at line 109 of file equiv.hh.

Referenced by mln::value::equiv(), and run_equiv_().

template<typename V , typename T >
internal::equiv_<V>::ret mln::value::internal::run_equiv_ ( const Value< V > *  v,
const T *   
) [inline]

Definition at line 93 of file equiv.hh.

References mln::exact(), and run_equiv_().

unsigned long mln::value::internal::two_pow_ ( unsigned  n  )  [inline]

Definition at line 119 of file float01.hh.

Referenced by convert(), mln::value::float01::set_nbits(), and two_pow_n_minus_1().

unsigned long mln::value::internal::two_pow_n_minus_1 ( unsigned  n  )  [inline]