Public Types | Public Member Functions | Private Member Functions | Private Attributes

tree_breakpoint Class Reference

#include "pt-bp.h"

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

List of all members.

Public Types

enum  action { set = 1, clear = 2, list = 3 }

Public Member Functions

 tree_breakpoint (int l, action a)
 ~tree_breakpoint (void)
int get_line (void)
octave_value_list get_list (void)
bool success (void) const
void visit_anon_fcn_handle (tree_anon_fcn_handle &)
void visit_argument_list (tree_argument_list &)
void visit_binary_expression (tree_binary_expression &)
void visit_break_command (tree_break_command &)
void visit_cell (tree_cell &)
void visit_colon_expression (tree_colon_expression &)
void visit_complex_for_command (tree_complex_for_command &)
void visit_constant (tree_constant &)
void visit_continue_command (tree_continue_command &)
void visit_decl_elt (tree_decl_elt &)
void visit_decl_init_list (tree_decl_init_list &)
void visit_do_until_command (tree_do_until_command &)
void visit_fcn_handle (tree_fcn_handle &)
void visit_function_def (tree_function_def &)
void visit_global_command (tree_global_command &)
void visit_identifier (tree_identifier &)
void visit_if_clause (tree_if_clause &)
void visit_if_command (tree_if_command &)
void visit_if_command_list (tree_if_command_list &)
void visit_index_expression (tree_index_expression &)
void visit_matrix (tree_matrix &)
void visit_multi_assignment (tree_multi_assignment &)
void visit_no_op_command (tree_no_op_command &)
void visit_octave_user_function (octave_user_function &)
void visit_octave_user_function_header (octave_user_function &)
void visit_octave_user_function_trailer (octave_user_function &)
void visit_octave_user_script (octave_user_script &)
void visit_parameter_list (tree_parameter_list &)
void visit_postfix_expression (tree_postfix_expression &)
void visit_prefix_expression (tree_prefix_expression &)
void visit_return_command (tree_return_command &)
void visit_return_list (tree_return_list &)
void visit_simple_assignment (tree_simple_assignment &)
void visit_simple_for_command (tree_simple_for_command &)
void visit_statement (tree_statement &)
void visit_statement_list (tree_statement_list &)
void visit_static_command (tree_static_command &)
void visit_switch_case (tree_switch_case &)
void visit_switch_case_list (tree_switch_case_list &)
void visit_switch_command (tree_switch_command &)
void visit_try_catch_command (tree_try_catch_command &)
void visit_unwind_protect_command (tree_unwind_protect_command &)
void visit_while_command (tree_while_command &)

Private Member Functions

 tree_breakpoint (const tree_breakpoint &)
void do_decl_command (tree_decl_command &)
tree_breakpointoperator= (const tree_breakpoint &)
void take_action (tree_statement &stmt)
void take_action (tree &tr)

Private Attributes

action act
octave_value_list bp_list
bool found
int line

Detailed Description

Definition at line 35 of file pt-bp.h.


Member Enumeration Documentation

Enumerator:
set 
clear 
list 

Definition at line 40 of file pt-bp.h.


Constructor & Destructor Documentation

tree_breakpoint::tree_breakpoint ( int  l,
action  a 
) [inline]

Definition at line 42 of file pt-bp.h.

tree_breakpoint::~tree_breakpoint ( void   )  [inline]

Definition at line 45 of file pt-bp.h.

tree_breakpoint::tree_breakpoint ( const tree_breakpoint  )  [private]

Member Function Documentation

void tree_breakpoint::do_decl_command ( tree_decl_command cmd  )  [private]

Definition at line 101 of file pt-bp.cc.

References line, tree::line(), and take_action().

Referenced by visit_global_command(), and visit_static_command().

int tree_breakpoint::get_line ( void   )  [inline]

Definition at line 137 of file pt-bp.h.

Referenced by tree_statement_list::set_breakpoint().

octave_value_list tree_breakpoint::get_list ( void   )  [inline]

Definition at line 135 of file pt-bp.h.

Referenced by tree_statement_list::list_breakpoints().

tree_breakpoint& tree_breakpoint::operator= ( const tree_breakpoint  )  [private]
bool tree_breakpoint::success ( void   )  const [inline]

Definition at line 47 of file pt-bp.h.

void tree_breakpoint::take_action ( tree tr  )  [private]
void tree_breakpoint::take_action ( tree_statement stmt  )  [private]
void tree_breakpoint::visit_anon_fcn_handle ( tree_anon_fcn_handle  )  [virtual]

Implements tree_walker.

Definition at line 284 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_argument_list ( tree_argument_list  )  [virtual]

Implements tree_walker.

Definition at line 69 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_binary_expression ( tree_binary_expression  )  [virtual]

Implements tree_walker.

Definition at line 75 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_break_command ( tree_break_command cmd  )  [virtual]

Implements tree_walker.

Definition at line 81 of file pt-bp.cc.

References line, tree::line(), and take_action().

void tree_breakpoint::visit_cell ( tree_cell  )  [virtual]

Implements tree_walker.

Definition at line 265 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_colon_expression ( tree_colon_expression  )  [virtual]

Implements tree_walker.

Definition at line 88 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_complex_for_command ( tree_complex_for_command cmd  )  [virtual]
void tree_breakpoint::visit_constant ( tree_constant  )  [virtual]

Implements tree_walker.

Definition at line 290 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_continue_command ( tree_continue_command cmd  )  [virtual]

Implements tree_walker.

Definition at line 94 of file pt-bp.cc.

References line, tree::line(), and take_action().

void tree_breakpoint::visit_decl_elt ( tree_decl_elt  )  [virtual]

Implements tree_walker.

Definition at line 120 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_decl_init_list ( tree_decl_init_list  )  [virtual]

Implements tree_walker.

Definition at line 126 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_do_until_command ( tree_do_until_command cmd  )  [virtual]
void tree_breakpoint::visit_fcn_handle ( tree_fcn_handle  )  [virtual]

Implements tree_walker.

Definition at line 296 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_function_def ( tree_function_def fdef  )  [virtual]
void tree_breakpoint::visit_global_command ( tree_global_command cmd  )  [virtual]

Implements tree_walker.

Definition at line 108 of file pt-bp.cc.

References do_decl_command().

void tree_breakpoint::visit_identifier ( tree_identifier  )  [virtual]

Implements tree_walker.

Definition at line 203 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_if_clause ( tree_if_clause  )  [virtual]

Implements tree_walker.

Definition at line 209 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_if_command ( tree_if_command cmd  )  [virtual]
void tree_breakpoint::visit_if_command_list ( tree_if_command_list lst  )  [virtual]
void tree_breakpoint::visit_index_expression ( tree_index_expression  )  [virtual]

Implements tree_walker.

Definition at line 253 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_matrix ( tree_matrix  )  [virtual]

Implements tree_walker.

Definition at line 259 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_multi_assignment ( tree_multi_assignment  )  [virtual]

Implements tree_walker.

Definition at line 271 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_no_op_command ( tree_no_op_command cmd  )  [virtual]

Implements tree_walker.

Definition at line 277 of file pt-bp.cc.

References tree_no_op_command::is_end_of_fcn_or_script(), line, tree::line(), and take_action().

void tree_breakpoint::visit_octave_user_function ( octave_user_function fcn  )  [virtual]

Implements tree_walker.

Definition at line 171 of file pt-bp.cc.

References tree_statement_list::accept(), and octave_user_function::body().

void tree_breakpoint::visit_octave_user_function_header ( octave_user_function  ) 

Definition at line 180 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_octave_user_function_trailer ( octave_user_function  ) 

Definition at line 186 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_octave_user_script ( octave_user_script fcn  )  [virtual]

Implements tree_walker.

Definition at line 162 of file pt-bp.cc.

References tree_statement_list::accept(), and octave_user_script::body().

void tree_breakpoint::visit_parameter_list ( tree_parameter_list  )  [virtual]

Implements tree_walker.

Definition at line 302 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_postfix_expression ( tree_postfix_expression  )  [virtual]

Implements tree_walker.

Definition at line 308 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_prefix_expression ( tree_prefix_expression  )  [virtual]

Implements tree_walker.

Definition at line 314 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_return_command ( tree_return_command cmd  )  [virtual]

Implements tree_walker.

Definition at line 320 of file pt-bp.cc.

References line, tree::line(), and take_action().

void tree_breakpoint::visit_return_list ( tree_return_list  )  [virtual]

Implements tree_walker.

Definition at line 327 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_simple_assignment ( tree_simple_assignment  )  [virtual]

Implements tree_walker.

Definition at line 333 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_simple_for_command ( tree_simple_for_command cmd  )  [virtual]
void tree_breakpoint::visit_statement ( tree_statement stmt  )  [virtual]
void tree_breakpoint::visit_statement_list ( tree_statement_list lst  )  [virtual]
void tree_breakpoint::visit_static_command ( tree_static_command cmd  )  [virtual]

Implements tree_walker.

Definition at line 114 of file pt-bp.cc.

References do_decl_command().

void tree_breakpoint::visit_switch_case ( tree_switch_case  )  [virtual]

Implements tree_walker.

Definition at line 372 of file pt-bp.cc.

References panic_impossible.

void tree_breakpoint::visit_switch_case_list ( tree_switch_case_list lst  )  [virtual]
void tree_breakpoint::visit_switch_command ( tree_switch_command cmd  )  [virtual]
void tree_breakpoint::visit_try_catch_command ( tree_try_catch_command cmd  )  [virtual]
void tree_breakpoint::visit_unwind_protect_command ( tree_unwind_protect_command cmd  )  [virtual]
void tree_breakpoint::visit_while_command ( tree_while_command cmd  )  [virtual]

Member Data Documentation

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

Referenced by take_action().

Definition at line 157 of file pt-bp.h.

Referenced by take_action().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines