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

#include "pt-stmt.h"

Inheritance diagram for octave::tree_statement_list:
Collaboration diagram for octave::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::intmap add_breakpoint (event_manager &evmgr, const std::string &file, const bp_table::intmap &line, 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
 
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::intmap 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)
 
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

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 octave::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]

octave::tree_statement_list::tree_statement_list ( void  )
inline

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

◆ tree_statement_list() [2/3]

octave::tree_statement_list::tree_statement_list ( tree_statement s)
inline

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

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

◆ tree_statement_list() [3/3]

octave::tree_statement_list::tree_statement_list ( const tree_statement_list )
delete

◆ ~tree_statement_list()

octave::tree_statement_list::~tree_statement_list ( void  )
inline

Member Function Documentation

◆ accept()

void octave::tree_statement_list::accept ( tree_walker tw)
inline

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

References octave::tree_walker::visit_statement_list().

Referenced by breakpoints_and_conds(), delete_breakpoint(), octave::tree_evaluator::do_unwind_protect_cleanup_code(), octave::tree_evaluator::execute_user_function(), octave::tree_evaluator::execute_user_script(), octave::cdef_class::cdef_class_rep::install_method(), list_breakpoints(), set_breakpoint(), octave::tree_breakpoint::visit_complex_for_command(), octave::tree_checker::visit_complex_for_command(), octave::tree_evaluator::visit_complex_for_command(), octave::tree_print_code::visit_complex_for_command(), octave::tree_walker::visit_complex_for_command(), octave::tree_breakpoint::visit_do_until_command(), octave::tree_evaluator::visit_do_until_command(), octave::jit_convert::visit_do_until_command(), octave::tree_print_code::visit_do_until_command(), octave::tree_walker::visit_do_until_command(), octave::tree_print_code::visit_if_clause(), octave::tree_walker::visit_if_clause(), octave::tree_breakpoint::visit_if_command_list(), octave::tree_evaluator::visit_if_command_list(), octave::jit_convert::visit_if_command_list(), octave::tree_print_code::visit_octave_user_function(), octave::tree_walker::visit_octave_user_function(), octave::tree_print_code::visit_octave_user_script(), octave::tree_walker::visit_octave_user_script(), octave::tree_breakpoint::visit_simple_for_command(), octave::tree_checker::visit_simple_for_command(), octave::tree_evaluator::visit_simple_for_command(), octave::jit_convert::visit_simple_for_command(), octave::tree_print_code::visit_simple_for_command(), octave::tree_walker::visit_simple_for_command(), octave::tree_print_code::visit_switch_case(), octave::tree_walker::visit_switch_case(), octave::tree_breakpoint::visit_switch_case_list(), octave::tree_evaluator::visit_switch_command(), octave::jit_convert::visit_switch_command(), octave::tree_breakpoint::visit_try_catch_command(), octave::tree_checker::visit_try_catch_command(), octave::tree_evaluator::visit_try_catch_command(), octave::tree_print_code::visit_try_catch_command(), octave::tree_walker::visit_try_catch_command(), octave::tree_breakpoint::visit_unwind_protect_command(), octave::tree_evaluator::visit_unwind_protect_command(), octave::tree_print_code::visit_unwind_protect_command(), octave::tree_walker::visit_unwind_protect_command(), octave::tree_breakpoint::visit_while_command(), octave::tree_evaluator::visit_while_command(), octave::jit_convert::visit_while_command(), octave::tree_print_code::visit_while_command(), and octave::tree_walker::visit_while_command().

◆ add_breakpoint()

bp_table::intmap octave::tree_statement_list::add_breakpoint ( event_manager evmgr,
const std::string &  file,
const bp_table::intmap line,
const std::string &  condition 
)

◆ append()

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

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

◆ back() [1/2]

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

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

◆ back() [2/2]

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

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

◆ begin() [1/2]

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

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

◆ begin() [2/2]

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

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

◆ breakpoints_and_conds()

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

◆ clear()

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

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

◆ delete_breakpoint()

void octave::tree_statement_list::delete_breakpoint ( int  line)

◆ empty()

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

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

◆ end() [1/2]

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

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

◆ end() [2/2]

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

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

◆ erase()

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

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

◆ front() [1/2]

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

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

◆ front() [2/2]

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

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

◆ is_anon_function_body()

bool octave::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 octave::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 octave::tree_statement_list::is_script_body ( void  ) const
inline

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

References m_script_body.

◆ length()

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

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

◆ list_breakpoints()

octave_value_list octave::tree_statement_list::list_breakpoints ( void  )

◆ mark_as_anon_function_body()

void octave::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 octave::tree_statement_list::mark_as_function_body ( void  )
inline

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

References m_function_body.

Referenced by octave_user_function::octave_user_function().

◆ mark_as_script_body()

void octave::tree_statement_list::mark_as_script_body ( void  )
inline

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

References m_script_body.

Referenced by octave_user_script::octave_user_script().

◆ operator=()

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

◆ pop_back()

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

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

◆ pop_front()

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

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

◆ push_back()

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

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

◆ push_front()

void octave::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 octave::base_list< tree_statement * >::rbegin ( void  )
inlineinherited

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

◆ rbegin() [2/2]

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

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

◆ remove_all_breakpoints()

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

◆ remove_if()

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

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

◆ rend() [1/2]

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

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

◆ rend() [2/2]

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

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

◆ set_breakpoint()

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

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

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

Referenced by add_breakpoint().

◆ size()

size_t octave::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 octave::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 octave::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 * > octave::base_list< tree_statement * >::m_lst
protectedinherited

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

◆ m_script_body

bool octave::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: