26 #ifndef MLN_ACCU_LOGIC_LAND_BASIC_HH
27 # define MLN_ACCU_LOGIC_LAND_BASIC_HH
35 # include <mln/core/concept/meta_accumulator.hh>
36 # include <mln/accu/internal/base.hh>
56 struct accumulator_< accu::logic::land_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;
99 struct land_basic :
public mln::accu::internal::base< bool, land_basic >
101 typedef bool argument;
108 void take_as_init_(
const argument& t);
110 void take(
const argument& t);
130 # ifndef MLN_INCLUDE_ONLY
133 land_basic::land_basic()
146 void land_basic::take_as_init_(
const argument& t)
152 void land_basic::take(
const argument& t)
154 if (res_ ==
true && t ==
false)
160 land_basic::take(
const land_basic& other)
162 res_ = res_ && other.res_;
183 return res_ ==
false;
186 # endif // ! MLN_INCLUDE_ONLY
193 #endif // ! MLN_ACCU_LOGIC_LAND_BASIC_HH