A Variable is a mutable memory cell that holds a value. More...
Public Member Functions | |
virtual const Value & | GetValue () const =0 |
Return the current value. More... | |
virtual void | SetValue (Value &&value)=0 |
Mutate the variable to have the new value. More... | |
virtual PcpMapExpression | GetExpression () const =0 |
Return an expression representing the value of this variable. More... | |
A Variable is a mutable memory cell that holds a value.
Changing a variable's value invalidates any expressions using that variable.
Definition at line 95 of file mapExpression.h.
|
pure virtual |
Return an expression representing the value of this variable.
This lets you use the variable as a sub-term in other expressions.
|
pure virtual |
Return the current value.
|
pure virtual |
Mutate the variable to have the new value.
This will also invalidate dependant expressions.