SeExpr
|
A class that lets you register for the variables used by one or more expressions. More...
#include <VarBlock.h>
Classes | |
class | Ref |
Internally implemented var ref used by SeExpr. More... | |
Public Member Functions | |
int | registerVariable (const std::string &name, const ExprType type) |
Register a variable and return a handle. More... | |
VarBlock | create () |
Get an evaluation handle (one needed per thread) More... | |
ExprVarRef * | resolveVar (const std::string &name) const |
Resolve the variable using anything in the data block (call from resolveVar in Expr subclass) More... | |
Private Attributes | |
int | _nextOffset = 0 |
std::map< std::string, Ref > | _vars |
A class that lets you register for the variables used by one or more expressions.
Definition at line 71 of file VarBlock.h.
|
inline |
Get an evaluation handle (one needed per thread)
Definition at line 100 of file VarBlock.h.
References _nextOffset.
Referenced by f().
|
inline |
Register a variable and return a handle.
Definition at line 88 of file VarBlock.h.
References _nextOffset, _vars, and SeExpr2::ExprType::dim().
Referenced by f().
|
inline |
Resolve the variable using anything in the data block (call from resolveVar in Expr subclass)
Definition at line 103 of file VarBlock.h.
|
private |
Definition at line 110 of file VarBlock.h.
Referenced by create(), and registerVariable().
Definition at line 111 of file VarBlock.h.
Referenced by registerVariable(), and resolveVar().