YASK
Yet Another Stencil Kit: a software framework for creating HPC stencil code. Copyright 2014-2023 Intel Corporation.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
yask::yc_const_number_node Class Referenceabstract

A constant numerical value. More...

#include <yc_node_api.hpp>

+ Inheritance diagram for yask::yc_const_number_node:

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.
 

Detailed Description

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().

Member Function Documentation

◆ set_value()

virtual void yask::yc_const_number_node::set_value ( double  val)
pure virtual

Set the value.

The value is considered "constant" only when the compiler output is created. It can be changed in the AST.

Parameters
[in]valValue to store in node.

◆ get_value()

virtual double yask::yc_const_number_node::get_value ( ) const
pure virtual

Get the stored value.

Returns
Copy of stored value.

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