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

Base class for all AST nodes. More...

#include <yc_node_api.hpp>

+ Inheritance diagram for yask::yc_expr_node:

Public Member Functions

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

Base class for all AST nodes.

An object of this abstract type cannot be created.

Member Function Documentation

◆ format_simple()

virtual std::string yask::yc_expr_node::format_simple ( ) const
pure virtual

Create a simple human-readable string.

Formats the expression starting at this node.

Returns
String containing a single-line human-readable version of the expression.

◆ get_num_nodes()

virtual int yask::yc_expr_node::get_num_nodes ( ) const
pure virtual

Count the size of the AST.

Returns
Number of nodes in this tree, including this node and all its descendants.

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