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

#include <mln/accu/label_used.hh>

Public Member Functions

 label_used ()
void init ()
bool is_valid () const
const fun::i2v::array< bool > & subj_ ()
void take_as_init (const T &t)
void take_as_init_ (const T &t)
void take_n_times (unsigned n, const T &t)
void take_n_times_ (unsigned n, const T &t)
const fun::i2v::array< bool > & to_result () const
void take (const argument &)
void take (const label_used< L > &other)

Protected Attributes

fun::i2v::array< boollabel_used_

Public Types

typedef L argument
typedef Accumulator< void > category
typedef label_used< L > exact_t
typedef const fun::i2v::array
< bool > & 
q_result
typedef mln::metal::unqualif
< const fun::i2v::array< bool >
& >::ret 
result

Detailed Description

template<typename L>
struct mln::accu::label_used< L >

References all the labels used.

The parameter L is the label type.

Definition at line 53 of file label_used.hh.

Constructor & Destructor Documentation

template<typename L>
mln::accu::label_used< L >::label_used ( )

Member Function Documentation

template<typename L>
void mln::accu::label_used< L >::init ( )

Initialize accumulator attributes.

template<typename L>
bool mln::accu::label_used< L >::is_valid ( ) const

Check whether this accu is able to return a result.

Always true here.

const fun::i2v::array< bool > & mln::accu::internal::base< const fun::i2v::array< bool > & , label_used< L > >::subj_ ( )
inherited
template<typename L>
void mln::accu::label_used< L >::take ( const argument )

Manipulators.

template<typename L>
void mln::accu::label_used< L >::take ( const label_used< L > &  other)
void mln::Accumulator< label_used< L > >::take_as_init ( const T t)
inherited

Take as initialization the value t.

void mln::Accumulator< label_used< L > >::take_as_init_ ( const T t)
inherited

INTERNAL_API

Default implementation of "take as initialization".

void mln::Accumulator< label_used< L > >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

void mln::Accumulator< label_used< L > >::take_n_times_ ( unsigned  n,
const T t 
)
inherited

INTERNAL_API

Default implementation of "take n times".

template<typename L>
const fun::i2v::array<bool>& mln::accu::label_used< L >::to_result ( ) const

Get the value of the accumulator.

Member Data Documentation

template<typename L>
fun::i2v::array<bool> mln::accu::label_used< L >::label_used_
protected

True if a label is used.

Definition at line 77 of file label_used.hh.

Member Typedef Documentation

template<typename L>
typedef L mln::accu::label_used< L >::argument

Definition at line 55 of file label_used.hh.

typedef Accumulator<void> mln::Accumulator< label_used< L > >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef label_used< L > mln::Object< label_used< L > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef const fun::i2v::array< bool > & mln::accu::internal::base< const fun::i2v::array< bool > & , label_used< L > >::q_result
inherited

Definition at line 58 of file base.hh.

typedef mln::metal::unqualif< const fun::i2v::array< bool > & >::ret mln::accu::internal::base< const fun::i2v::array< bool > & , label_used< L > >::result
inherited

Definition at line 59 of file base.hh.