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

#include "pt-bp.h"

Inheritance diagram for octave::tree_breakpoint:
Collaboration diagram for octave::tree_breakpoint:

Public Types

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

Public Member Functions

 tree_breakpoint (int l, action a, const std::string &c="")
 
 tree_breakpoint (const tree_breakpoint &)=delete
 
 ~tree_breakpoint (void)=default
 
octave_value_list get_cond_list (void)
 
int get_line (void)
 
octave_value_list get_list (void)
 
tree_breakpointoperator= (const tree_breakpoint &)=delete
 
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 &)
 
virtual void visit_boolean_expression (tree_boolean_expression &expr)
 
void visit_break_command (tree_break_command &)
 
void visit_cell (tree_cell &)
 
virtual void visit_classdef (tree_classdef &)
 
virtual void visit_classdef_attribute (tree_classdef_attribute &)
 
virtual void visit_classdef_attribute_list (tree_classdef_attribute_list &)
 
virtual void visit_classdef_body (tree_classdef_body &)
 
virtual void visit_classdef_enum (tree_classdef_enum &)
 
virtual void visit_classdef_enum_block (tree_classdef_enum_block &)
 
virtual void visit_classdef_enum_list (tree_classdef_enum_list &)
 
virtual void visit_classdef_event (tree_classdef_event &)
 
virtual void visit_classdef_events_block (tree_classdef_events_block &)
 
virtual void visit_classdef_events_list (tree_classdef_events_list &)
 
virtual void visit_classdef_methods_block (tree_classdef_methods_block &)
 
virtual void visit_classdef_methods_list (tree_classdef_methods_list &)
 
virtual void visit_classdef_properties_block (tree_classdef_properties_block &)
 
virtual void visit_classdef_property (tree_classdef_property &)
 
virtual void visit_classdef_property_list (tree_classdef_property_list &)
 
virtual void visit_classdef_superclass (tree_classdef_superclass &)
 
virtual void visit_classdef_superclass_list (tree_classdef_superclass_list &)
 
void visit_colon_expression (tree_colon_expression &)
 
void visit_complex_for_command (tree_complex_for_command &)
 
virtual void visit_compound_binary_expression (tree_compound_binary_expression &expr)
 
void visit_constant (tree_constant &)
 
void visit_continue_command (tree_continue_command &)
 
void visit_decl_command (tree_decl_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_funcall (tree_funcall &)
 
void visit_function_def (tree_function_def &)
 
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_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

void take_action (tree &tr)
 
void take_action (tree_statement &stmt)
 

Private Attributes

action m_action
 
octave_value_list m_bp_cond_list
 
octave_value_list m_bp_list
 
std::string m_condition
 
bool m_found
 
int m_line
 

Detailed Description

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

Member Enumeration Documentation

◆ action

Enumerator
set 
clear 
list 

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

Constructor & Destructor Documentation

◆ tree_breakpoint() [1/2]

octave::tree_breakpoint::tree_breakpoint ( int  l,
action  a,
const std::string c = "" 
)
inline

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

◆ tree_breakpoint() [2/2]

octave::tree_breakpoint::tree_breakpoint ( const tree_breakpoint )
delete

◆ ~tree_breakpoint()

octave::tree_breakpoint::~tree_breakpoint ( void  )
default

Member Function Documentation

◆ get_cond_list()

octave_value_list octave::tree_breakpoint::get_cond_list ( void  )
inline

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

References m_bp_cond_list.

Referenced by octave::tree_statement_list::breakpoints_and_conds().

◆ get_line()

int octave::tree_breakpoint::get_line ( void  )
inline

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

References m_found, and m_line.

Referenced by octave::tree_statement_list::set_breakpoint().

◆ get_list()

octave_value_list octave::tree_breakpoint::get_list ( void  )
inline

◆ operator=()

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

◆ success()

bool octave::tree_breakpoint::success ( void  ) const
inline

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

References m_found.

◆ take_action() [1/2]

◆ take_action() [2/2]

◆ visit_anon_fcn_handle()

void octave::tree_breakpoint::visit_anon_fcn_handle ( tree_anon_fcn_handle )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_argument_list()

void octave::tree_breakpoint::visit_argument_list ( tree_argument_list )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_binary_expression()

void octave::tree_breakpoint::visit_binary_expression ( tree_binary_expression )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_boolean_expression()

void octave::tree_walker::visit_boolean_expression ( tree_boolean_expression expr)
virtualinherited

◆ visit_break_command()

void octave::tree_breakpoint::visit_break_command ( tree_break_command cmd)
virtual

Implements octave::tree_walker.

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

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

◆ visit_cell()

void octave::tree_breakpoint::visit_cell ( tree_cell )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_classdef()

virtual void octave::tree_walker::visit_classdef ( tree_classdef )
inlinevirtualinherited

Definition at line 294 of file pt-walk.h.

Referenced by octave::tree_classdef::accept().

◆ visit_classdef_attribute()

virtual void octave::tree_walker::visit_classdef_attribute ( tree_classdef_attribute )
inlinevirtualinherited

Definition at line 246 of file pt-walk.h.

Referenced by octave::tree_classdef_attribute::accept().

◆ visit_classdef_attribute_list()

virtual void octave::tree_walker::visit_classdef_attribute_list ( tree_classdef_attribute_list )
inlinevirtualinherited

Definition at line 249 of file pt-walk.h.

Referenced by octave::tree_classdef_attribute_list::accept().

◆ visit_classdef_body()

virtual void octave::tree_walker::visit_classdef_body ( tree_classdef_body )
inlinevirtualinherited

Definition at line 291 of file pt-walk.h.

Referenced by octave::tree_classdef_body::accept().

◆ visit_classdef_enum()

virtual void octave::tree_walker::visit_classdef_enum ( tree_classdef_enum )
inlinevirtualinherited

Definition at line 282 of file pt-walk.h.

Referenced by octave::tree_classdef_enum::accept().

◆ visit_classdef_enum_block()

virtual void octave::tree_walker::visit_classdef_enum_block ( tree_classdef_enum_block )
inlinevirtualinherited

Definition at line 288 of file pt-walk.h.

Referenced by octave::tree_classdef_enum_block::accept().

◆ visit_classdef_enum_list()

virtual void octave::tree_walker::visit_classdef_enum_list ( tree_classdef_enum_list )
inlinevirtualinherited

Definition at line 285 of file pt-walk.h.

Referenced by octave::tree_classdef_enum_list::accept().

◆ visit_classdef_event()

virtual void octave::tree_walker::visit_classdef_event ( tree_classdef_event )
inlinevirtualinherited

Definition at line 273 of file pt-walk.h.

Referenced by octave::tree_classdef_event::accept().

◆ visit_classdef_events_block()

virtual void octave::tree_walker::visit_classdef_events_block ( tree_classdef_events_block )
inlinevirtualinherited

Definition at line 279 of file pt-walk.h.

Referenced by octave::tree_classdef_events_block::accept().

◆ visit_classdef_events_list()

virtual void octave::tree_walker::visit_classdef_events_list ( tree_classdef_events_list )
inlinevirtualinherited

Definition at line 276 of file pt-walk.h.

Referenced by octave::tree_classdef_events_list::accept().

◆ visit_classdef_methods_block()

virtual void octave::tree_walker::visit_classdef_methods_block ( tree_classdef_methods_block )
inlinevirtualinherited

Definition at line 270 of file pt-walk.h.

Referenced by octave::tree_classdef_methods_block::accept().

◆ visit_classdef_methods_list()

virtual void octave::tree_walker::visit_classdef_methods_list ( tree_classdef_methods_list )
inlinevirtualinherited

Definition at line 267 of file pt-walk.h.

Referenced by octave::tree_classdef_methods_list::accept().

◆ visit_classdef_properties_block()

virtual void octave::tree_walker::visit_classdef_properties_block ( tree_classdef_properties_block )
inlinevirtualinherited

Definition at line 264 of file pt-walk.h.

Referenced by octave::tree_classdef_properties_block::accept().

◆ visit_classdef_property()

virtual void octave::tree_walker::visit_classdef_property ( tree_classdef_property )
inlinevirtualinherited

Definition at line 258 of file pt-walk.h.

Referenced by octave::tree_classdef_property::accept().

◆ visit_classdef_property_list()

virtual void octave::tree_walker::visit_classdef_property_list ( tree_classdef_property_list )
inlinevirtualinherited

Definition at line 261 of file pt-walk.h.

Referenced by octave::tree_classdef_property_list::accept().

◆ visit_classdef_superclass()

virtual void octave::tree_walker::visit_classdef_superclass ( tree_classdef_superclass )
inlinevirtualinherited

Definition at line 252 of file pt-walk.h.

Referenced by octave::tree_classdef_superclass::accept().

◆ visit_classdef_superclass_list()

virtual void octave::tree_walker::visit_classdef_superclass_list ( tree_classdef_superclass_list )
inlinevirtualinherited

Definition at line 255 of file pt-walk.h.

Referenced by octave::tree_classdef_superclass_list::accept().

◆ visit_colon_expression()

void octave::tree_breakpoint::visit_colon_expression ( tree_colon_expression )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_complex_for_command()

void octave::tree_breakpoint::visit_complex_for_command ( tree_complex_for_command cmd)
virtual

◆ visit_compound_binary_expression()

void octave::tree_walker::visit_compound_binary_expression ( tree_compound_binary_expression expr)
virtualinherited

◆ visit_constant()

void octave::tree_breakpoint::visit_constant ( tree_constant )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_continue_command()

void octave::tree_breakpoint::visit_continue_command ( tree_continue_command cmd)
virtual

Implements octave::tree_walker.

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

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

◆ visit_decl_command()

void octave::tree_breakpoint::visit_decl_command ( tree_decl_command cmd)
virtual

Implements octave::tree_walker.

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

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

◆ visit_decl_elt()

void octave::tree_breakpoint::visit_decl_elt ( tree_decl_elt )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_decl_init_list()

void octave::tree_breakpoint::visit_decl_init_list ( tree_decl_init_list )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_do_until_command()

void octave::tree_breakpoint::visit_do_until_command ( tree_do_until_command cmd)
virtual

◆ visit_fcn_handle()

void octave::tree_breakpoint::visit_fcn_handle ( tree_fcn_handle )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_funcall()

void octave::tree_breakpoint::visit_funcall ( tree_funcall )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_function_def()

void octave::tree_breakpoint::visit_function_def ( tree_function_def fdef)
virtual

◆ visit_identifier()

void octave::tree_breakpoint::visit_identifier ( tree_identifier )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_if_clause()

void octave::tree_breakpoint::visit_if_clause ( tree_if_clause )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_if_command()

void octave::tree_breakpoint::visit_if_command ( tree_if_command cmd)
virtual

◆ visit_if_command_list()

void octave::tree_breakpoint::visit_if_command_list ( tree_if_command_list lst)
virtual

Implements octave::tree_walker.

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

References octave::tree_statement_list::accept(), m_found, m_line, t, and take_action().

◆ visit_index_expression()

void octave::tree_breakpoint::visit_index_expression ( tree_index_expression )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_matrix()

void octave::tree_breakpoint::visit_matrix ( tree_matrix )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_multi_assignment()

void octave::tree_breakpoint::visit_multi_assignment ( tree_multi_assignment )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_no_op_command()

void octave::tree_breakpoint::visit_no_op_command ( tree_no_op_command cmd)
virtual

◆ visit_octave_user_function()

void octave::tree_breakpoint::visit_octave_user_function ( octave_user_function fcn)
virtual

Implements octave::tree_walker.

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

References octave::tree_statement_list::accept(), and fcn.

◆ visit_octave_user_function_header()

void octave::tree_breakpoint::visit_octave_user_function_header ( octave_user_function )

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

References panic_impossible.

◆ visit_octave_user_function_trailer()

void octave::tree_breakpoint::visit_octave_user_function_trailer ( octave_user_function )

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

References panic_impossible.

◆ visit_octave_user_script()

void octave::tree_breakpoint::visit_octave_user_script ( octave_user_script fcn)
virtual

Implements octave::tree_walker.

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

References octave::tree_statement_list::accept(), and fcn.

◆ visit_parameter_list()

void octave::tree_breakpoint::visit_parameter_list ( tree_parameter_list )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_postfix_expression()

void octave::tree_breakpoint::visit_postfix_expression ( tree_postfix_expression )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_prefix_expression()

void octave::tree_breakpoint::visit_prefix_expression ( tree_prefix_expression )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_return_command()

void octave::tree_breakpoint::visit_return_command ( tree_return_command cmd)
virtual

Implements octave::tree_walker.

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

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

◆ visit_return_list()

void octave::tree_breakpoint::visit_return_list ( tree_return_list )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_simple_assignment()

void octave::tree_breakpoint::visit_simple_assignment ( tree_simple_assignment )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_simple_for_command()

void octave::tree_breakpoint::visit_simple_for_command ( tree_simple_for_command cmd)
virtual

◆ visit_statement()

void octave::tree_breakpoint::visit_statement ( tree_statement stmt)
virtual

◆ visit_statement_list()

void octave::tree_breakpoint::visit_statement_list ( tree_statement_list lst)
virtual

Implements octave::tree_walker.

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

References m_found.

◆ visit_switch_case()

void octave::tree_breakpoint::visit_switch_case ( tree_switch_case )
virtual

Implements octave::tree_walker.

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

References panic_impossible.

◆ visit_switch_case_list()

void octave::tree_breakpoint::visit_switch_case_list ( tree_switch_case_list lst)
virtual

Implements octave::tree_walker.

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

References octave::tree_statement_list::accept(), m_found, m_line, t, and take_action().

◆ visit_switch_command()

void octave::tree_breakpoint::visit_switch_command ( tree_switch_command cmd)
virtual

◆ visit_try_catch_command()

void octave::tree_breakpoint::visit_try_catch_command ( tree_try_catch_command cmd)
virtual

◆ visit_unwind_protect_command()

void octave::tree_breakpoint::visit_unwind_protect_command ( tree_unwind_protect_command cmd)
virtual

◆ visit_while_command()

void octave::tree_breakpoint::visit_while_command ( tree_while_command cmd)
virtual

Member Data Documentation

◆ m_action

action octave::tree_breakpoint::m_action
private

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

Referenced by take_action().

◆ m_bp_cond_list

octave_value_list octave::tree_breakpoint::m_bp_cond_list
private

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

Referenced by get_cond_list(), and take_action().

◆ m_bp_list

octave_value_list octave::tree_breakpoint::m_bp_list
private

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

Referenced by get_list(), and take_action().

◆ m_condition

std::string octave::tree_breakpoint::m_condition
private

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

Referenced by take_action().

◆ m_found

◆ m_line


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