Public Types | Public Member Functions | Protected Attributes

mln::accu::logic::lor Struct Reference
[On values]

"Logical-or" accumulator. More...

#include <lor.hh>

Inheritance diagram for mln::accu::logic::lor:
Inheritance graph

List of all members.

Public Types

typedef bool argument
typedef Accumulator< void > category
typedef lor exact_t
typedef bool q_result
typedef mln::metal::unqualif
< bool >::ret 
result

Public Member Functions

bool is_valid () const
 Check whether this accu is able to return a result.
 lor ()
bool subj_ ()
void take_as_init (const T &t)
 Take as initialization the value t.
void take_as_init_ (const T &t)
 Default implementation of "take as initialization".
void take_n_times (unsigned n, const T &t)
 Take n times the value t.
void take_n_times_ (unsigned n, const T &t)
 Default implementation of "take n times".
bool to_result () const
 Get the value of the accumulator.

void init ()
 Manipulators.
void take_as_init_ (const argument &t)
void take (const argument &t)
void take (const lor &other)
void untake (const argument &t)
void untake (const lor &other)

Protected Attributes

unsigned ntrue_

Detailed Description

"Logical-or" accumulator.

Definition at line 95 of file accu/logic/lor.hh.


Member Typedef Documentation

Definition at line 97 of file accu/logic/lor.hh.

typedef Accumulator<void> mln::Accumulator< lor >::category [inherited]

Reimplemented from mln::Proxy< lor >.

Definition at line 80 of file accumulator.hh.

typedef lor mln::Object< lor >::exact_t [inherited]

Definition at line 173 of file object.hh.

typedef bool mln::accu::internal::base< bool , lor >::q_result [inherited]

Definition at line 58 of file base.hh.

typedef mln::metal::unqualif< bool >::ret mln::accu::internal::base< bool , lor >::result [inherited]

Definition at line 59 of file base.hh.


Constructor & Destructor Documentation

mln::accu::logic::lor::lor (  )  [inline]

Definition at line 127 of file accu/logic/lor.hh.

References init().


Member Function Documentation

void mln::accu::logic::lor::init (  )  [inline]

Manipulators.

Definition at line 134 of file accu/logic/lor.hh.

References ntrue_.

Referenced by lor().

bool mln::accu::logic::lor::is_valid (  )  const [inline]

Check whether this accu is able to return a result.

Always true here.

Definition at line 183 of file accu/logic/lor.hh.

bool mln::accu::internal::base< bool , lor >::subj_ (  )  [inherited]
void mln::accu::logic::lor::take ( const lor other  )  [inline]

Definition at line 154 of file accu/logic/lor.hh.

References ntrue_.

void mln::accu::logic::lor::take ( const argument t  )  [inline]

Definition at line 146 of file accu/logic/lor.hh.

References ntrue_.

void mln::Accumulator< lor >::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::accu::logic::lor::take_as_init_ ( const argument t  )  [inline]

Definition at line 140 of file accu/logic/lor.hh.

References ntrue_.

void mln::Accumulator< lor >::take_as_init_ ( const T &  t  )  [inherited]

Default implementation of "take as initialization".

void mln::Accumulator< lor >::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 '_').

void mln::Accumulator< lor >::take_n_times_ ( unsigned  n,
const T &  t 
) [inherited]

Default implementation of "take n times".

bool mln::accu::logic::lor::to_result (  )  const [inline]

Get the value of the accumulator.

Definition at line 176 of file accu/logic/lor.hh.

References ntrue_.

void mln::accu::logic::lor::untake ( const argument t  )  [inline]

Definition at line 160 of file accu/logic/lor.hh.

References ntrue_.

void mln::accu::logic::lor::untake ( const lor other  )  [inline]

Definition at line 168 of file accu/logic/lor.hh.

References ntrue_.


Member Data Documentation

unsigned mln::accu::logic::lor::ntrue_ [protected]

Definition at line 121 of file accu/logic/lor.hh.

Referenced by init(), take(), take_as_init_(), to_result(), and untake().