$extrastylesheet
#include <mln/value/sign.hh>
Public Member Functions | |
sign () | |
sign (int i) | |
operator int () const | |
sign & | operator= (int i) |
int | val_ () const |
sign (const mln::literal::zero_t &) | |
sign & | operator= (const mln::literal::zero_t &) |
sign (const mln::literal::one_t &) | |
sign & | operator= (const mln::literal::one_t &) |
Static Public Attributes | |
static const sign | one |
static const sign | zero |
Protected Attributes | |
int | v_ |
Public Types | |
typedef Scalar< void > | category |
typedef int | enc |
typedef int | equiv |
typedef sign | exact_t |
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.
Definition at line 49 of file value/sign.hh.
mln::value::sign::sign | ( | ) |
Constructor without argument.
mln::value::sign::sign | ( | int | i | ) |
Constructor from an integer.
mln::value::sign::sign | ( | const mln::literal::zero_t & | ) |
Constructors/assignments with literals.
mln::value::sign::sign | ( | const mln::literal::one_t & | ) |
mln::value::sign::operator int | ( | ) | const |
Conversion to an integer.
sign& mln::value::sign::operator= | ( | const mln::literal::zero_t & | ) |
sign& mln::value::sign::operator= | ( | const mln::literal::one_t & | ) |
int mln::value::sign::val_ | ( | ) | const |
Return the value associated to the sign object.
|
static |
Unit value.
Definition at line 88 of file value/sign.hh.
|
protected |
The value.
Definition at line 93 of file value/sign.hh.
|
static |
Zero value.
Definition at line 85 of file value/sign.hh.
|
inherited |
Definition at line 57 of file concept/scalar.hh.
typedef int mln::value::sign::enc |
FIXME Are these typedefs correct?
Define the encoding type
Definition at line 55 of file value/sign.hh.
typedef int mln::value::sign::equiv |
Define the equivalent type.
Definition at line 58 of file value/sign.hh.