$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::value::int_s< n > Struct Template Reference

#include <mln/value/int_s.hh>

Public Member Functions

 int_s ()
 int_s (int i)
C & handle_ ()
 operator int () const
int_s< n > & operator= (int i)
const C & to_enc () const
to_equiv () const
to_interop () const
 int_s (const mln::literal::zero_t &)
int_soperator= (const mln::literal::zero_t &)
 int_s (const mln::literal::one_t &)
int_soperator= (const mln::literal::one_t &)

Static Public Attributes

static const int_s< n > one
static const int_s< n > zero

Protected Attributes

enc v_

Public Types

typedef Integer< void > category
typedef C enc
typedef V equiv
typedef int_s< n > exact_t
typedef N interop

Detailed Description

template<unsigned n>
struct mln::value::int_s< n >

Signed integer value class.

The parameter is n the number of encoding bits.

Definition at line 118 of file int_s.hh.

Constructor & Destructor Documentation

template<unsigned n>
mln::value::int_s< n >::int_s ( )

Constructor without argument.

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

Constructor from an integer.

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

Constructors/assignments with literals.

template<unsigned n>
mln::value::int_s< n >::int_s ( const mln::literal::one_t )

Member Function Documentation

template<typename V, typename C, typename N, typename E>
C& mln::value::internal::value_like_< V, C, N, E >::handle_ ( )
inlineinherited

Definition at line 81 of file value_like.hh.

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

Conversion to an integer.

template<unsigned n>
int_s& mln::value::int_s< n >::operator= ( const mln::literal::zero_t )
template<unsigned n>
int_s& mln::value::int_s< n >::operator= ( const mln::literal::one_t )
template<unsigned n>
int_s<n>& mln::value::int_s< n >::operator= ( int  i)

Assignment from an integer.

template<typename V, typename C, typename N, typename E>
const C& mln::value::internal::value_like_< V, C, N, E >::to_enc ( ) const
inherited

Explicit conversion towards encoding type.

template<typename V, typename C, typename N, typename E>
V mln::value::internal::value_like_< V, C, N, E >::to_equiv ( ) const
inherited

Explicit conversion towards equivalent type.

template<typename V, typename C, typename N, typename E>
N mln::value::internal::value_like_< V, C, N, E >::to_interop ( ) const
inherited

Explicit conversion towards interoperation type.

Member Data Documentation

template<unsigned n>
const int_s<n> mln::value::int_s< n >::one
static

Unit value.

Definition at line 152 of file int_s.hh.

template<typename V, typename C, typename N, typename E>
enc mln::value::internal::value_like_< V, C, N, E >::v_
protectedinherited

Definition at line 84 of file value_like.hh.

template<unsigned n>
const int_s<n> mln::value::int_s< n >::zero
static

Zero value.

Definition at line 149 of file int_s.hh.

Member Typedef Documentation

typedef Integer<void> mln::value::Integer< int_s< n > >::category
inherited

Definition at line 60 of file concept/integer.hh.

template<typename V, typename C, typename N, typename E>
typedef C mln::value::internal::value_like_< V, C, N, E >::enc
inherited

Encoding associated type.

Definition at line 65 of file value_like.hh.

template<typename V, typename C, typename N, typename E>
typedef V mln::value::internal::value_like_< V, C, N, E >::equiv
inherited

Equivalent associated type.

Definition at line 62 of file value_like.hh.

typedef int_s< n > mln::Object< int_s< n > >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename V, typename C, typename N, typename E>
typedef N mln::value::internal::value_like_< V, C, N, E >::interop
inherited

Interoperation associated type.

Definition at line 68 of file value_like.hh.