Milena (Olena)  User documentation 2.0a Id
 All Classes Namespaces Functions Variables Typedefs Enumerator Groups Pages
mln::value::int_s< n > Struct Template Reference

Signed integer value class. More...

#include <int_s.hh>

Inheritance diagram for mln::value::int_s< n >:
Inheritance graph

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

template<unsigned n>
int_s< n >::int_s ( )
inline

Constructor without argument.

Definition at line 179 of file int_s.hh.

template<unsigned n>
int_s< n >::int_s ( int  i)
inline

Constructor from an integer.

Definition at line 192 of file int_s.hh.

template<unsigned n>
int_s< n >::int_s ( const mln::literal::zero_t )
inline

Constructors/assignments with literals.

Definition at line 222 of file int_s.hh.

Member Function Documentation

template<unsigned n>
int_s< n >::operator int ( ) const
inline

Conversion to an integer.

Definition at line 185 of file int_s.hh.

template<unsigned n>
int_s< n > & int_s< n >::operator= ( int  i)
inline

Assignment from an integer.

Definition at line 207 of file int_s.hh.

Member Data Documentation

template<unsigned n>
const int_s< n > int_s< n >::one = 1
static

Unit value.

Definition at line 149 of file int_s.hh.

template<unsigned n>
const int_s< n > int_s< n >::zero = 0
static

Zero value.

Definition at line 146 of file int_s.hh.