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

#include <mln/value/label.hh>

Public Member Functions

 label ()
 label (unsigned i)
 label (const literal::zero_t &v)
C & handle_ ()
label< n > next () const
 operator unsigned () const
label< n > & operator++ ()
label< n > & operator-- ()
label< n > & operator= (unsigned i)
label< n > & operator= (const literal::zero_t &v)
label< n > prev () const
const C & to_enc () const
to_equiv () const
to_interop () const

Protected Attributes

enc v_

Public Types

typedef Symbolic< void > category
typedef
internal::encoding_unsigned_
< n >::ret 
enc
typedef V equiv
typedef label< n > exact_t
typedef N interop

Related Functions

(Note that these are not member functions.)

typedef label< 32 > label_32

Detailed Description

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

Label value class.

The parameter n is the number of encoding bits.

Definition at line 106 of file label.hh.

Constructor & Destructor Documentation

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

Constructor without argument.

template<unsigned n>
mln::value::label< n >::label ( unsigned  i)

Constructor from an (unsigned) integer.

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

Constructor from literal::zero.

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

Return the next value.

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

Conversion to an unsigned integer.

template<unsigned n>
label<n>& mln::value::label< n >::operator++ ( )

Self increment.

template<unsigned n>
label<n>& mln::value::label< n >::operator-- ( )

Self decrement.

template<unsigned n>
label<n>& mln::value::label< n >::operator= ( unsigned  i)

Assignment from an (unsigned) integer.

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

Assignment from literal::zero.

template<unsigned n>
label<n> mln::value::label< n >::prev ( ) const

Return the previous value.

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 Symbolic<void> mln::value::Symbolic< label< n > >::category
inherited

Definition at line 64 of file symbolic.hh.

template<unsigned n>
typedef internal::encoding_unsigned_<n>::ret mln::value::label< n >::enc

Encoding associated type.

Definition at line 116 of file label.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 label< n > mln::Object< label< 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.