![]() |
|
Base class for nodes in the SdfVariableExpression abstract syntax tree. More...
#include <variableExpressionAST.h>
Inheritance diagram for Node:Public Member Functions | |
| SDF_API std::unique_ptr< Node > | Clone () const |
| SDF_API SdfVariableExpression | GetExpression () const |
| Return SdfVariableExpression for this node. | |
| SDF_API SdfVariableExpression::Builder | GetExpressionBuilder () const |
| Return SdfVariableExpression::Builder for this node. | |
Node Casts | |
Return a pointer to this node as the specified type or nullptr if this node does not represent that type. using namespace SdfVariableExpressionASTNodes;
Node* n = ...;
FunctionNode* fnNode = n->As<FunctionNode>();
if (fnNode) { /* node represents a function */ }
Abstract syntax tree node representing a function call. Definition: variableExpressionAST.h:219 Base class for nodes in the SdfVariableExpression abstract syntax tree. Definition: variableExpressionAST.h:27 | |
| template<class T > | |
| T * | As () |
| template<class T > | |
| const T * | As () const |
Protected Member Functions | |
| virtual Node * | _Clone () const =0 |
| virtual SdfVariableExpression::Builder | _GetExpressionBuilder () const =0 |
Base class for nodes in the SdfVariableExpression abstract syntax tree.
Definition at line 26 of file variableExpressionAST.h.
|
inline |
Definition at line 55 of file variableExpressionAST.h.
|
inline |
Definition at line 62 of file variableExpressionAST.h.
| SDF_API SdfVariableExpression GetExpression | ( | ) | const |
Return SdfVariableExpression for this node.
| SDF_API SdfVariableExpression::Builder GetExpressionBuilder | ( | ) | const |
Return SdfVariableExpression::Builder for this node.
This can be used when creating expressions using the various SdfVariableExpression API for building expressions without incurring extra overhead from parsing into an SdfVariableExpression.