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 >.
Public Member Functions | |
| float01_f () | |
| Constructor without argument. | |
| float01_f (float val) | |
| Constructor from a float. | |
| operator float () const | |
| Conversion to a float. | |
| float01_f & | operator= (const float val) |
| Assignment from a float. | |
| float | value () const |
| Access to float value. | |
Class for floating values restricted to the interval [0..1].
Definition at line 84 of file float01_f.hh.
| 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.
| 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.
1.7.1