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

#include "pt-select.h"

Inheritance diagram for tree_switch_case:
tree

Public Member Functions

 tree_switch_case (int l=-1, int c=-1)
 
 tree_switch_case (tree_expression *e, tree_statement_list *sl, comment_list *lc=nullptr, int l=-1, int c=-1)
 
 tree_switch_case (tree_statement_list *sl, comment_list *lc=nullptr, int l=-1, int c=-1)
 
 ~tree_switch_case ()
 
void accept (tree_walker &tw)
 
tree_expressioncase_label ()
 
tree_statement_listcommands ()
 
bool is_default_case ()
 
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 158 of file pt-select.h.

Constructor & Destructor Documentation

◆ tree_switch_case() [1/3]

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

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

◆ tree_switch_case() [2/3]

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

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

◆ tree_switch_case() [3/3]

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

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

◆ ~tree_switch_case()

tree_switch_case::~tree_switch_case ( )

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

Member Function Documentation

◆ accept()

void tree_switch_case::accept ( tree_walker tw)
inlinevirtual

Implements tree.

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

References tree_walker::visit_switch_case().

Referenced by tree_walker::visit_switch_case_list().

◆ case_label()

tree_expression* tree_switch_case::case_label ( )
inline

◆ commands()

tree_statement_list* tree_switch_case::commands ( )
inline

◆ is_default_case()

bool tree_switch_case::is_default_case ( )
inline

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

Referenced by tree_print_code::visit_switch_case().

◆ leading_comment()

comment_list* tree_switch_case::leading_comment ( )
inline

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

Referenced by tree_print_code::visit_switch_case().


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