$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::value::sign Class Reference

#include <mln/value/sign.hh>

Public Member Functions

 sign ()
 sign (int i)
 operator int () const
signoperator= (int i)
int val_ () const
 sign (const mln::literal::zero_t &)
signoperator= (const mln::literal::zero_t &)
 sign (const mln::literal::one_t &)
signoperator= (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

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.

Definition at line 49 of file value/sign.hh.

Constructor & Destructor Documentation

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 )

Member Function Documentation

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 )
sign& mln::value::sign::operator= ( int  i)

Assignment from an integer.

int mln::value::sign::val_ ( ) const

Return the value associated to the sign object.

Member Data Documentation

const sign mln::value::sign::one
static

Unit value.

Definition at line 88 of file value/sign.hh.

int mln::value::sign::v_
protected

The value.

Definition at line 93 of file value/sign.hh.

const sign mln::value::sign::zero
static

Zero value.

Definition at line 85 of file value/sign.hh.

Member Typedef Documentation

typedef Scalar<void> mln::value::Scalar< sign >::category
inherited

Definition at line 57 of file concept/scalar.hh.

FIXME Are these typedefs correct?

Define the encoding type

Definition at line 55 of file value/sign.hh.

Define the equivalent type.

Definition at line 58 of file value/sign.hh.

typedef sign mln::Object< sign >::exact_t
inherited

Definition at line 105 of file object.hh.