GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
tree_statement_list Class Reference

#include "pt-stmt.h"

Inheritance diagram for tree_statement_list:
Inheritance graph
[legend]
Collaboration diagram for tree_statement_list:
Collaboration graph
[legend]

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 (void)
 
 tree_statement_list (tree_statement *s)
 
 ~tree_statement_list (void)
 
void accept (tree_walker &tw)
 
bp_table::intmap add_breakpoint (const std::string &file, const bp_table::intmap &line)
 
void append (const tree_statement *&s)
 
tree_statement *& back (void)
 
const tree_statement *& back (void) const
 
iterator begin (void)
 
const_iterator begin (void) const
 
void clear (void)
 
void delete_breakpoint (int line)
 
tree_statement_listdup (symbol_table::scope_id scope, symbol_table::context_id context) const
 
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)
 
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 (const std::string &file)
 
void remove_if (P pred)
 
reverse_iterator rend (void)
 
const_reverse_iterator rend (void) const
 
int set_breakpoint (int line)
 
size_t size (void) const
 

Private Member Functions

 tree_statement_list (const tree_statement_list &)
 
tree_statement_listoperator= (const tree_statement_list &)
 

Private Attributes

bool anon_function_body
 
bool function_body
 
bool script_body
 

Detailed Description

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

Member Typedef Documentation

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

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

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

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

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

Constructor & Destructor Documentation

tree_statement_list::tree_statement_list ( void  )
inline

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

Referenced by dup().

tree_statement_list::tree_statement_list ( tree_statement s)
inline

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

tree_statement_list::~tree_statement_list ( void  )
inline

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

tree_statement_list::tree_statement_list ( const tree_statement_list )
private

Member Function Documentation

void tree_statement_list::accept ( tree_walker tw)

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

References tree_walker::visit_statement_list().

Referenced by delete_breakpoint(), octave_user_script::do_multi_index_op(), octave_user_function::do_multi_index_op(), tree_evaluator::do_unwind_protect_cleanup_code(), eval_string(), get_debug_input(), cdef_class::cdef_class_rep::install_method(), list_breakpoints(), main_loop(), set_breakpoint(), tree_checker::visit_complex_for_command(), tree_evaluator::visit_complex_for_command(), tree_breakpoint::visit_complex_for_command(), tree_print_code::visit_complex_for_command(), tree_breakpoint::visit_do_until_command(), tree_checker::visit_do_until_command(), tree_evaluator::visit_do_until_command(), tree_print_code::visit_do_until_command(), jit_convert::visit_do_until_command(), tree_checker::visit_if_clause(), tree_print_code::visit_if_clause(), tree_evaluator::visit_if_command_list(), tree_breakpoint::visit_if_command_list(), jit_convert::visit_if_command_list(), tree_checker::visit_octave_user_function(), tree_breakpoint::visit_octave_user_function(), tree_print_code::visit_octave_user_function(), tree_checker::visit_octave_user_script(), tree_breakpoint::visit_octave_user_script(), tree_print_code::visit_octave_user_script(), tree_checker::visit_simple_for_command(), tree_evaluator::visit_simple_for_command(), tree_breakpoint::visit_simple_for_command(), tree_print_code::visit_simple_for_command(), jit_convert::visit_simple_for_command(), tree_checker::visit_switch_case(), tree_print_code::visit_switch_case(), tree_breakpoint::visit_switch_case_list(), tree_evaluator::visit_switch_command(), jit_convert::visit_switch_command(), tree_checker::visit_try_catch_command(), tree_evaluator::visit_try_catch_command(), tree_breakpoint::visit_try_catch_command(), tree_print_code::visit_try_catch_command(), tree_checker::visit_unwind_protect_command(), tree_evaluator::visit_unwind_protect_command(), tree_breakpoint::visit_unwind_protect_command(), tree_print_code::visit_unwind_protect_command(), tree_breakpoint::visit_while_command(), tree_checker::visit_while_command(), tree_evaluator::visit_while_command(), tree_print_code::visit_while_command(), and jit_convert::visit_while_command().

bp_table::intmap tree_statement_list::add_breakpoint ( const std::string &  file,
const bp_table::intmap line 
)

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

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

Referenced by bp_table::do_add_breakpoint_1().

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

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

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

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

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

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

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

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

Referenced by dup().

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

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

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

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

void tree_statement_list::delete_breakpoint ( int  line)
tree_statement_list * tree_statement_list::dup ( symbol_table::scope_id  scope,
symbol_table::context_id  context 
) const
bool octave_base_list< tree_statement * >::empty ( void  ) const
inlineinherited

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

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

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

Referenced by dup().

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

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

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

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

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

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

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

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

bool tree_statement_list::is_anon_function_body ( void  ) const
inline

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

bool tree_statement_list::is_function_body ( void  ) const
inline

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

bool tree_statement_list::is_script_body ( void  ) const
inline

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

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

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

octave_value_list tree_statement_list::list_breakpoints ( void  )
void tree_statement_list::mark_as_anon_function_body ( void  )
inline

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

Referenced by octave_base_parser::make_anon_fcn_handle().

void tree_statement_list::mark_as_function_body ( void  )
inline

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

void tree_statement_list::mark_as_script_body ( void  )
inline

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

Referenced by octave_user_script::octave_user_script().

tree_statement_list& tree_statement_list::operator= ( const tree_statement_list )
private
void octave_base_list< tree_statement * >::pop_back ( void  )
inlineinherited

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

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

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

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

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

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

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

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

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

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

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

bp_table::intmap tree_statement_list::remove_all_breakpoints ( const std::string &  file)
void octave_base_list< tree_statement * >::remove_if ( pred)
inlineinherited

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

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

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

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

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

int tree_statement_list::set_breakpoint ( int  line)

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

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

Referenced by add_breakpoint().

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

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

Member Data Documentation

bool tree_statement_list::anon_function_body
private

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

bool tree_statement_list::function_body
private

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

Referenced by dup().

bool tree_statement_list::script_body
private

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


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