GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
tree_if_clause Class Reference

#include "pt-select.h"

Inheritance diagram for tree_if_clause:
tree

Public Member Functions

 tree_if_clause (int l=-1, int c=-1)
 
 tree_if_clause (tree_expression *e, tree_statement_list *sl, comment_list *lc=nullptr, int l=-1, int c=-1)
 
 tree_if_clause (tree_statement_list *sl, comment_list *lc=nullptr, int l=-1, int c=-1)
 
 ~tree_if_clause ()
 
void accept (tree_walker &tw)
 
tree_statement_listcommands ()
 
tree_expressioncondition ()
 
bool is_else_clause ()
 
comment_listleading_comment ()
 
- Public Member Functions inherited from tree
 tree (int l=-1, int c=-1)
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
virtual int column () const
 
void column (int c)
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual int line () const
 
void line (int l)
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
void set_location (int l, int c)
 
std::string str_print_code ()
 

Detailed Description

Definition at line 43 of file pt-select.h.

Constructor & Destructor Documentation

◆ tree_if_clause() [1/3]

tree_if_clause::tree_if_clause ( int  l = -1,
int  c = -1 
)
inline

Definition at line 47 of file pt-select.h.

◆ tree_if_clause() [2/3]

tree_if_clause::tree_if_clause ( tree_statement_list sl,
comment_list lc = nullptr,
int  l = -1,
int  c = -1 
)
inline

Definition at line 51 of file pt-select.h.

◆ tree_if_clause() [3/3]

tree_if_clause::tree_if_clause ( tree_expression e,
tree_statement_list sl,
comment_list lc = nullptr,
int  l = -1,
int  c = -1 
)
inline

Definition at line 55 of file pt-select.h.

◆ ~tree_if_clause()

tree_if_clause::~tree_if_clause ( )

Definition at line 38 of file pt-select.cc.

Member Function Documentation

◆ accept()

void tree_if_clause::accept ( tree_walker tw)
inlinevirtual

◆ commands()

tree_statement_list* tree_if_clause::commands ( )
inline

Definition at line 68 of file pt-select.h.

Referenced by tree_print_code::visit_if_clause(), and tree_walker::visit_if_clause().

◆ condition()

tree_expression* tree_if_clause::condition ( )
inline

Definition at line 66 of file pt-select.h.

Referenced by tree_print_code::visit_if_clause(), and tree_walker::visit_if_clause().

◆ is_else_clause()

bool tree_if_clause::is_else_clause ( )
inline

Definition at line 64 of file pt-select.h.

Referenced by tree_print_code::visit_if_command_list().

◆ leading_comment()

comment_list* tree_if_clause::leading_comment ( )
inline

Definition at line 70 of file pt-select.h.

Referenced by tree_print_code::visit_if_command_list().


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