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