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

#include <mln/accu/tuple.hh>

Public Member Functions

 tuple ()
bool is_valid () const
boost::tuple< BOOST_PP_REPEAT(10,
RESULT_ACCU, Le Ricard ya que
ca de vrai!) > 
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)
res to_result () const
void init ()
void take_as_init_ (const argument &t)
void take (const argument &t)
void take (const tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> &other)

Protected Attributes

intern a_

Public Types

typedef A argument
typedef Accumulator< void > category
typedef tuple< A, n,
BOOST_PP_ENUM_PARAMS(10, T)> 
exact_t
typedef boost::tuple
< BOOST_PP_ENUM_PARAMS(10, T)> 
intern
typedef boost::tuple
< BOOST_PP_REPEAT(10,
RESULT_ACCU, Le Ricard ya que
ca de vrai!) > 
q_result
typedef boost::tuple
< BOOST_PP_REPEAT(10,
RESULT_ACCU, Le Ricard ya que
ca de vrai!)> 
res
typedef mln::metal::unqualif
< boost::tuple
< BOOST_PP_REPEAT(10,
RESULT_ACCU, Le Ricard ya que
ca de vrai!) > >::ret 
result
typedef tuple< A, n,
BOOST_PP_ENUM_PARAMS(10, T)> 
self

Detailed Description

template<typename A, unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type)>
struct mln::accu::tuple< A, n, >

Generic tuple of accumulators.

The parameter T is the type of values.

Definition at line 74 of file tuple.hh.

Constructor & Destructor Documentation

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
mln::accu::tuple< A, n, >::tuple ( )

Member Function Documentation

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
void mln::accu::tuple< A, n, >::init ( )

Manipulators.

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
bool mln::accu::tuple< A, n, >::is_valid ( ) const

Check whether this accu is able to return a result.

Always true here.

boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > mln::accu::internal::base< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > , tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::subj_ ( )
inherited
template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
void mln::accu::tuple< A, n, >::take ( const argument t)
template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
void mln::accu::tuple< A, n, >::take ( const tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> &  other)
void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_as_init ( const T t)
inherited

Take as initialization the value t.

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
void mln::accu::tuple< A, n, >::take_as_init_ ( const argument t)
void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_as_init_ ( const T t)
inherited

INTERNAL_API

Default implementation of "take as initialization".

void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

void mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::take_n_times_ ( unsigned  n,
const T t 
)
inherited

INTERNAL_API

Default implementation of "take n times".

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
res mln::accu::tuple< A, n, >::to_result ( ) const

Get the value of the accumulator.

Member Data Documentation

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
intern mln::accu::tuple< A, n, >::a_
protected

Definition at line 102 of file tuple.hh.

Member Typedef Documentation

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
typedef A mln::accu::tuple< A, n, >::argument

Definition at line 77 of file tuple.hh.

typedef Accumulator<void> mln::Accumulator< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> mln::Object< tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::exact_t
inherited

Definition at line 105 of file object.hh.

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
typedef boost::tuple< BOOST_PP_ENUM_PARAMS(10, T)> mln::accu::tuple< A, n, >::intern

Definition at line 80 of file tuple.hh.

typedef boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > mln::accu::internal::base< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > , tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::q_result
inherited

Definition at line 58 of file base.hh.

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
typedef boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai !)> mln::accu::tuple< A, n, >::res

Definition at line 79 of file tuple.hh.

typedef mln::metal::unqualif< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > >::ret mln::accu::internal::base< boost::tuple< BOOST_PP_REPEAT(10, RESULT_ACCU, Le Ricard ya que ca de vrai!) > , tuple< A, n, BOOST_PP_ENUM_PARAMS(10, T)> >::result
inherited

Definition at line 59 of file base.hh.

template<typename A , unsigned n, BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(10, typename T, boost::tuples::null_type) >
typedef tuple<A, n, BOOST_PP_ENUM_PARAMS(10, T)> mln::accu::tuple< A, n, >::self

Definition at line 81 of file tuple.hh.