26 #ifndef MLN_ACCU_LOGIC_LOR_BASIC_HH
27 # define MLN_ACCU_LOGIC_LOR_BASIC_HH
35 # include <mln/core/concept/meta_accumulator.hh>
36 # include <mln/accu/internal/base.hh>
56 struct accumulator_< accu::logic::lor_basic >
58 typedef accumulator::has_untake::no has_untake;
59 typedef accumulator::has_set_value::no has_set_value;
60 typedef accumulator::has_stop::yes has_stop;
61 typedef accumulator::when_pix::use_v when_pix;
98 struct lor_basic :
public mln::accu::internal::base< bool, lor_basic >
100 typedef bool argument;
107 void take_as_init_(
const argument& t);
109 void take(
const argument& t);
129 # ifndef MLN_INCLUDE_ONLY
132 lor_basic::lor_basic()
145 void lor_basic::take_as_init_(
const argument& t)
151 void lor_basic::take(
const argument& t)
153 if (res_ ==
false && t ==
true)
159 lor_basic::take(
const lor_basic& other)
161 res_ = res_ || other.res_;
185 # endif // ! MLN_INCLUDE_ONLY
192 #endif // ! MLN_ACCU_LOGIC_LOR_BASIC_HH