Add equals operation to simpleexpressionvalue to check if an expression is the same as another one

This commit is contained in:
Jan
2021-12-27 14:15:44 +01:00
parent cc88fb0a5a
commit 245a2ed642
11 changed files with 73 additions and 0 deletions

View File

@ -14,6 +14,7 @@ public:
ISimpleExpression& operator=(const ISimpleExpression& other) = default;
ISimpleExpression& operator=(ISimpleExpression&& other) noexcept = default;
_NODISCARD virtual bool Equals(const ISimpleExpression* other) const = 0;
_NODISCARD virtual bool IsStatic() const = 0;
_NODISCARD virtual SimpleExpressionValue Evaluate() const = 0;
};