aGrUM  0.16.0
multiDimFunctionGraphProjector.h
Go to the documentation of this file.
1 
31 #ifndef GUM_MULTI_DIM_FUNCTION_GRAPH_PROJECTOR_H
32 #define GUM_MULTI_DIM_FUNCTION_GRAPH_PROJECTOR_H
33 
34 #include <functional>
35 
38 
39 namespace gum {
40 
41  // clang-format off
49  // clang-format on
50  template < typename GUM_SCALAR,
51  template < typename >
52  class FUNCTOR,
53  template < typename > class TerminalNodePolicy =
54  ExactTerminalNodePolicy >
56  public:
57  // ============================================================================
59  // ============================================================================
61 
67  const Set< const DiscreteVariable* >& delVars,
68  const GUM_SCALAR neutral);
69 
74 
76  // ============================================================================
78  // ============================================================================
80 
86 
88 
89  private:
92 
95 
98 
100  const FUNCTOR< GUM_SCALAR > __function;
101 
103  const GUM_SCALAR __neutral;
104  };
105 
106 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
108 #endif
109 
110 } // namespace gum
111 
113 
114 #endif // GUM_MULTI_DIM_FUNCTION_GRAPH_PROJECTOR_H
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * __rd
The resulting function graph.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * __src
One of the two function graphs used for the Projection.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
const FUNCTOR< GUM_SCALAR > __function
The function to be performed on the leaves.
Representation of a setA Set is a structure that contains arbitrary elements.
Definition: set.h:165
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * project()
Computes and builds the Function Graph that is the result of the Projection.
const GUM_SCALAR __neutral
The function to be performed on the leaves.
Class implementingting a function graph.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
const Set< const DiscreteVariable *> & __delVars
The list of variables on which the projection is performed.
MultiDimFunctionGraphProjector(const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *src, const Set< const DiscreteVariable * > &delVars, const GUM_SCALAR neutral)
Default constructor.
Class used to perform Function Graph projections.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.