Lines Matching refs:ExpressionValue
34 class ExpressionValue; variable
93 Expected<std::string> getMatchingString(ExpressionValue Value) const;
99 Expected<ExpressionValue> valueFromStringRepr(StringRef StrVal,
117 class ExpressionValue {
124 explicit ExpressionValue(T Val) : Value(Val), Negative(Val < 0) {} in ExpressionValue() function
126 bool operator==(const ExpressionValue &Other) const {
130 bool operator!=(const ExpressionValue &Other) const {
150 ExpressionValue getAbsolute() const;
155 Expected<ExpressionValue> operator+(const ExpressionValue &Lhs,
156 const ExpressionValue &Rhs);
157 Expected<ExpressionValue> operator-(const ExpressionValue &Lhs,
158 const ExpressionValue &Rhs);
159 Expected<ExpressionValue> operator*(const ExpressionValue &Lhs,
160 const ExpressionValue &Rhs);
161 Expected<ExpressionValue> operator/(const ExpressionValue &Lhs,
162 const ExpressionValue &Rhs);
163 Expected<ExpressionValue> max(const ExpressionValue &Lhs,
164 const ExpressionValue &Rhs);
165 Expected<ExpressionValue> min(const ExpressionValue &Lhs,
166 const ExpressionValue &Rhs);
182 virtual Expected<ExpressionValue> eval() const = 0;
198 ExpressionValue Value;
206 Expected<ExpressionValue> eval() const override { return Value; } in eval()
266 Optional<ExpressionValue> Value;
293 Optional<ExpressionValue> getValue() const { return Value; } in getValue()
305 void setValue(ExpressionValue NewValue,
334 Expected<ExpressionValue> eval() const override;
344 using binop_eval_t = Expected<ExpressionValue> (*)(const ExpressionValue &,
345 const ExpressionValue &);
372 Expected<ExpressionValue> eval() const override;