$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::value::float01_< n > Struct Template Reference

#include <mln/value/float01_.hh>

Public Member Functions

 float01_ ()
 float01_ (float val)
C & handle_ ()
 operator float () const
float01_< n > & operator= (float val)
void set_ind (unsigned long val)
const C & to_enc () const
to_equiv () const
to_interop () const
float value () const
 float01_ (const mln::literal::zero_t &)
float01_operator= (const mln::literal::zero_t &)
 float01_ (const mln::literal::one_t &)
float01_operator= (const mln::literal::one_t &)

Protected Attributes

enc v_

Public Types

typedef Floating< void > category
typedef C enc
typedef V equiv
typedef float01_< n > exact_t
typedef N interop

Detailed Description

template<unsigned n>
struct mln::value::float01_< n >

General class for the interval [0,1] of |R made discrete (quantized with n bits).

Definition at line 90 of file float01_.hh.

Constructor & Destructor Documentation

template<unsigned n>
mln::value::float01_< n >::float01_ ( )

Constructor without argument.

template<unsigned n>
mln::value::float01_< n >::float01_ ( float  val)

Constructor from a float.

template<unsigned n>
mln::value::float01_< n >::float01_ ( const mln::literal::zero_t )

Constructors/assignments with literals.

template<unsigned n>
mln::value::float01_< n >::float01_ ( const mln::literal::one_t )

Member Function Documentation

template<typename V, typename C, typename N, typename E>
C& mln::value::internal::value_like_< V, C, N, E >::handle_ ( )
inlineinherited

Definition at line 81 of file value_like.hh.

template<unsigned n>
mln::value::float01_< n >::operator float ( ) const

Conversion to a float.

template<unsigned n>
float01_& mln::value::float01_< n >::operator= ( const mln::literal::zero_t )
template<unsigned n>
float01_& mln::value::float01_< n >::operator= ( const mln::literal::one_t )
template<unsigned n>
float01_<n>& mln::value::float01_< n >::operator= ( float  val)

Assigment from a float.

template<unsigned n>
void mln::value::float01_< n >::set_ind ( unsigned long  val)

Set value to the val th position in the quantized interval.

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

Explicit conversion towards encoding type.

template<typename V, typename C, typename N, typename E>
V mln::value::internal::value_like_< V, C, N, E >::to_equiv ( ) const
inherited

Explicit conversion towards equivalent type.

template<typename V, typename C, typename N, typename E>
N mln::value::internal::value_like_< V, C, N, E >::to_interop ( ) const
inherited

Explicit conversion towards interoperation type.

template<unsigned n>
float mln::value::float01_< n >::value ( ) const

Access to std type.

Member Data Documentation

template<typename V, typename C, typename N, typename E>
enc mln::value::internal::value_like_< V, C, N, E >::v_
protectedinherited

Definition at line 84 of file value_like.hh.

Member Typedef Documentation

typedef Floating<void> mln::value::Floating< float01_< n > >::category
inherited

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.

Definition at line 65 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.

Definition at line 62 of file value_like.hh.

typedef float01_< n > mln::Object< float01_< n > >::exact_t
inherited

Definition at line 105 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 68 of file value_like.hh.