Loading...
Searching...
No Matches
LiteralNode Class Reference

Abstract syntax tree node representing a literal value. More...

#include <variableExpressionAST.h>

+ Inheritance diagram for LiteralNode:

Friends

class _NodeCreator
 

Value

using LiteralValue = std::variant< std::monostate, bool, int64_t, std::string >
 Variant representing possible literal value types.
 
const LiteralValueGetValue () const
 
void SetValue (const LiteralValue &value)
 

Additional Inherited Members

- Public Member Functions inherited from Node
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.
 
template<class T >
T * As ()
 
template<class T >
const T * As () const
 
virtual Node_Clone () const =0
 
virtual SdfVariableExpression::Builder _GetExpressionBuilder () const =0
 

Detailed Description

Abstract syntax tree node representing a literal value.

Definition at line 124 of file variableExpressionAST.h.

Member Typedef Documentation

◆ LiteralValue

using LiteralValue = std::variant< std::monostate, bool, int64_t, std::string >

Variant representing possible literal value types.

std::monostate represents the special "None" value.

Definition at line 133 of file variableExpressionAST.h.

Member Function Documentation

◆ GetValue()

const LiteralValue & GetValue ( ) const
inline

Definition at line 138 of file variableExpressionAST.h.

◆ SetValue()

void SetValue ( const LiteralValue value)
inline

Definition at line 139 of file variableExpressionAST.h.

Friends And Related Function Documentation

◆ _NodeCreator

friend class _NodeCreator
friend

Definition at line 144 of file variableExpressionAST.h.


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