#include <sign.hh>
Public Types | |
typedef Scalar< void > | category |
typedef int | enc |
FIXME Are these typedefs correct? | |
typedef int | equiv |
Define the equivalent type. | |
typedef E | exact_t |
Public Member Functions | |
operator int () const | |
Conversion to an integer. | |
sign & | operator= (int i) |
Assignment from an integer. | |
sign (int i) | |
Constructor from an integer. | |
sign () | |
Constructor without argument. | |
int | val_ () const |
Return the value associated to the sign object. | |
sign & | operator= (const mln::literal::one_t &) |
sign & | operator= (const mln::literal::zero_t &) |
sign (const mln::literal::one_t &) | |
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. | |
Protected Attributes | |
int | v_ |
The value. |
Definition at line 49 of file value/sign.hh.
typedef Scalar<void> mln::value::Scalar< E >::category [inherited] |
Reimplemented from mln::Value< E >.
Reimplemented in mln::value::Floating< E >, mln::value::Integer< E >, mln::value::Floating< mln::value::float01 >, mln::value::Floating< mln::value::graylevel_f >, mln::value::Floating< mln::value::float01_< n > >, mln::value::Floating< mln::value::internal::gray_f >, mln::value::Floating< mln::value::float01_f >, mln::value::Integer< mln::value::int_s< n > >, mln::value::Integer< mln::value::int_u_sat< n > >, mln::value::Integer< mln::value::graylevel< n > >, mln::value::Integer< mln::util::object_id< edge_tag, unsigned > >, mln::value::Integer< mln::util::object_id< Tag, V > >, mln::value::Integer< mln::util::object_id< vertex_tag, unsigned > >, and mln::value::Integer< mln::value::int_u< n > >.
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 |
typedef E mln::Object< E >::exact_t [inherited] |
mln::value::sign::sign | ( | ) | [inline] |
mln::value::sign::sign | ( | int | i | ) | [inline] |
mln::value::sign::sign | ( | const mln::literal::zero_t & | ) | [inline] |
Constructors/assignments with literals.
Definition at line 148 of file value/sign.hh.
References v_.
mln::value::sign::sign | ( | const mln::literal::one_t & | ) | [inline] |
mln::value::sign::operator int | ( | ) | const [inline] |
sign & mln::value::sign::operator= | ( | int | i | ) | [inline] |
sign & mln::value::sign::operator= | ( | const mln::literal::one_t & | ) | [inline] |
sign & mln::value::sign::operator= | ( | const mln::literal::zero_t & | ) | [inline] |
int mln::value::sign::val_ | ( | ) | const [inline] |
Return the value associated to the sign object.
Definition at line 124 of file value/sign.hh.
References v_.
Referenced by mln::value::operator<(), mln::value::operator<<(), and mln::value::operator==().
const sign mln::value::sign::one = 1 [static] |
int mln::value::sign::v_ [protected] |
The value.
Definition at line 93 of file value/sign.hh.
Referenced by operator int(), operator=(), sign(), and val_().
const sign mln::value::sign::zero = 0 [static] |