Loading...
Searching...
No Matches
Node Class Referenceabstract

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< NodeClone () 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.
Base class for nodes in the SdfVariableExpression abstract syntax tree.
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
 

Detailed Description

Base class for nodes in the SdfVariableExpression abstract syntax tree.

Definition at line 26 of file variableExpressionAST.h.

Member Function Documentation

◆ As() [1/2]

T * As ( )
inline

Definition at line 55 of file variableExpressionAST.h.

◆ As() [2/2]

const T * As ( ) const
inline

Definition at line 62 of file variableExpressionAST.h.

◆ GetExpression()

SDF_API SdfVariableExpression GetExpression ( ) const

◆ GetExpressionBuilder()

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.


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