$extrastylesheet
#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 |
V | to_equiv () const |
N | 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 |
General class for the interval [0,1] of |R made discrete (quantized with n bits).
Definition at line 90 of file float01_.hh.
mln::value::float01_< n >::float01_ | ( | ) |
Constructor without argument.
mln::value::float01_< n >::float01_ | ( | float | val | ) |
Constructor from a float.
mln::value::float01_< n >::float01_ | ( | const mln::literal::zero_t & | ) |
Constructors/assignments with literals.
mln::value::float01_< n >::float01_ | ( | const mln::literal::one_t & | ) |
|
inlineinherited |
Definition at line 81 of file value_like.hh.
mln::value::float01_< n >::operator float | ( | ) | const |
Conversion to a float.
float01_& mln::value::float01_< n >::operator= | ( | const mln::literal::zero_t & | ) |
float01_& mln::value::float01_< n >::operator= | ( | const mln::literal::one_t & | ) |
float01_<n>& mln::value::float01_< n >::operator= | ( | float | val | ) |
Assigment from a float.
void mln::value::float01_< n >::set_ind | ( | unsigned long | val | ) |
Set value to the val
th position in the quantized interval.
|
inherited |
Explicit conversion towards encoding type.
|
inherited |
Explicit conversion towards equivalent type.
|
inherited |
Explicit conversion towards interoperation type.
float mln::value::float01_< n >::value | ( | ) | const |
Access to std type.
|
protectedinherited |
Definition at line 84 of file value_like.hh.
|
inherited |
Definition at line 64 of file floating.hh.
|
inherited |
Encoding associated type.
Definition at line 65 of file value_like.hh.
|
inherited |
Equivalent associated type.
Definition at line 62 of file value_like.hh.
|
inherited |
|
inherited |
Interoperation associated type.
Definition at line 68 of file value_like.hh.