aGrUM  0.16.0
and.h
Go to the documentation of this file.
1 
30 #ifndef GUM_AND_AGGREGATOR_H
31 #define GUM_AND_AGGREGATOR_H
32 
34 
35 namespace gum {
36 
37  namespace aggregator {
38  // =========================================================================
39  // === GUM_MAX_AGGREGATOR ===
40  // =========================================================================
41 
54  template < typename GUM_SCALAR >
55  class And : public MultiDimAggregator< GUM_SCALAR > {
56  public:
57  And();
58  And(const And< GUM_SCALAR >& from);
59  virtual ~And();
60 
79 
80  virtual std::string aggregatorName() const;
81 
82  protected:
83  virtual Idx _neutralElt() const;
84  virtual Idx _fold(const DiscreteVariable& v,
85  Idx i1,
86  Idx i2,
87  bool& stop_iteration) const;
88 
89  private:
91  };
92 
93 
94 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
95  extern template class And< double >;
96 #endif
97 
98 
99  } // namespace aggregator
100 } // namespace gum
101 
103 
104 #endif // GUM_AND_AGGREGATOR_H
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
Abstract base class for all multi dimensionnal containers.
<agrum/multidim/aggregators/multiDimAggregator.h>
virtual std::string aggregatorName() const
Definition: and_tpl.h:72
virtual Idx _fold(const DiscreteVariable &v, Idx i1, Idx i2, bool &stop_iteration) const
_fold is applied on value i1 for variable v. the actual result for precedent applications is i2...
Definition: and_tpl.h:59
And aggregator.
Definition: and.h:55
virtual Idx _neutralElt() const
_neutralElt() is the result value for the first application of _fold
Definition: and_tpl.h:54
virtual ~And()
Definition: and_tpl.h:49
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Size Idx
Type for indexes.
Definition: types.h:53
virtual MultiDimContainer< GUM_SCALAR > * newFactory() const
This method creates a clone of this object, withouth its content (including variable), you must use this method if you want to ensure that the generated object has the same type than the object containing the called newFactory()
Definition: and_tpl.h:77