YASK
Yet Another Stencil Kit: a software framework for creating HPC stencil code. Copyright 2014-2023 Intel Corporation.
|
A constant numerical value. More...
#include <yc_node_api.hpp>
Public Member Functions | |
virtual void | set_value (double val)=0 |
Set the value. | |
virtual double | get_value () const =0 |
Get the stored value. | |
Public Member Functions inherited from yask::yc_number_node | |
virtual yc_number_node_ptr | clone_ast () const =0 |
Create a deep copy of AST starting with this node. | |
Public Member Functions inherited from yask::yc_expr_node | |
virtual std::string | format_simple () const =0 |
Create a simple human-readable string. | |
virtual int | get_num_nodes () const =0 |
Count the size of the AST. | |
A constant numerical value.
All values are stored as doubles. This is a leaf node in an AST. Created via yc_node_factory::new_const_number_node().
|
pure virtual |
Set the value.
The value is considered "constant" only when the compiler output is created. It can be changed in the AST.
[in] | val | Value to store in node. |
|
pure virtual |
Get the stored value.