#include <int_u_sat.hh>
Public Member Functions | |
int_u_sat (int i) | |
Constructor from an integer. | |
int_u_sat () | |
Constructor without argument. | |
operator int () const | |
Conversion to an integer. | |
int_u_sat< n > & | operator+= (int i) |
Self addition. | |
int_u_sat< n > & | operator-= (int i) |
Self subtraction. | |
int_u_sat< n > & | operator= (int i) |
Assignment from an integer. | |
Static Public Attributes | |
static const int_u_sat< n > | one = 1 |
Unit value. | |
static const int_u_sat< n > | zero = 0 |
Zero value. |
The parameter is n
the number of encoding bits.
mln::value::int_u_sat< n >::int_u_sat | ( | ) | [inline] |
Constructor without argument.
mln::value::int_u_sat< n >::int_u_sat | ( | int | i | ) | [inline] |
Constructor from an integer.
mln::value::int_u_sat< n >::operator int | ( | ) | const [inline] |
Conversion to an integer.
int_u_sat< n > & mln::value::int_u_sat< n >::operator+= | ( | int | i | ) | [inline] |
Self addition.
int_u_sat< n > & mln::value::int_u_sat< n >::operator-= | ( | int | i | ) | [inline] |
Self subtraction.
int_u_sat< n > & mln::value::int_u_sat< n >::operator= | ( | int | i | ) | [inline] |
Assignment from an integer.
const int_u_sat< n > mln::value::int_u_sat< n >::one = 1 [inline, static] |
Unit value.
const int_u_sat< n > mln::value::int_u_sat< n >::zero = 0 [inline, static] |
Zero value.