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

bp_table Class Reference

#include "debug.h"

Collaboration diagram for bp_table:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
fname_line_map::const_iterator 
const_fname_line_map_iterator
typedef intmap::const_iterator const_intmap_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())
static fname_line_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())

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)
fname_line_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)
int do_remove_breakpoint (const std::string &, const intmap &lines)

Static Private Member Functions

static void cleanup_instance (void)

Private Attributes

std::set< std::string > bp_set

Static Private Attributes

static bp_tableinstance = 0

Detailed Description

Definition at line 36 of file debug.h.


Member Typedef Documentation

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

Definition at line 109 of file debug.h.

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

Definition at line 108 of file debug.h.

typedef fname_line_map::const_iterator bp_table::const_fname_line_map_iterator

Definition at line 55 of file debug.h.

typedef intmap::const_iterator bp_table::const_intmap_iterator

Definition at line 50 of file debug.h.

typedef std::map<std::string, intmap> bp_table::fname_line_map

Definition at line 53 of file debug.h.

typedef fname_line_map::iterator bp_table::fname_line_map_iterator

Definition at line 56 of file debug.h.

typedef std::map<int, int> bp_table::intmap

Definition at line 48 of file debug.h.

typedef intmap::iterator bp_table::intmap_iterator

Definition at line 51 of file debug.h.


Constructor & Destructor Documentation

bp_table::bp_table ( void   )  [inline, private]

Definition at line 42 of file debug.h.

Referenced by instance_ok().

bp_table::~bp_table ( void   )  [inline, private]

Definition at line 44 of file debug.h.


Member Function Documentation

static intmap bp_table::add_breakpoint ( const std::string &  fname = "",
const intmap lines = intmap () 
) [inline, static]

Definition at line 61 of file debug.h.

Referenced by DEFUN().

static void bp_table::cleanup_instance ( void   )  [inline, static, private]

Definition at line 116 of file debug.h.

Referenced by instance_ok().

bp_table::intmap bp_table::do_add_breakpoint ( const std::string &  fname,
const intmap lines 
) [private]
bp_table::fname_line_map bp_table::do_get_breakpoint_list ( const octave_value_list fname_list  )  [private]
bool bp_table::do_have_breakpoints ( void   )  [inline, private]

Definition at line 129 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]
int bp_table::do_remove_breakpoint ( const std::string &  fname,
const intmap lines 
) [private]
static fname_line_map bp_table::get_breakpoint_list ( const octave_value_list fname_list  )  [inline, static]

Definition at line 94 of file debug.h.

Referenced by DEFUN().

static bool bp_table::have_breakpoints ( void   )  [inline, static]
bool bp_table::instance_ok ( void   )  [static]

Definition at line 255 of file debug.cc.

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

static void bp_table::remove_all_breakpoints ( void   )  [inline, static]

Definition at line 85 of file debug.h.

static intmap bp_table::remove_all_breakpoints_in_file ( const std::string &  fname,
bool  silent = false 
) [inline, static]

Definition at line 77 of file debug.h.

Referenced by do_remove_all_breakpoints(), do_remove_breakpoint(), and out_of_date_check().

static int bp_table::remove_breakpoint ( const std::string &  fname = "",
const intmap lines = intmap () 
) [inline, static]

Definition at line 69 of file debug.h.

Referenced by DEFUN().


Member Data Documentation

std::set<std::string> bp_table::bp_set [private]
bp_table * bp_table::instance = 0 [static, private]

Definition at line 114 of file debug.h.

Referenced by instance_ok().


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