Public Member Functions

mln::value::graylevel_f Struct Reference

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

#include <graylevel_f.hh>

Inherits mln::value::Floating< graylevel_f >, and mln::value::internal::value_like_< float01_f,float01_f::enc, internal::gray_f,graylevel_f >.

List of all members.

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.
template<unsigned n>
 operator graylevel< n > () const
 Conversion to graylevel<n>.
graylevel_foperator= (float val)
 Assigment with float.
graylevel_foperator= (const graylevel_f &rhs)
 Assigment.
template<unsigned n>
graylevel_foperator= (const graylevel< n > &rhs)
 Assigment with graylevel.
float value () const
 Access to std type.

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

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

Detailed Description

General gray-level class on n bits.

Definition at line 193 of file graylevel_f.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.

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

Constructor from float.

Definition at line 347 of file graylevel_f.hh.

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().

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

Ctors with literals.

Definition at line 400 of file graylevel_f.hh.


Member Function Documentation

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.

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().

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.

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

Assigment.

Definition at line 391 of file graylevel_f.hh.

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

Access to std type.

Definition at line 450 of file graylevel_f.hh.

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