31 #include <agrum/tools/multidim/aggregators/and.h> 35 namespace aggregator {
36 template <
typename GUM_SCALAR >
37 INLINE And< GUM_SCALAR >::And() : MultiDimAggregator< GUM_SCALAR >() {
38 this->decomposable_ =
true;
42 template <
typename GUM_SCALAR >
43 INLINE And< GUM_SCALAR >::And(
const And< GUM_SCALAR >& from) :
44 MultiDimAggregator< GUM_SCALAR >(from) {
48 template <
typename GUM_SCALAR >
49 INLINE And< GUM_SCALAR >::~And() {
53 template <
typename GUM_SCALAR >
54 INLINE Idx And< GUM_SCALAR >::neutralElt_()
const {
58 template <
typename GUM_SCALAR >
59 INLINE Idx And< GUM_SCALAR >::fold_(
const DiscreteVariable& v,
62 bool& stop_iteration)
const {
66 stop_iteration =
true;
71 template <
typename GUM_SCALAR >
72 INLINE std::string And< GUM_SCALAR >::aggregatorName()
const {
73 return std::string(
"and");
76 template <
typename GUM_SCALAR >
77 INLINE MultiDimContainer< GUM_SCALAR >* And< GUM_SCALAR >::newFactory()
const {
78 return new And< GUM_SCALAR >();