ardour
Classes | Namespaces | Typedefs | Functions | Variables
boost_debug.cc File Reference
#include "libpbd-config.h"
#include <stdlib.h>
#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <glibmm/threads.h>
#include <boost/shared_ptr.hpp>
#include "pbd/stacktrace.h"
#include "pbd/boost_debug.h"

Go to the source code of this file.

Classes

class  Backtrace
 
struct  BTPair
 
struct  SPDebug
 

Namespaces

 boost
 

Typedefs

typedef std::multimap< void
const *, SPDebug * > 
PointerMap
 
typedef std::map< void const
*, const char * > 
IPointerMap
 

Functions

std::ostream & operator<< (std::ostream &str, const Backtrace &bt)
 
std::ostream & operator<< (std::ostream &str, const BTPair &btp)
 
std::ostream & operator<< (std::ostream &str, const SPDebug &spd)
 
PointerMapsptrs ()
 
IPointerMapinteresting_pointers ()
 
static Glib::Threads::Mutex & the_lock ()
 
static bool is_interesting_object (void const *ptr)
 
void boost_debug_shared_ptr_show_live_debugging (bool yn)
 
void boost_debug_shared_ptr_mark_interesting (void *ptr, const char *type)
 
void boost_debug_shared_ptr_operator_equals (void const *sp, void const *old_obj, int old_use_count, void const *obj, int new_use_count)
 
void boost_debug_shared_ptr_reset (void const *sp, void const *old_obj, int old_use_count, void const *obj, int new_use_count)
 
void boost_debug_shared_ptr_destructor (void const *sp, void const *obj, int use_count)
 
void boost_debug_shared_ptr_constructor (void const *sp, void const *obj, int use_count)
 
void boost_debug_count_ptrs ()
 
void boost_debug_list_ptrs ()
 
void boost::sp_scalar_constructor_hook (void *, std::size_t, void *)
 
void boost::sp_scalar_destructor_hook (void *, std::size_t, void *)
 
void boost::sp_counter_ref_hook (void *, long)
 
void boost::sp_counter_release_hook (void *, long)
 
void boost::sp_array_constructor_hook (void *)
 
void boost::sp_array_destructor_hook (void *)
 
void boost::sp_scalar_constructor_hook (void *)
 
void boost::sp_scalar_destructor_hook (void *)
 

Variables

static PointerMap_sptrs
 
static IPointerMap_interesting_pointers
 
static Glib::Threads::Mutex * _the_lock
 
static bool debug_out = false
 

Typedef Documentation

typedef std::map<void const*,const char*> IPointerMap

Definition at line 119 of file boost_debug.cc.

typedef std::multimap<void const*,SPDebug*> PointerMap

Definition at line 118 of file boost_debug.cc.

Function Documentation

void boost_debug_count_ptrs ( )

Definition at line 308 of file boost_debug.cc.

void boost_debug_list_ptrs ( )

Definition at line 315 of file boost_debug.cc.

void boost_debug_shared_ptr_constructor ( void const *  sp,
void const *  obj,
int  use_count 
)

Definition at line 290 of file boost_debug.cc.

void boost_debug_shared_ptr_destructor ( void const *  sp,
void const *  obj,
int  use_count 
)

Definition at line 276 of file boost_debug.cc.

void boost_debug_shared_ptr_mark_interesting ( void *  ptr,
const char *  type 
)

Definition at line 169 of file boost_debug.cc.

void boost_debug_shared_ptr_operator_equals ( void const *  sp,
void const *  old_obj,
int  old_use_count,
void const *  obj,
int  new_use_count 
)

Definition at line 180 of file boost_debug.cc.

void boost_debug_shared_ptr_reset ( void const *  sp,
void const *  old_obj,
int  old_use_count,
void const *  obj,
int  new_use_count 
)

Definition at line 228 of file boost_debug.cc.

void boost_debug_shared_ptr_show_live_debugging ( bool  yn)

Definition at line 163 of file boost_debug.cc.

IPointerMap& interesting_pointers ( )

Definition at line 132 of file boost_debug.cc.

static bool is_interesting_object ( void const *  ptr)
static

Definition at line 149 of file boost_debug.cc.

std::ostream& operator<< ( std::ostream &  str,
const Backtrace bt 
)

Definition at line 48 of file boost_debug.cc.

std::ostream& operator<< ( std::ostream &  str,
const BTPair btp 
)

Definition at line 89 of file boost_debug.cc.

std::ostream& operator<< ( std::ostream &  str,
const SPDebug spd 
)

Definition at line 108 of file boost_debug.cc.

PointerMap& sptrs ( )

Definition at line 124 of file boost_debug.cc.

static Glib::Threads::Mutex& the_lock ( )
static

Definition at line 140 of file boost_debug.cc.

Variable Documentation

IPointerMap* _interesting_pointers
static

Definition at line 131 of file boost_debug.cc.

PointerMap* _sptrs
static

Definition at line 123 of file boost_debug.cc.

Glib::Threads::Mutex* _the_lock
static

Definition at line 139 of file boost_debug.cc.

bool debug_out = false
static

Definition at line 160 of file boost_debug.cc.