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_negate_node Class Referenceabstract

A numerical negation operator. More...

#include <yc_node_api.hpp>

+ Inheritance diagram for yask::yc_negate_node:

Public Member Functions

virtual yc_number_node_ptr get_rhs ()=0
 Get the [only] operand.
 
- 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 numerical negation operator.

Example: used to implement -(a*b). Created via yc_node_factory::new_negate_node().

Member Function Documentation

◆ get_rhs()

virtual yc_number_node_ptr yask::yc_negate_node::get_rhs ( )
pure virtual

Get the [only] operand.

This node implements unary negation only, not subtraction, so there is never a left-hand-side.

Returns
Expression node on right-hand-side of - sign.

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