PcpMapExpression::Variable Class Referenceabstract

A Variable is a mutable memory cell that holds a value. More...

Public Member Functions

virtual const ValueGetValue () 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...
 

Detailed Description

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 96 of file mapExpression.h.

Member Function Documentation

◆ GetExpression()

virtual PcpMapExpression GetExpression ( ) const
pure virtual

Return an expression representing the value of this variable.

This lets you use the variable as a sub-term in other expressions.

◆ GetValue()

virtual const Value& GetValue ( ) const
pure virtual

Return the current value.

◆ SetValue()

virtual void SetValue ( Value &&  value)
pure virtual

Mutate the variable to have the new value.

This will also invalidate dependant expressions.


The documentation for this class was generated from the following file: