Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

debugutil.c File Reference

Go to the source code of this file.

Functions

void detailed_print_wme (wme *w)
void detailed_print_preference (preference *p)
void examine_memory_pool (memory_pool *p)
void print_item_info_header (void)
void * get_item_in_pool_block (memory_pool *p, long n, long b, bool p_free)
void print_all_productions_in_block (long b, bool full, bool p_free)
void print_all_identifiers_in_block (long b, bool p_free)
void print_all_wmes_in_block (long b, bool p_free)
void print_all_conditions_in_block (long b, bool p_free)
void print_all_preferences_in_block (long b, bool p_free)
void print_all_instantiations_in_block (long b, wme_trace_type wtt, bool p_free)
int check_for_addr_in_free_list (memory_pool *p, void *addr)
void allocate_with_pool_fn (memory_pool *p, void **dest_item_pointer)
void free_with_pool_fn (memory_pool *p, void *item)


Function Documentation

void allocate_with_pool_fn memory_pool p,
void **  dest_item_pointer
 

Definition at line 204 of file debugutil.c.

References add_block_to_memory_pool(), and memory_pool.

int check_for_addr_in_free_list memory_pool p,
void *  addr
 

Definition at line 179 of file debugutil.c.

References memory_pool_struct::free_list, and memory_pool.

Referenced by get_item_in_pool_block().

void detailed_print_preference preference p  ) 
 

Referenced by print(), and print_all_preferences_in_block().

void detailed_print_wme wme w  ) 
 

Referenced by print(), and print_all_wmes_in_block().

void examine_memory_pool memory_pool p  ) 
 

Definition at line 7 of file debugutil.c.

References memory_pool_struct::first_block, memory_pool_struct::free_list, memory_pool_struct::free_list_length, memory_pool_struct::item_size, memory_pool_struct::items_per_block, memory_pool, memory_pool_struct::name, memory_pool_struct::num_blocks, memory_pool_struct::pool_size, print(), and memory_pool_struct::used_count.

Referenced by soar_Pool().

void free_with_pool_fn memory_pool p,
void *  item
 

Definition at line 217 of file debugutil.c.

References memory_pool.

void* get_item_in_pool_block memory_pool p,
long  n,
long  b,
bool  p_free
 

Definition at line 34 of file debugutil.c.

References check_for_addr_in_free_list(), memory_pool_struct::first_block, memory_pool_struct::item_size, memory_pool_struct::items_per_block, memory_pool, and print().

Referenced by print_all_conditions_in_block(), print_all_identifiers_in_block(), print_all_instantiations_in_block(), print_all_preferences_in_block(), print_all_productions_in_block(), and print_all_wmes_in_block().

void print_all_conditions_in_block long  b,
bool  p_free
 

Definition at line 134 of file debugutil.c.

References condition, get_item_in_pool_block(), print_condition(), and print_item_info_header().

Referenced by soar_Pool().

void print_all_identifiers_in_block long  b,
bool  p_free
 

Definition at line 100 of file debugutil.c.

References get_item_in_pool_block(), print(), print_item_info_header(), Symbol, and symbol_to_string().

Referenced by soar_Pool().

void print_all_instantiations_in_block long  b,
wme_trace_type  wtt,
bool  p_free
 

Definition at line 165 of file debugutil.c.

References get_item_in_pool_block(), instantiation, print_instantiation_with_wmes(), print_item_info_header(), and wme_trace_type.

Referenced by soar_Pool().

void print_all_preferences_in_block long  b,
bool  p_free
 

Definition at line 149 of file debugutil.c.

References detailed_print_preference(), get_item_in_pool_block(), preference, and print_item_info_header().

Referenced by soar_Pool().

void print_all_productions_in_block long  b,
bool  full,
bool  p_free
 

Definition at line 80 of file debugutil.c.

References get_item_in_pool_block(), production_struct::name, print_item_info_header(), print_production(), print_with_symbols(), and production.

Referenced by soar_Pool().

void print_all_wmes_in_block long  b,
bool  p_free
 

Definition at line 119 of file debugutil.c.

References detailed_print_wme(), get_item_in_pool_block(), print_item_info_header(), and wme.

Referenced by soar_Pool().

void print_item_info_header void   ) 
 

Definition at line 29 of file debugutil.c.

References print().

Referenced by print_all_conditions_in_block(), print_all_identifiers_in_block(), print_all_instantiations_in_block(), print_all_preferences_in_block(), print_all_productions_in_block(), and print_all_wmes_in_block().


Generated on Thu Dec 11 13:00:25 2003 for Soar Kernel by doxygen 1.3.5