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

#include <ored/scripting/ast.hpp>

+ Inheritance diagram for ConstantNumberNode:
+ Collaboration diagram for ConstantNumberNode:

Public Member Functions

 ConstantNumberNode (const double value, 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 double value
 
- Public Attributes inherited from ASTNode
LocationInfo locationInfo
 
std::vector< ASTNodePtrargs
 

Detailed Description

Definition at line 220 of file ast.hpp.

Constructor & Destructor Documentation

◆ ConstantNumberNode()

ConstantNumberNode ( const double  value,
const std::vector< ASTNodePtr > &  args = {} 
)

Definition at line 221 of file ast.hpp.

221 {})
222 : ASTNode(args, 0, 0), value(value) {}
std::vector< ASTNodePtr > args
Definition: ast.hpp:64

Member Function Documentation

◆ accept()

void accept ( AcyclicVisitor &  v)
overridevirtual

Reimplemented from ASTNode.

Definition at line 296 of file ast.cpp.

296 {
297 auto v1 = dynamic_cast<Visitor<ConstantNumberNode>*>(&v);
298 if (v1 != nullptr)
299 v1->visit(*this);
300 else
302}
virtual void accept(AcyclicVisitor &)
Definition: ast.cpp:48
+ Here is the call graph for this function:

Member Data Documentation

◆ value

const double value

Definition at line 224 of file ast.hpp.