Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
VariableNode Struct Reference

#include <ored/scripting/ast.hpp>

+ Inheritance diagram for VariableNode:
+ Collaboration diagram for VariableNode:

Public Member Functions

 VariableNode (const std::string &name, const std::vector< ASTNodePtr > &args={})
 
void accept (AcyclicVisitor &) override
 
- Public Member Functions inherited from ASTNode
 ASTNode ()
 
virtual ~ASTNode ()
 
 ASTNode (const std::vector< ASTNodePtr > &args, const Size minArgs, const Size maxArgs=Null< Size >())
 
virtual void accept (AcyclicVisitor &)
 

Public Attributes

const std::string name
 
bool isCached = false
 
bool isScalar = false
 
ValueTypecachedScalar = nullptr
 
std::vector< ValueType > * cachedVector = nullptr
 
- Public Attributes inherited from ASTNode
LocationInfo locationInfo
 
std::vector< ASTNodePtrargs
 

Detailed Description

Definition at line 227 of file ast.hpp.

Constructor & Destructor Documentation

◆ VariableNode()

VariableNode ( const std::string &  name,
const std::vector< ASTNodePtr > &  args = {} 
)

Definition at line 228 of file ast.hpp.

228{}) : ASTNode(args, 0, 1), name(name) {}
std::vector< ASTNodePtr > args
Definition: ast.hpp:64
const std::string name
Definition: ast.hpp:230

Member Function Documentation

◆ accept()

void accept ( AcyclicVisitor &  v)
overridevirtual

Reimplemented from ASTNode.

Definition at line 304 of file ast.cpp.

304 {
305 auto v1 = dynamic_cast<Visitor<VariableNode>*>(&v);
306 if (v1 != nullptr)
307 v1->visit(*this);
308 else
310}
virtual void accept(AcyclicVisitor &)
Definition: ast.cpp:48
+ Here is the call graph for this function:

Member Data Documentation

◆ name

const std::string name

Definition at line 230 of file ast.hpp.

◆ isCached

bool isCached = false

Definition at line 232 of file ast.hpp.

◆ isScalar

bool isScalar = false

Definition at line 232 of file ast.hpp.

◆ cachedScalar

ValueType* cachedScalar = nullptr

Definition at line 233 of file ast.hpp.

◆ cachedVector

std::vector<ValueType>* cachedVector = nullptr

Definition at line 234 of file ast.hpp.