All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PcpMapExpression::Variable Class Referenceabstract

#include <mapExpression.h>

Public Member Functions

 Variable ()=default
virtual ~Variable ()
virtual const ValueGetValue () const =0
 Return the current value. More...
virtual void SetValue (Value &&value)=0
virtual PcpMapExpression GetExpression () const =0

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.

Constructor & Destructor Documentation

PcpMapExpression::Variable::Variable ( )
virtual PcpMapExpression::Variable::~Variable ( )

Member Function Documentation

virtual PcpMapExpression PcpMapExpression::Variable::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.

virtual const Value& PcpMapExpression::Variable::GetValue ( ) const
pure virtual

Return the current value.

virtual void PcpMapExpression::Variable::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: