$extrastylesheet
#include <mln/value/int_u_sat.hh>
Public Member Functions | |
| int_u_sat () | |
| int_u_sat (int i) | |
| C & | handle_ () |
| operator int () const | |
| int_u_sat< n > & | operator+= (int i) |
| int_u_sat< n > & | operator-= (int i) |
| int_u_sat< n > & | operator= (int i) |
| const C & | to_enc () const |
| V | to_equiv () const |
| N | to_interop () const |
Static Public Attributes | |
| static const int_u_sat< n > | one |
| static const int_u_sat< n > | zero |
Protected Attributes | |
| enc | v_ |
Public Types | |
| typedef Integer< void > | category |
| typedef C | enc |
| typedef V | equiv |
| typedef int_u_sat< n > | exact_t |
| typedef N | interop |
Unsigned integer value class with saturation behavior.
The parameter is n the number of encoding bits.
Definition at line 90 of file int_u_sat.hh.
| mln::value::int_u_sat< n >::int_u_sat | ( | ) |
Constructor without argument.
| mln::value::int_u_sat< n >::int_u_sat | ( | int | i | ) |
Constructor from an integer.
|
inlineinherited |
Definition at line 81 of file value_like.hh.
| mln::value::int_u_sat< n >::operator int | ( | ) | const |
Conversion to an integer.
| int_u_sat<n>& mln::value::int_u_sat< n >::operator+= | ( | int | i | ) |
Self addition.
| int_u_sat<n>& mln::value::int_u_sat< n >::operator-= | ( | int | i | ) |
Self subtraction.
| int_u_sat<n>& mln::value::int_u_sat< n >::operator= | ( | int | i | ) |
Assignment from an integer.
|
inherited |
Explicit conversion towards encoding type.
|
inherited |
Explicit conversion towards equivalent type.
|
inherited |
Explicit conversion towards interoperation type.
|
static |
Unit value.
Definition at line 115 of file int_u_sat.hh.
|
protectedinherited |
Definition at line 84 of file value_like.hh.
|
static |
Zero value.
Definition at line 112 of file int_u_sat.hh.
|
inherited |
Definition at line 60 of file concept/integer.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.