mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
ExpressionParser: expose ExpressionNode directly
This commit is contained in:
parent
85301e2bae
commit
7e74961eb1
3 changed files with 26 additions and 64 deletions
|
@ -47,16 +47,14 @@ private:
|
|||
bool is_input;
|
||||
};
|
||||
|
||||
class ExpressionNode;
|
||||
class Expression
|
||||
{
|
||||
public:
|
||||
explicit Expression(std::unique_ptr<ExpressionNode>&& node = {});
|
||||
~Expression();
|
||||
ControlState GetValue() const;
|
||||
void SetValue(ControlState state);
|
||||
int num_controls;
|
||||
std::unique_ptr<ExpressionNode> node;
|
||||
virtual ~Expression() = default;
|
||||
virtual ControlState GetValue() const = 0;
|
||||
virtual void SetValue(ControlState state) = 0;
|
||||
virtual int CountNumControls() const = 0;
|
||||
virtual operator std::string() const = 0;
|
||||
};
|
||||
|
||||
enum class ParseStatus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue