GNU Octave  4.2.1
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 | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
bp_table Class Reference

#include "debug.h"

Collaboration diagram for bp_table:
Collaboration graph
[legend]

Public Types

typedef
fname_bp_map::const_iterator 
const_fname_bp_map_iterator
 
typedef
fname_line_map::const_iterator 
const_fname_line_map_iterator
 
typedef intmap::const_iterator const_intmap_iterator
 
typedef std::map< std::string,
std::list< bp_type > > 
fname_bp_map
 
typedef fname_bp_map::iterator fname_bp_map_iterator
 
typedef std::map< std::string,
intmap
fname_line_map
 
typedef fname_line_map::iterator fname_line_map_iterator
 
typedef std::map< int, intintmap
 
typedef intmap::iterator intmap_iterator
 

Static Public Member Functions

static intmap add_breakpoint (const std::string &fname="", const intmap &lines=intmap(), const std::string &condition=bp_empty_string)
 
static bool condition_valid (const std::string &cond)
 
static void dbclear_all_signals (void)
 
static void dbstop_process_map_args (const octave_map &mv)
 
static bool debug_on_caught (const std::string &ID)
 
static bool debug_on_err (const std::string &ID)
 
static bool debug_on_warn (const std::string &ID)
 
static fname_bp_map get_breakpoint_list (const octave_value_list &fname_list)
 
static bool have_breakpoints (void)
 
static bool instance_ok (void)
 
static void remove_all_breakpoints (void)
 
static intmap remove_all_breakpoints_in_file (const std::string &fname, bool silent=false)
 
static int remove_breakpoint (const std::string &fname="", const intmap &lines=intmap())
 
static octave_map stop_on_err_warn_status (bool toScreen)
 

Private Types

typedef std::set< std::string >
::iterator 
bp_set_iterator
 
typedef std::set< std::string >
::const_iterator 
const_bp_set_iterator
 

Private Member Functions

 bp_table (void)
 
 ~bp_table (void)
 
intmap do_add_breakpoint (const std::string &fname, const intmap &lines, const std::string &condition)
 
bool do_add_breakpoint_1 (octave_user_code *fcn, const std::string &fname, const intmap &line, const std::string &condition, intmap &retval)
 
fname_bp_map do_get_breakpoint_list (const octave_value_list &fname_list)
 
bool do_have_breakpoints (void)
 
void do_remove_all_breakpoints (void)
 
intmap do_remove_all_breakpoints_in_file (const std::string &fname, bool silent)
 
intmap do_remove_all_breakpoints_in_file_1 (octave_user_code *fcn, const std::string &fname)
 
int do_remove_breakpoint (const std::string &, const intmap &lines)
 
int do_remove_breakpoint_1 (octave_user_code *fcn, const std::string &, const intmap &lines)
 

Static Private Member Functions

static void cleanup_instance (void)
 

Private Attributes

std::set< std::stringbp_set
 

Static Private Attributes

static std::set< std::stringcaught_that_stop
 
static std::set< std::stringerrors_that_stop
 
static bp_tableinstance = 0
 
static std::set< std::stringwarnings_that_stop
 

Friends

void parse_dbfunction_params (const char *, const octave_value_list &, std::string &, bp_table::intmap &, std::string &)
 

Detailed Description

Definition at line 47 of file debug.h.

Member Typedef Documentation

typedef std::set<std::string>::iterator bp_table::bp_set_iterator
private

Definition at line 160 of file debug.h.

typedef std::set<std::string>::const_iterator bp_table::const_bp_set_iterator
private

Definition at line 159 of file debug.h.

typedef fname_bp_map::const_iterator bp_table::const_fname_bp_map_iterator

Definition at line 71 of file debug.h.

typedef fname_line_map::const_iterator bp_table::const_fname_line_map_iterator

Definition at line 67 of file debug.h.

typedef intmap::const_iterator bp_table::const_intmap_iterator

Definition at line 62 of file debug.h.

Definition at line 70 of file debug.h.

typedef fname_bp_map::iterator bp_table::fname_bp_map_iterator

Definition at line 72 of file debug.h.

Definition at line 65 of file debug.h.

typedef fname_line_map::iterator bp_table::fname_line_map_iterator

Definition at line 68 of file debug.h.

Definition at line 60 of file debug.h.

typedef intmap::iterator bp_table::intmap_iterator

Definition at line 63 of file debug.h.

Constructor & Destructor Documentation

bp_table::bp_table ( void  )
inlineprivate

Definition at line 53 of file debug.h.

Referenced by instance_ok().

bp_table::~bp_table ( void  )
inlineprivate

Definition at line 55 of file debug.h.

Member Function Documentation

static intmap bp_table::add_breakpoint ( const std::string fname = "",
const intmap lines = intmap (),
const std::string condition = bp_empty_string 
)
inlinestatic

Definition at line 77 of file debug.h.

References fname.

Referenced by file_editor_tab::add_breakpoint_callback().

static void bp_table::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 174 of file debug.h.

Referenced by instance_ok().

bool bp_table::condition_valid ( const std::string cond)
static
void bp_table::dbclear_all_signals ( void  )
static
void bp_table::dbstop_process_map_args ( const octave_map mv)
static
static bool bp_table::debug_on_caught ( const std::string ID)
inlinestatic

Definition at line 133 of file debug.h.

Referenced by maybe_enter_debugger().

static bool bp_table::debug_on_err ( const std::string ID)
inlinestatic

Definition at line 126 of file debug.h.

Referenced by maybe_enter_debugger().

static bool bp_table::debug_on_warn ( const std::string ID)
inlinestatic

Definition at line 140 of file debug.h.

Referenced by warning_1().

bp_table::intmap bp_table::do_add_breakpoint ( const std::string fname,
const intmap lines,
const std::string condition 
)
private
bool bp_table::do_add_breakpoint_1 ( octave_user_code fcn,
const std::string fname,
const intmap line,
const std::string condition,
bp_table::intmap retval 
)
private
bp_table::fname_bp_map bp_table::do_get_breakpoint_list ( const octave_value_list fname_list)
private
bool bp_table::do_have_breakpoints ( void  )
inlineprivate

Definition at line 198 of file debug.h.

void bp_table::do_remove_all_breakpoints ( void  )
private
bp_table::intmap bp_table::do_remove_all_breakpoints_in_file ( const std::string fname,
bool  silent 
)
private
intmap bp_table::do_remove_all_breakpoints_in_file_1 ( octave_user_code fcn,
const std::string fname 
)
private
int bp_table::do_remove_breakpoint ( const std::string fname,
const intmap lines 
)
private
int bp_table::do_remove_breakpoint_1 ( octave_user_code fcn,
const std::string fname,
const intmap lines 
)
private
static fname_bp_map bp_table::get_breakpoint_list ( const octave_value_list fname_list)
inlinestatic

Definition at line 112 of file debug.h.

static bool bp_table::have_breakpoints ( void  )
inlinestatic
bool bp_table::instance_ok ( void  )
static

Definition at line 456 of file debug.cc.

References singleton_cleanup_list::add(), bp_table(), cleanup_instance(), error(), and instance.

static void bp_table::remove_all_breakpoints ( void  )
inlinestatic

Definition at line 103 of file debug.h.

static intmap bp_table::remove_all_breakpoints_in_file ( const std::string fname,
bool  silent = false 
)
inlinestatic
static int bp_table::remove_breakpoint ( const std::string fname = "",
const intmap lines = intmap () 
)
inlinestatic

Definition at line 86 of file debug.h.

References fname.

Referenced by file_editor_tab::remove_breakpoint_callback().

static octave_map bp_table::stop_on_err_warn_status ( bool  toScreen)
static

Friends And Related Function Documentation

void parse_dbfunction_params ( const char *  who,
const octave_value_list args,
std::string symbol_name,
bp_table::intmap lines,
std::string cond 
)
friend

Definition at line 226 of file debug.cc.

Member Data Documentation

std::set<std::string> bp_table::bp_set
private
std::set< std::string > bp_table::caught_that_stop
staticprivate

Definition at line 169 of file debug.h.

Referenced by dbstop_process_map_args(), and parse_dbfunction_params().

std::set< std::string > bp_table::errors_that_stop
staticprivate

Definition at line 168 of file debug.h.

Referenced by dbstop_process_map_args(), and parse_dbfunction_params().

bp_table * bp_table::instance = 0
staticprivate

Definition at line 172 of file debug.h.

Referenced by instance_ok().

std::set< std::string > bp_table::warnings_that_stop
staticprivate

Definition at line 170 of file debug.h.

Referenced by dbstop_process_map_args(), and parse_dbfunction_params().


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