aGrUM  0.16.0
exactPolicy.h
Go to the documentation of this file.
1 
30 #ifndef GUM_EXACT_POLICY_H
31 #define GUM_EXACT_POLICY_H
32 #include <agrum/agrum.h>
33 
35 
36 namespace gum {
37 
47  template < typename GUM_SCALAR >
48  class ExactPolicy : public virtual ApproximationPolicy< GUM_SCALAR > {
49  public:
50  // ===========================================================================
52  // ===========================================================================
54 
58  ExactPolicy();
59 
61 
62  // ===========================================================================
64  // ===========================================================================
66 
72  INLINE GUM_SCALAR fromExact(const GUM_SCALAR& value) const;
73 
79 
86 
93 
99 
105 
111 
113  };
114 } // namespace gum
115 
116 
117 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
118 extern template class gum::ExactPolicy< double >;
119 #endif
120 
121 
122 // Always include inlined implementation of template class
124 
125 #endif /* GUM_EXACT_POLICY_H */
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.
Class implementing exact approximation policy (meaning a value is approximate to itself).
Definition: exactPolicy.h:48
void combineDiv(const ApproximationPolicy< GUM_SCALAR > *ap)
Combine using division with the given gum::ApproximationPolicy.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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.