Lines Matching refs:ExpressionValue
34 class ExpressionValue; variable
97 Expected<std::string> getMatchingString(ExpressionValue Value) const;
103 Expected<ExpressionValue> valueFromStringRepr(StringRef StrVal,
121 class ExpressionValue {
128 explicit ExpressionValue(T Val) : Value(Val), Negative(Val < 0) {} in ExpressionValue() function
130 bool operator==(const ExpressionValue &Other) const {
134 bool operator!=(const ExpressionValue &Other) const {
154 ExpressionValue getAbsolute() const;
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> operator*(const ExpressionValue &Lhs,
164 const ExpressionValue &Rhs);
165 Expected<ExpressionValue> operator/(const ExpressionValue &Lhs,
166 const ExpressionValue &Rhs);
167 Expected<ExpressionValue> max(const ExpressionValue &Lhs,
168 const ExpressionValue &Rhs);
169 Expected<ExpressionValue> min(const ExpressionValue &Lhs,
170 const ExpressionValue &Rhs);
186 virtual Expected<ExpressionValue> eval() const = 0;
202 ExpressionValue Value;
210 Expected<ExpressionValue> eval() const override { return Value; } in eval()
269 Optional<ExpressionValue> Value;
296 Optional<ExpressionValue> getValue() const { return Value; } in getValue()
308 void setValue(ExpressionValue NewValue,
337 Expected<ExpressionValue> eval() const override;
347 using binop_eval_t = Expected<ExpressionValue> (*)(const ExpressionValue &,
348 const ExpressionValue &);
375 Expected<ExpressionValue> eval() const override;