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

#include "pt-stmt.h"

Inheritance diagram for tree_statement_list:
base_list< tree_statement * >

Public Member Functions

 tree_statement_list ()
 
 tree_statement_list (tree_statement *s)
 
 ~tree_statement_list ()
 
void accept (tree_walker &tw)
 
bp_table::bp_lines add_breakpoint (event_manager &evmgr, const std::string &file, const bp_table::bp_lines &lines, const std::string &condition)
 
std::list< bp_typebreakpoints_and_conds ()
 
void delete_breakpoint (int line)
 
bool is_anon_function_body () const
 
bool is_function_body () const
 
bool is_script_body () const
 
octave_value_list list_breakpoints ()
 
void mark_as_anon_function_body ()
 
void mark_as_function_body ()
 
void mark_as_script_body ()
 
bp_table::bp_lines remove_all_breakpoints (event_manager &evmgr, const std::string &file)
 
int set_breakpoint (int line, const std::string &condition)
 
- Public Member Functions inherited from base_list< tree_statement * >
 base_list ()=default
 
 base_list (const base_list &bl)=default
 
 base_list (const std::list< tree_statement * > &l)
 
virtual ~base_list ()=default
 
void append (const tree_statement * &s)
 
tree_statement * & back ()
 
const tree_statement * & back () const
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
tree_statement * & front ()
 
const tree_statement * & front () const
 
std::size_t length () const
 
base_listoperator= (const base_list &bl)=default
 
void pop_back ()
 
void pop_front ()
 
void push_back (const tree_statement * &s)
 
void push_front (const tree_statement * &s)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
void remove_if (P pred)
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
std::size_t size () const
 

Additional Inherited Members

- Public Types inherited from base_list< tree_statement * >
typedef std::list< tree_statement * >::const_iterator const_iterator
 
typedef std::list< tree_statement * >::const_reverse_iterator const_reverse_iterator
 
typedef std::list< tree_statement * >::iterator iterator
 
typedef std::list< tree_statement * >::reverse_iterator reverse_iterator
 
- Protected Attributes inherited from base_list< tree_statement * >
std::list< tree_statement * > m_lst
 

Detailed Description

Definition at line 139 of file pt-stmt.h.

Constructor & Destructor Documentation

◆ tree_statement_list() [1/2]

tree_statement_list::tree_statement_list ( )
inline

Definition at line 143 of file pt-stmt.h.

◆ tree_statement_list() [2/2]

tree_statement_list::tree_statement_list ( tree_statement s)
inline

Definition at line 147 of file pt-stmt.h.

References base_list< tree_statement * >::append().

◆ ~tree_statement_list()

tree_statement_list::~tree_statement_list ( )
inline

Member Function Documentation

◆ accept()

void tree_statement_list::accept ( tree_walker tw)
inline

Definition at line 191 of file pt-stmt.h.

References tree_walker::visit_statement_list().

Referenced by breakpoints_and_conds(), delete_breakpoint(), tree_evaluator::do_unwind_protect_cleanup_code(), tree_evaluator::execute_user_script(), base_parser::finish_input(), list_breakpoints(), set_breakpoint(), tree_breakpoint::visit_complex_for_command(), tree_checker::visit_complex_for_command(), tree_evaluator::visit_complex_for_command(), tree_print_code::visit_complex_for_command(), tree_walker::visit_complex_for_command(), tree_breakpoint::visit_do_until_command(), tree_evaluator::visit_do_until_command(), tree_print_code::visit_do_until_command(), tree_walker::visit_do_until_command(), tree_print_code::visit_if_clause(), tree_walker::visit_if_clause(), tree_breakpoint::visit_if_command_list(), tree_evaluator::visit_if_command_list(), tree_print_code::visit_octave_user_function(), tree_walker::visit_octave_user_function(), tree_print_code::visit_octave_user_script(), tree_walker::visit_octave_user_script(), tree_breakpoint::visit_simple_for_command(), tree_checker::visit_simple_for_command(), tree_evaluator::visit_simple_for_command(), tree_print_code::visit_simple_for_command(), tree_walker::visit_simple_for_command(), tree_evaluator::visit_spmd_command(), tree_print_code::visit_spmd_command(), tree_walker::visit_spmd_command(), tree_print_code::visit_switch_case(), tree_walker::visit_switch_case(), tree_breakpoint::visit_switch_case_list(), tree_evaluator::visit_switch_command(), tree_breakpoint::visit_try_catch_command(), tree_checker::visit_try_catch_command(), tree_evaluator::visit_try_catch_command(), tree_print_code::visit_try_catch_command(), tree_walker::visit_try_catch_command(), tree_breakpoint::visit_unwind_protect_command(), tree_evaluator::visit_unwind_protect_command(), tree_print_code::visit_unwind_protect_command(), tree_walker::visit_unwind_protect_command(), tree_breakpoint::visit_while_command(), tree_evaluator::visit_while_command(), tree_print_code::visit_while_command(), and tree_walker::visit_while_command().

◆ add_breakpoint()

bp_table::bp_lines tree_statement_list::add_breakpoint ( event_manager evmgr,
const std::string &  file,
const bp_table::bp_lines lines,
const std::string &  condition 
)

Definition at line 255 of file pt-stmt.cc.

References set_breakpoint(), and event_manager::update_breakpoint().

◆ breakpoints_and_conds()

std::list< bp_type > tree_statement_list::breakpoints_and_conds ( )

◆ delete_breakpoint()

void tree_statement_list::delete_breakpoint ( int  line)

◆ is_anon_function_body()

bool tree_statement_list::is_anon_function_body ( ) const
inline

Definition at line 171 of file pt-stmt.h.

◆ is_function_body()

bool tree_statement_list::is_function_body ( ) const
inline

Definition at line 169 of file pt-stmt.h.

◆ is_script_body()

bool tree_statement_list::is_script_body ( ) const
inline

Definition at line 173 of file pt-stmt.h.

◆ list_breakpoints()

octave_value_list tree_statement_list::list_breakpoints ( )

◆ mark_as_anon_function_body()

void tree_statement_list::mark_as_anon_function_body ( )
inline

Definition at line 165 of file pt-stmt.h.

◆ mark_as_function_body()

void tree_statement_list::mark_as_function_body ( )
inline

Definition at line 163 of file pt-stmt.h.

◆ mark_as_script_body()

void tree_statement_list::mark_as_script_body ( )
inline

Definition at line 167 of file pt-stmt.h.

◆ remove_all_breakpoints()

bp_table::bp_lines tree_statement_list::remove_all_breakpoints ( event_manager evmgr,
const std::string &  file 
)

◆ set_breakpoint()

int tree_statement_list::set_breakpoint ( int  line,
const std::string &  condition 
)

Definition at line 190 of file pt-stmt.cc.

References accept(), tree_breakpoint::get_line(), and tree_breakpoint::set.

Referenced by add_breakpoint().


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