Public Member Functions

mln::accu::label_used< L > Struct Template Reference
[On values]

References all the labels used. More...

#include <label_used.hh>

Inherits base< const fun::i2v::array< bool > &, label_used< L > >.

List of all members.

Public Member Functions

void init ()
 Initialize accumulator attributes.
bool is_valid () const
 Check whether this accu is able to return a result.
void take_as_init (const T &t)
 Take as initialization the value t.
void take_n_times (unsigned n, const T &t)
 Take n times the value t.
const fun::i2v::array< bool > & to_result () const
 Get the value of the accumulator.

void take (const argument &)
 Manipulators.

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.


Member Function Documentation

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

Initialize accumulator attributes.

Definition at line 110 of file label_used.hh.

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

Check whether this accu is able to return a result.

Always true here.

Definition at line 150 of file label_used.hh.

template<typename L >
void mln::accu::label_used< L >::take ( const argument &  l  )  [inline]

Manipulators.

Definition at line 118 of file label_used.hh.

void mln::Accumulator< label_used< L > >::take_as_init ( const T &  t  )  [inherited]

Take as initialization the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

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

Take n times the value t.

Dev note: this is a final method; override if needed by take_as_init_ (ending with '_').

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

Get the value of the accumulator.

Definition at line 142 of file label_used.hh.