Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

rutz::debug Namespace Reference


Functions

void abort_aux (const char *what, const char *where, int line_no) throw ()
 Helper function called frmo the GVX_ABORT() macro.
void dump (const char *what, int level, const char *where, int line_no) throw ()
void start_newline () throw ()
void panic_aux (const char *what, const char *where, int line_no) throw ()
void assert_aux (const char *what, const char *where, int line_no) throw ()
void precondition_aux (const char *what, const char *where, int line_no) throw ()
void postcondition_aux (const char *what, const char *where, int line_no) throw ()
void invariant_aux (const char *what, const char *where, int line_no) throw ()
int create_key (const char *filename)
 Allocate a debug key for the given filename.
bool is_valid_key (int key)
 Query whether the given value is a valid debug key.
int lookup_key (const char *filename)
 Get the debug key associated with the given filename.
int get_level_for_key (int key)
 Get the current debug level associated with the given debug key.
void set_level_for_key (int key, int level)
 Set the current debug level for the given debug key.
const char * get_filename_for_key (int key)
 Get the filename associated with the given debug key.
void set_global_level (int lev)
void eval (const char *what, int level, const char *where, int line_no, bool nl, bool expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, char expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned char expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, short expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned short expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, int expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned int expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, long expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, unsigned long expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, float expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, double expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, const char *expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, void *expr) throw ()
void eval (const char *what, int level, const char *where, int line_no, bool nl, rutz::fstring expr) throw ()


Function Documentation

void rutz::debug::abort_aux const char *  what,
const char *  where,
int  line_no
throw ()
 

Helper function called frmo the GVX_ABORT() macro.

Definition at line 41 of file abort.cc.

int rutz::debug::create_key const char *  filename  ) 
 

Allocate a debug key for the given filename.

Definition at line 178 of file debug.cc.

References GVX_DBG_REGISTER::g_debug_keys_mutex, GVX_DBG_REGISTER::g_debug_next_key, GVX_DBG_REGISTER::g_key_filenames, GVX_MUTEX_LOCK, and GVX_DBG_REGISTER::MAX_KEYS.

const char * rutz::debug::get_filename_for_key int  key  ) 
 

Get the filename associated with the given debug key.

Definition at line 219 of file debug.cc.

References GVX_DBG_REGISTER::g_debug_keys_mutex, GVX_DBG_REGISTER::g_key_filenames, and GVX_MUTEX_LOCK.

int rutz::debug::get_level_for_key int  key  ) 
 

Get the current debug level associated with the given debug key.

Definition at line 204 of file debug.cc.

References GVX_DBG_REGISTER::g_debug_keys_mutex, GVX_DBG_REGISTER::g_key_levels, GVX_MUTEX_LOCK, and GVX_DBG_REGISTER::MAX_KEYS.

bool rutz::debug::is_valid_key int  key  ) 
 

Query whether the given value is a valid debug key.

Definition at line 188 of file debug.cc.

References GVX_DBG_REGISTER::MAX_KEYS.

Referenced by GVX_DBG_REGISTER::setOneLevel(), and GVX_DBG_REGISTER::setOneLevelc().

int rutz::debug::lookup_key const char *  filename  ) 
 

Get the debug key associated with the given filename.

Returns -1 if the filename is not registered.

Definition at line 193 of file debug.cc.

References GVX_DBG_REGISTER::g_debug_keys_mutex, GVX_DBG_REGISTER::g_debug_next_key, GVX_DBG_REGISTER::g_key_filenames, GVX_MUTEX_LOCK, and i.

Referenced by Gtrace_Init(), and GVX_DBG_REGISTER::setOneLevelc().

void rutz::debug::set_level_for_key int  key,
int  level
 

Set the current debug level for the given debug key.

Definition at line 212 of file debug.cc.

References GVX_DBG_REGISTER::g_debug_keys_mutex, GVX_DBG_REGISTER::g_key_levels, GVX_MUTEX_LOCK, and GVX_DBG_REGISTER::MAX_KEYS.

Referenced by GVX_DBG_REGISTER::setOneLevel(), and GVX_DBG_REGISTER::setOneLevelc().


Generated on Mon Nov 23 15:57:28 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4