Public Member Functions

mln::value::float01_f Struct Reference

Class for floating values restricted to the interval [0..1]. More...

#include <float01_f.hh>

Inherits mln::value::Floating< float01_f >, and mln::value::internal::value_like_< float,float,float,float01_f >.

List of all members.

Public Member Functions

 float01_f ()
 Constructor without argument.
 float01_f (float val)
 Constructor from a float.
 operator float () const
 Conversion to a float.
float01_foperator= (const float val)
 Assignment from a float.
float value () const
 Access to float value.

Detailed Description

Class for floating values restricted to the interval [0..1].

Definition at line 84 of file float01_f.hh.


Constructor & Destructor Documentation

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

Constructor without argument.

Definition at line 115 of file float01_f.hh.

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

Constructor from a float.

Definition at line 120 of file float01_f.hh.


Member Function Documentation

mln::value::float01_f::operator float (  )  const [inline]

Conversion to a float.

Definition at line 145 of file float01_f.hh.

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

Assignment from a float.

Definition at line 136 of file float01_f.hh.

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

Access to float value.

Definition at line 129 of file float01_f.hh.