Public Types | Public Member Functions | Protected Attributes

mln::value::graylevel_f Struct Reference

General gray-level class on n bits. More...

#include <graylevel_f.hh>

Inheritance diagram for mln::value::graylevel_f:
Inheritance graph

List of all members.

Public Types

typedef Floating< void > category
typedef C enc
 Encoding associated type.
typedef V equiv
 Equivalent associated type.
typedef graylevel_f exact_t
typedef N interop
 Interoperation associated type.

Public Member Functions

 graylevel_f ()
 Constructor without argument.
 graylevel_f (const graylevel_f &rhs)
 Copy constructor.
 graylevel_f (float val)
 Constructor from float.
template<unsigned n>
 graylevel_f (const graylevel< n > &rhs)
 Constructor from graylevel.
C & handle_ ()
template<unsigned n>
 operator graylevel< n > () const
 Conversion to graylevel<n>.
graylevel_foperator= (const graylevel_f &rhs)
 Assigment.
graylevel_foperator= (float val)
 Assigment with float.
template<unsigned n>
graylevel_foperator= (const graylevel< n > &rhs)
 Assigment with graylevel.
const C & to_enc () const
 Explicit conversion towards encoding type.
to_equiv () const
 Explicit conversion towards equivalent type.
to_interop () const
 Explicit conversion towards interoperation type.
float value () const
 Access to std type.

 graylevel_f (const mln::literal::black_t &)
 Ctors with literals.
 graylevel_f (const mln::literal::medium_gray_t &)
 graylevel_f (const mln::literal::white_t &)

graylevel_foperator= (const mln::literal::black_t &)
 Assigment with literals.
graylevel_foperator= (const mln::literal::medium_gray_t &)
graylevel_foperator= (const mln::literal::white_t &)

Protected Attributes

enc v_

Detailed Description

General gray-level class on n bits.

Definition at line 193 of file graylevel_f.hh.


Member Typedef Documentation

typedef Floating<void> mln::value::Floating< graylevel_f >::category [inherited]

Reimplemented from mln::value::Scalar< graylevel_f >.

Definition at line 64 of file floating.hh.

template<typename V, typename C, typename N, typename E>
typedef C mln::value::internal::value_like_< V, C, N, E >::enc [inherited]

Encoding associated type.

Reimplemented in mln::value::internal::gray_< n >, and mln::value::label< n >.

Definition at line 60 of file value_like.hh.

template<typename V, typename C, typename N, typename E>
typedef V mln::value::internal::value_like_< V, C, N, E >::equiv [inherited]

Equivalent associated type.

Reimplemented in mln::value::internal::gray_< n >.

Definition at line 57 of file value_like.hh.

typedef graylevel_f mln::Object< graylevel_f >::exact_t [inherited]

Definition at line 173 of file object.hh.

template<typename V, typename C, typename N, typename E>
typedef N mln::value::internal::value_like_< V, C, N, E >::interop [inherited]

Interoperation associated type.

Definition at line 63 of file value_like.hh.


Constructor & Destructor Documentation

mln::value::graylevel_f::graylevel_f (  )  [inline]

Constructor without argument.

Definition at line 341 of file graylevel_f.hh.

mln::value::graylevel_f::graylevel_f ( const graylevel_f rhs  )  [inline]

Copy constructor.

Definition at line 383 of file graylevel_f.hh.

References mln::value::internal::value_like_< V, C, N, E >::v_.

mln::value::graylevel_f::graylevel_f ( float  val  )  [inline]

Constructor from float.

Definition at line 347 of file graylevel_f.hh.

References mln::value::internal::value_like_< V, C, N, E >::v_.

template<unsigned n>
mln::value::graylevel_f::graylevel_f ( const graylevel< n > &  rhs  ) 

Constructor from graylevel.

Definition at line 365 of file graylevel_f.hh.

References mln::value::graylevel< n >::to_float(), and mln::value::internal::value_like_< V, C, N, E >::v_.

mln::value::graylevel_f::graylevel_f ( const mln::literal::black_t  )  [inline]

Ctors with literals.

Definition at line 400 of file graylevel_f.hh.

References mln::value::internal::value_like_< V, C, N, E >::v_.

mln::value::graylevel_f::graylevel_f ( const mln::literal::medium_gray_t  )  [inline]
mln::value::graylevel_f::graylevel_f ( const mln::literal::white_t  )  [inline]

Member Function Documentation

template<typename V, typename C, typename N, typename E>
C& mln::value::internal::value_like_< V, C, N, E >::handle_ (  )  [inline, inherited]

Definition at line 76 of file value_like.hh.

Referenced by mln::value::operator>>().

template<unsigned n>
mln::value::graylevel_f::operator graylevel< n > (  )  const [inline]

Conversion to graylevel<n>.

Definition at line 443 of file graylevel_f.hh.

graylevel_f & mln::value::graylevel_f::operator= ( float  val  )  [inline]

Assigment with float.

Definition at line 356 of file graylevel_f.hh.

References mln::value::internal::value_like_< V, C, N, E >::v_.

graylevel_f & mln::value::graylevel_f::operator= ( const mln::literal::black_t  )  [inline]

Assigment with literals.

Definition at line 407 of file graylevel_f.hh.

References mln::value::internal::value_like_< V, C, N, E >::v_.

graylevel_f & mln::value::graylevel_f::operator= ( const mln::literal::medium_gray_t  )  [inline]
graylevel_f & mln::value::graylevel_f::operator= ( const mln::literal::white_t  )  [inline]
template<unsigned n>
graylevel_f & mln::value::graylevel_f::operator= ( const graylevel< n > &  rhs  ) 

Assigment with graylevel.

Definition at line 374 of file graylevel_f.hh.

References mln::value::graylevel< n >::to_float(), and mln::value::internal::value_like_< V, C, N, E >::v_.

graylevel_f & mln::value::graylevel_f::operator= ( const graylevel_f rhs  )  [inline]

Assigment.

Definition at line 391 of file graylevel_f.hh.

References mln::value::internal::value_like_< V, C, N, E >::v_.

template<typename V , typename C , typename N , typename E >
const C & mln::value::internal::value_like_< V, C, N, E >::to_enc (  )  const [inline, inherited]
template<typename V , typename C , typename N , typename E >
V mln::value::internal::value_like_< V, C, N, E >::to_equiv (  )  const [inline, inherited]

Explicit conversion towards equivalent type.

Definition at line 102 of file value_like.hh.

References mln::value::internal::value_like_< V, C, N, E >::v_.

Referenced by mln::convert::over_load::from_to_().

template<typename V , typename C , typename N , typename E >
N mln::value::internal::value_like_< V, C, N, E >::to_interop (  )  const [inline, inherited]
float mln::value::graylevel_f::value (  )  const [inline]

Member Data Documentation

template<typename V, typename C, typename N, typename E>
enc mln::value::internal::value_like_< V, C, N, E >::v_ [protected, inherited]

Definition at line 79 of file value_like.hh.

Referenced by mln::value::qt::rgb32::blue(), mln::value::rgb< n >::blue(), mln::value::qt::rgb32::comp(), mln::value::rgb< n >::comp(), mln::value::float01_< n >::float01_(), mln::value::float01_f::float01_f(), mln::value::internal::gray_< n >::gray_(), mln::value::internal::gray_f::gray_f(), mln::value::graylevel< n >::graylevel(), graylevel_f(), mln::value::qt::rgb32::green(), mln::value::rgb< n >::green(), mln::value::internal::value_like_< int, int, gray_< n >, gray_< n > >::handle_(), mln::value::int_s< n >::int_s(), mln::value::int_u< n >::int_u(), mln::value::int_u_sat< n >::int_u_sat(), mln::algebra::quat::inv(), mln::algebra::quat::is_null(), mln::algebra::quat::is_pure(), mln::algebra::quat::is_unit(), mln::value::label< n >::label(), mln::value::label< n >::next(), mln::value::int_u< n >::next(), mln::value::qt::rgb32::operator algebra::vec< 3, float >(), mln::value::rgb< n >::operator algebra::vec< 3, float >(), mln::value::qt::rgb32::operator algebra::vec< 3, int >(), mln::value::rgb< n >::operator algebra::vec< 3, int >(), mln::algebra::quat::operator const algebra::vec< 4, float > &(), mln::value::float01_f::operator float(), mln::value::float01_< n >::operator float(), mln::value::internal::gray_f::operator gray_< m >(), mln::value::internal::gray_< n >::operator gray_< m >(), mln::value::internal::gray_f::operator graylevel< m >(), mln::value::internal::gray_< n >::operator graylevel< m >(), mln::value::internal::gray_f::operator graylevel_f(), mln::value::internal::gray_< n >::operator graylevel_f(), mln::value::int_u_sat< n >::operator int(), mln::value::int_u< n >::operator unsigned(), mln::value::label< n >::operator++(), mln::value::int_u_sat< n >::operator+=(), mln::value::int_u< n >::operator-(), mln::value::label< n >::operator--(), mln::value::int_u_sat< n >::operator-=(), mln::value::qt::rgb32::operator=(), mln::value::rgb< n >::operator=(), mln::algebra::quat::operator=(), mln::value::label< n >::operator=(), mln::value::int_u_sat< n >::operator=(), mln::value::int_u< n >::operator=(), mln::value::int_s< n >::operator=(), operator=(), mln::value::graylevel< n >::operator=(), mln::value::internal::gray_f::operator=(), mln::value::internal::gray_< n >::operator=(), mln::value::float01_f::operator=(), mln::value::float01_< n >::operator=(), mln::value::label< n >::prev(), mln::algebra::quat::quat(), mln::value::qt::rgb32::red(), mln::value::rgb< n >::red(), mln::value::rgb< n >::rgb(), mln::value::qt::rgb32::rgb32(), mln::algebra::quat::s(), mln::value::float01_< n >::set_ind(), mln::algebra::quat::set_unit(), mln::algebra::quat::set_v(), mln::algebra::quat::sprod(), mln::value::internal::value_like_< V, C, N, E >::to_enc(), mln::value::internal::value_like_< V, C, N, E >::to_equiv(), mln::value::graylevel< n >::to_float(), mln::algebra::quat::to_vec(), mln::algebra::quat::v(), value(), mln::value::graylevel< n >::value(), mln::value::internal::gray_f::value(), mln::value::internal::gray_< n >::value(), mln::value::float01_f::value(), and mln::value::float01_< n >::value().