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

List of all members.

Public Member Functions

 int_s (int i)
 Constructor from an integer.
 int_s ()
 Constructor without argument.
 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.


Constructor & Destructor Documentation

template<unsigned n>
mln::value::int_s< n >::int_s (  )  [inline]

Constructor without argument.

template<unsigned n>
mln::value::int_s< n >::int_s ( int  i  )  [inline]

Constructor from an integer.

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

Constructors/assignments with literals.


Member Function Documentation

template<unsigned n>
mln::value::int_s< n >::operator int (  )  const [inline]

Conversion to an integer.

template<unsigned n>
int_s< n > & mln::value::int_s< n >::operator= ( int  i  )  [inline]

Assignment from an integer.


Member Data Documentation

template<unsigned n>
const int_s< n > mln::value::int_s< n >::one = 1 [inline, static]

Unit value.

template<unsigned n>
const int_s< n > mln::value::int_s< n >::zero = 0 [inline, static]

Zero value.


Generated on Tue Jul 14 16:33:20 2009 for Milena (Olena) by  doxygen 1.5.9