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

#include <mln/value/int_u.hh>

Public Member Functions

 int_u ()
 int_u (int i)
C & handle_ ()
int_u< n > next () const
 operator unsigned () const
int operator- () const
int_u< n > & operator= (int i)
const C & to_enc () const
to_equiv () const
to_interop () const
 int_u (const mln::literal::zero_t &)
int_uoperator= (const mln::literal::zero_t &)
 int_u (const mln::literal::one_t &)
int_uoperator= (const mln::literal::one_t &)

Protected Attributes

enc v_

Public Types

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

Protected Types

typedef
internal::encoding_unsigned_
< n >::ret 
enc_

Detailed Description

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

Unsigned integer value class.

The parameter is n the number of encoding bits.

Definition at line 129 of file int_u.hh.

Constructor & Destructor Documentation

template<unsigned n>
mln::value::int_u< n >::int_u ( )
inline

Constructor without argument.

Definition at line 48 of file int_u.hxx.

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

Constructor from an integer.

Definition at line 54 of file int_u.hxx.

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

Constructors/assignments with literals.

Definition at line 63 of file int_u.hxx.

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

Definition at line 79 of file int_u.hxx.

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>
int_u< n > mln::value::int_u< n >::next ( ) const
inline

Give the next value (i.e., i + 1).

Definition at line 122 of file int_u.hxx.

template<unsigned n>
mln::value::int_u< n >::operator unsigned ( ) const
inline

Conversion to an unsigned integer.

Definition at line 95 of file int_u.hxx.

template<unsigned n>
int mln::value::int_u< n >::operator- ( ) const
inline

Unary operator minus.

Definition at line 103 of file int_u.hxx.

template<unsigned n>
int_u< n > & mln::value::int_u< n >::operator= ( const mln::literal::zero_t )
inline

Definition at line 71 of file int_u.hxx.

template<unsigned n>
int_u< n > & mln::value::int_u< n >::operator= ( const mln::literal::one_t )
inline

Definition at line 87 of file int_u.hxx.

template<unsigned n>
int_u< n > & mln::value::int_u< n >::operator= ( int  i)
inline

Assignment from an integer.

Definition at line 111 of file int_u.hxx.

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<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.

Member Typedef Documentation

typedef Integer<void> mln::value::Integer< int_u< 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<unsigned n>
typedef internal::encoding_unsigned_<n>::ret mln::value::int_u< n >::enc_
protected

Encoding associated type.

Definition at line 140 of file int_u.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_u< n > mln::Object< int_u< 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.