Enzo
Loading...
Searching...
No Matches
enzo::expr::ExpressionContext Class Reference

The world a single expression evaluation reads and writes to. More...

#include <ExpressionContext.h>

Public Member Functions

 ExpressionContext (nt::OpId currentOp)
 
nt::OpId currentOp () const
 The node a relative parameter path resolves against.
 
void recordExpressionDependency (const nt::Unit &dependency) const
 Notes a parameter the expression read, so it becomes a dependency.
 
const std::vector< nt::Unit > & getExpressionDependencies () const
 Every parameter the expression read during this evaluation.
 

Detailed Description

The world a single expression evaluation reads and writes to.

One of these lives for the span of one evaluation.

Parameter functions like prm() take a path that may be relative, so they need to know which node the expression belongs to.

It also keeps track of dependencies, like other parameters. Once all the dependencies are known they are passed to the network graph at once, so it can use them for tracking updates.


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