|
Milena (Olena)
User documentation 2.0a Id
|
Unsigned integer value class with saturation behavior. More...
#include <int_u_sat.hh>

Public Member Functions | |
| int_u_sat () | |
| Constructor without argument. | |
| int_u_sat (int i) | |
| Constructor from an integer. | |
| 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. | |
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.
Constructor without argument.
Definition at line 149 of file int_u_sat.hh.
Constructor from an integer.
Definition at line 155 of file int_u_sat.hh.
|
inline |
Conversion to an integer.
Definition at line 170 of file int_u_sat.hh.
Self addition.
Definition at line 195 of file int_u_sat.hh.
Self subtraction.
Definition at line 205 of file int_u_sat.hh.
Assignment from an integer.
Definition at line 178 of file int_u_sat.hh.
Unit value.
Definition at line 115 of file int_u_sat.hh.
Zero value.
Definition at line 112 of file int_u_sat.hh.