|
A Variable is a mutable memory cell that holds a value. More...
#include <mapExpression.h>
Public Member Functions | |
virtual const Value & | GetValue () const =0 |
Return the current value. | |
virtual void | SetValue (Value &&value)=0 |
Mutate the variable to have the new value. | |
virtual PcpMapExpression | GetExpression () const =0 |
Return an expression representing the value of this variable. | |
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 97 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.