GNU Octave  8.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:
Collaboration diagram for tree_statement_list:

Public Types

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
 

Public Member Functions

 tree_statement_list (const tree_statement_list &)=delete
 
 tree_statement_list (tree_statement *s)
 
 tree_statement_list (void)
 
 ~tree_statement_list (void)
 
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)
 
void append (const tree_statement * &s)
 
tree_statement * & back (void)
 
const tree_statement * & back (void) const
 
iterator begin (void)
 
const_iterator begin (void) const
 
std::list< bp_typebreakpoints_and_conds (void)
 
void clear (void)
 
void delete_breakpoint (int line)
 
bool empty (void) const
 
iterator end (void)
 
const_iterator end (void) const
 
iterator erase (iterator pos)
 
tree_statement * & front (void)
 
const tree_statement * & front (void) const
 
bool is_anon_function_body (void) const
 
bool is_function_body (void) const
 
bool is_script_body (void) const
 
std::size_t length (void) const
 
octave_value_list list_breakpoints (void)
 
void mark_as_anon_function_body (void)
 
void mark_as_function_body (void)
 
void mark_as_script_body (void)
 
tree_statement_listoperator= (const tree_statement_list &)=delete
 
void pop_back (void)
 
void pop_front (void)
 
void push_back (const tree_statement * &s)
 
void push_front (const tree_statement * &s)
 
reverse_iterator rbegin (void)
 
const_reverse_iterator rbegin (void) const
 
bp_table::bp_lines remove_all_breakpoints (event_manager &evmgr, const std::string &file)
 
void remove_if (P pred)
 
reverse_iterator rend (void)
 
const_reverse_iterator rend (void) const
 
int set_breakpoint (int line, const std::string &condition)
 
std::size_t size (void) const
 

Protected Attributes

std::list< tree_statement * > m_lst
 

Private Attributes

bool m_anon_function_body
 
bool m_function_body
 
bool m_script_body
 

Detailed Description

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

Member Typedef Documentation

◆ const_iterator

typedef std::list<tree_statement * >::const_iterator base_list< tree_statement * >::const_iterator
inherited

Definition at line 44 of file base-list.h.

◆ const_reverse_iterator

Definition at line 48 of file base-list.h.

◆ iterator

typedef std::list<tree_statement * >::iterator base_list< tree_statement * >::iterator
inherited

Definition at line 43 of file base-list.h.

◆ reverse_iterator

Definition at line 46 of file base-list.h.

Constructor & Destructor Documentation

◆ tree_statement_list() [1/3]

tree_statement_list::tree_statement_list ( void  )
inline

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

◆ tree_statement_list() [2/3]

tree_statement_list::tree_statement_list ( tree_statement s)
inline

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

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

◆ tree_statement_list() [3/3]

tree_statement_list::tree_statement_list ( const tree_statement_list )
delete

◆ ~tree_statement_list()

tree_statement_list::~tree_statement_list ( void  )
inline

Member Function Documentation

◆ accept()

void tree_statement_list::accept ( tree_walker tw)
inline

Definition at line 199 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_range_loop(), tree_evaluator::execute_user_function(), tree_evaluator::execute_user_script(), base_parser::finish_input(), cdef_class::cdef_class_rep::install_method(), 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(), parse_tree_validator::visit_octave_user_function(), tree_print_code::visit_octave_user_script(), tree_walker::visit_octave_user_script(), parse_tree_validator::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().

Referenced by bp_table::add_breakpoint_1().

◆ append()

void base_list< tree_statement * >::append ( const tree_statement * &  s)
inlineinherited

Definition at line 92 of file base-list.h.

◆ back() [1/2]

tree_statement * & base_list< tree_statement * >::back ( void  )
inlineinherited

Definition at line 80 of file base-list.h.

◆ back() [2/2]

const tree_statement * & base_list< tree_statement * >::back ( void  ) const
inlineinherited

Definition at line 83 of file base-list.h.

◆ begin() [1/2]

iterator base_list< tree_statement * >::begin ( void  )
inlineinherited

Definition at line 65 of file base-list.h.

◆ begin() [2/2]

const_iterator base_list< tree_statement * >::begin ( void  ) const
inlineinherited

Definition at line 66 of file base-list.h.

◆ breakpoints_and_conds()

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

◆ clear()

void base_list< tree_statement * >::clear ( void  )
inlineinherited

Definition at line 63 of file base-list.h.

◆ delete_breakpoint()

void tree_statement_list::delete_breakpoint ( int  line)

◆ empty()

bool base_list< tree_statement * >::empty ( void  ) const
inlineinherited

Definition at line 50 of file base-list.h.

◆ end() [1/2]

iterator base_list< tree_statement * >::end ( void  )
inlineinherited

Definition at line 68 of file base-list.h.

◆ end() [2/2]

const_iterator base_list< tree_statement * >::end ( void  ) const
inlineinherited

Definition at line 69 of file base-list.h.

◆ erase()

iterator base_list< tree_statement * >::erase ( iterator  pos)
inlineinherited

Definition at line 55 of file base-list.h.

◆ front() [1/2]

tree_statement * & base_list< tree_statement * >::front ( void  )
inlineinherited

Definition at line 79 of file base-list.h.

◆ front() [2/2]

const tree_statement * & base_list< tree_statement * >::front ( void  ) const
inlineinherited

Definition at line 82 of file base-list.h.

◆ is_anon_function_body()

bool tree_statement_list::is_anon_function_body ( void  ) const
inline

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

References m_anon_function_body.

◆ is_function_body()

bool tree_statement_list::is_function_body ( void  ) const
inline

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

References m_function_body.

◆ is_script_body()

bool tree_statement_list::is_script_body ( void  ) const
inline

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

References m_script_body.

◆ length()

std::size_t base_list< tree_statement * >::length ( void  ) const
inlineinherited

Definition at line 53 of file base-list.h.

◆ list_breakpoints()

octave_value_list tree_statement_list::list_breakpoints ( void  )

◆ mark_as_anon_function_body()

void tree_statement_list::mark_as_anon_function_body ( void  )
inline

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

References m_anon_function_body.

◆ mark_as_function_body()

void tree_statement_list::mark_as_function_body ( void  )
inline

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

References m_function_body.

◆ mark_as_script_body()

void tree_statement_list::mark_as_script_body ( void  )
inline

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

References m_script_body.

◆ operator=()

tree_statement_list& tree_statement_list::operator= ( const tree_statement_list )
delete

◆ pop_back()

void base_list< tree_statement * >::pop_back ( void  )
inlineinherited

Definition at line 89 of file base-list.h.

◆ pop_front()

void base_list< tree_statement * >::pop_front ( void  )
inlineinherited

Definition at line 88 of file base-list.h.

◆ push_back()

void base_list< tree_statement * >::push_back ( const tree_statement * &  s)
inlineinherited

Definition at line 86 of file base-list.h.

◆ push_front()

void base_list< tree_statement * >::push_front ( const tree_statement * &  s)
inlineinherited

Definition at line 85 of file base-list.h.

◆ rbegin() [1/2]

reverse_iterator base_list< tree_statement * >::rbegin ( void  )
inlineinherited

Definition at line 71 of file base-list.h.

◆ rbegin() [2/2]

const_reverse_iterator base_list< tree_statement * >::rbegin ( void  ) const
inlineinherited

Definition at line 72 of file base-list.h.

◆ remove_all_breakpoints()

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

◆ remove_if()

void base_list< tree_statement * >::remove_if ( pred)
inlineinherited

Definition at line 58 of file base-list.h.

◆ rend() [1/2]

reverse_iterator base_list< tree_statement * >::rend ( void  )
inlineinherited

Definition at line 75 of file base-list.h.

◆ rend() [2/2]

const_reverse_iterator base_list< tree_statement * >::rend ( void  ) const
inlineinherited

Definition at line 76 of file base-list.h.

◆ 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().

◆ size()

std::size_t base_list< tree_statement * >::size ( void  ) const
inlineinherited

Definition at line 52 of file base-list.h.

Member Data Documentation

◆ m_anon_function_body

bool tree_statement_list::m_anon_function_body
private

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

Referenced by is_anon_function_body(), and mark_as_anon_function_body().

◆ m_function_body

bool tree_statement_list::m_function_body
private

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

Referenced by is_function_body(), and mark_as_function_body().

◆ m_lst

std::list<tree_statement * > base_list< tree_statement * >::m_lst
protectedinherited

Definition at line 106 of file base-list.h.

◆ m_script_body

bool tree_statement_list::m_script_body
private

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

Referenced by is_script_body(), and mark_as_script_body().


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