aGrUM  0.16.0
exactPolicy_tpl.h
Go to the documentation of this file.
1 
31 // To help IDE Parsers
33 
34 namespace gum {
35 
36  // Default constructor.
37  template < typename GUM_SCALAR >
39 
40  // @brief Convert value to approximation representation.
41  template < typename GUM_SCALAR >
42  INLINE GUM_SCALAR
43  ExactPolicy< GUM_SCALAR >::fromExact(const GUM_SCALAR& value) const {
44  return value;
45  }
46 
47  // @brief Combine using addition with the given gum::ApproximationPolicy.
48  template < typename GUM_SCALAR >
51 
52  // @brief Combine using substraction with the given
53  // gum::ApproximationPolicy.
54  template < typename GUM_SCALAR >
57 
58  // @brief Combine using multiplication with the given
59  // gum::ApproximationPolicy.
60  template < typename GUM_SCALAR >
63 
64  // @brief Combine using division with the given gum::ApproximationPolicy.
65  template < typename GUM_SCALAR >
68 
69  // @brief Combine using max with the given gum::ApproximationPolicy.
70  template < typename GUM_SCALAR >
73 
74  // @brief Combine using min with the given gum::ApproximationPolicy.
75  template < typename GUM_SCALAR >
78 
79 } // namespace gum
void combineMult(const ApproximationPolicy< GUM_SCALAR > *ap)
Combine using multiplication with the given gum::ApproximationPolicy.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
void combineMax(const ApproximationPolicy< GUM_SCALAR > *ap)
Combine using max with the given gum::ApproximationPolicy.
void combineMin(const ApproximationPolicy< GUM_SCALAR > *ap)
Combine using min with the given gum::ApproximationPolicy.
INLINE GUM_SCALAR fromExact(const GUM_SCALAR &value) const
Convert value to approximation representation.
void combineDiv(const ApproximationPolicy< GUM_SCALAR > *ap)
Combine using division with the given gum::ApproximationPolicy.
void combineAdd(const ApproximationPolicy< GUM_SCALAR > *ap)
Combine using addition with the given gum::ApproximationPolicy.
void combineSub(const ApproximationPolicy< GUM_SCALAR > *ap)
Combine using substraction with the given gum::ApproximationPolicy.
Mother class for all approximation policy classes.
ExactPolicy()
Default constructor.