AffExpr

Doxygen

template<class KeyT = idol::Var, class ValueT = double>
class AffExpr

Public Functions

AffExpr()
AffExpr(ValueT t_constant)
AffExpr(const KeyT &t_key)
AffExpr(LinExpr<KeyT> t_expr)
virtual ~AffExpr() = default
AffExpr(const AffExpr &t_src) = default
AffExpr(AffExpr&&) noexcept = default
AffExpr &operator=(const AffExpr &t_rhs) = default
AffExpr &operator=(AffExpr&&) noexcept = default
AffExpr &operator+=(const AffExpr &t_rhs)
AffExpr &operator-=(const AffExpr &t_rhs)
AffExpr &operator*=(double t_rhs)
AffExpr &operator/=(double t_rhs)
AffExpr operator-() const
inline LinExpr<KeyT, ValueT> &linear()
inline const LinExpr<KeyT, ValueT> &linear() const
inline ValueT &constant()
inline const ValueT &constant() const
inline bool is_zero(double t_tolerance) const
inline void clear()

Public Static Attributes

static const AffExpr<KeyT, ValueT> Zero = {}