Signed integer value class.
More...
#include <int_s.hh>
List of all members.
Public Member Functions |
| int_s () |
| Constructor without argument.
|
| int_s (int i) |
| Constructor from an integer.
|
| operator int () const |
| Conversion to an integer.
|
int_s< n > & | operator= (int i) |
| Assignment from an integer.
|
|
|
| int_s (const mln::literal::zero_t &) |
| Constructors/assignments with literals.
|
Static Public Attributes |
static const int_s< n > | one = 1 |
| Unit value.
|
static const int_s< n > | zero = 0 |
| Zero value.
|
Detailed Description
template<unsigned n>
struct mln::value::int_s< n >
Signed integer value class.
The parameter is n
the number of encoding bits.
Definition at line 115 of file int_s.hh.
Constructor & Destructor Documentation
Constructor without argument.
Definition at line 179 of file int_s.hh.
Constructor from an integer.
Definition at line 192 of file int_s.hh.
Constructors/assignments with literals.
Definition at line 222 of file int_s.hh.
Member Function Documentation
Conversion to an integer.
Definition at line 185 of file int_s.hh.
Assignment from an integer.
Definition at line 207 of file int_s.hh.
Member Data Documentation