mln::value::sign Class Reference

The sign class represents the value type composed by the set (-1, 0, 1) sign value type is a subset of the int value type. More...

#include <sign.hh>

Inherits Integer< sign >.

List of all members.

Public Types

typedef int enc
 FIXME Are these typedefs correct?
typedef int equiv
 Define the equivalent type.

Public Member Functions

 operator int () const
 Conversion to an integer.
signoperator= (int i)
 Assignment from an integer.
 sign (int i)
 Constructor from an integer.
 sign ()
 Constructor without argument.
 sign (const mln::literal::zero_t &)
 Constructors/assignments with literals.

Static Public Attributes

static const sign one = 1
 Unit value.
static const sign zero = 0
 Zero value.


Detailed Description

The sign class represents the value type composed by the set (-1, 0, 1) sign value type is a subset of the int value type.

Member Typedef Documentation

typedef int mln::value::sign::enc

FIXME Are these typedefs correct?

Define the encoding type

Define the equivalent type.


Constructor & Destructor Documentation

mln::value::sign::sign (  )  [inline]

Constructor without argument.

mln::value::sign::sign ( int  i  )  [inline]

Constructor from an integer.

mln::value::sign::sign ( const mln::literal::zero_t  )  [inline]

Constructors/assignments with literals.


Member Function Documentation

mln::value::sign::operator int (  )  const [inline]

Conversion to an integer.

sign & mln::value::sign::operator= ( int  i  )  [inline]

Assignment from an integer.


Member Data Documentation

const sign mln::value::sign::one = 1 [static]

Unit value.

const sign mln::value::sign::zero = 0 [static]

Zero value.


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