GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
tree_switch_command Class Reference

#include "pt-select.h"

Inheritance diagram for tree_switch_command:
tree_command tree

Public Member Functions

 tree_switch_command (const token &switch_tok, tree_expression *e, tree_switch_case_list *lst, const token &end_tok)
 
 ~tree_switch_command ()
 
void accept (tree_walker &tw)
 
filepos beg_pos () const
 
tree_switch_case_listcase_list ()
 
filepos end_pos () const
 
comment_list leading_comments () const
 
tree_expressionswitch_value ()
 
- Public Member Functions inherited from tree_command
 tree_command ()=default
 
virtual ~tree_command ()=default
 
virtual void update_end_pos (const filepos &)
 
- Public Member Functions inherited from tree
 tree ()
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
virtual int column () const
 
virtual void delete_breakpoint ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
virtual int line () const
 
bool meets_bp_condition (tree_evaluator &tw) const
 
virtual void set_breakpoint (const std::string &condition)
 
std::string str_print_code ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ tree_switch_command()

tree_switch_command::tree_switch_command ( const token switch_tok,
tree_expression e,
tree_switch_case_list lst,
const token end_tok 
)
inline

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

◆ ~tree_switch_command()

tree_switch_command::~tree_switch_command ( )

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

Member Function Documentation

◆ accept()

void tree_switch_command::accept ( tree_walker tw)
inlinevirtual

Implements tree.

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

References tree_walker::visit_switch_command().

◆ beg_pos()

filepos tree_switch_command::beg_pos ( ) const
inlinevirtual

Implements tree.

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

References token::beg_pos().

◆ case_list()

◆ end_pos()

filepos tree_switch_command::end_pos ( ) const
inlinevirtual

Implements tree.

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

References token::end_pos().

◆ leading_comments()

comment_list tree_switch_command::leading_comments ( ) const
inlinevirtual

Reimplemented from tree.

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

References token::leading_comments().

Referenced by tree_print_code::visit_switch_command().

◆ switch_value()

tree_expression * tree_switch_command::switch_value ( )
inline

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