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

prefmem.c File Reference

Go to the source code of this file.

Functions

preferencemake_preference (byte type, Symbol *id, Symbol *attr, Symbol *value, Symbol *referent)
void deallocate_preference (preference *pref)
bool possibly_deallocate_preference_and_clones (preference *pref)
bool remove_preference_from_clones (preference *pref)
void add_preference_to_tm (preference *pref)
void remove_preference_from_tm (preference *pref)
void process_o_rejects_and_deallocate_them (preference *o_rejects)


Function Documentation

void add_preference_to_tm preference pref  ) 
 

Definition at line 219 of file prefmem.c.

References slot_struct::all_preferences, preference_struct::attr, preference_struct::id, preference_struct::in_tm, preference_struct::inst, slot_struct::isa_context_slot, make_slot(), mark_context_slot_as_acceptable_preference_changed(), mark_slot_as_changed(), preference_struct::match_goal_level, instantiation_struct::match_goal_level, preference_struct::next, post_link_addition(), preference, slot_struct::preferences, preference_struct::prev, print(), print_preference(), preference_struct::referent, slot, preference_struct::slot, preference_struct::type, and preference_struct::value.

Referenced by retract_instantiation().

void deallocate_preference preference pref  ) 
 

Definition at line 97 of file prefmem.c.

References abort_with_fatal_error(), preference_struct::attr, symbol_union::id, preference_struct::id, preference_struct::inst, preference_struct::match_goal, instantiation_struct::match_goal, preference_struct::on_goal_list, preference, identifier_struct::preferences_from_goal, instantiation_struct::preferences_generated, print(), print_preference(), preference_struct::reference_count, preference_struct::referent, preference_struct::type, and preference_struct::value.

Referenced by possibly_deallocate_preference_and_clones(), and remove_preference_from_clones().

preference* make_preference byte  type,
Symbol id,
Symbol attr,
Symbol value,
Symbol referent
 

Definition at line 64 of file prefmem.c.

References preference_struct::attr, byte, preference_struct::id, preference_struct::in_tm, preference_struct::next_clone, preference_struct::o_supported, preference_struct::on_goal_list, preference, preference_struct::prev_clone, print(), print_preference(), preference_struct::reference_count, preference_struct::referent, preference_struct::slot, Symbol, preference_struct::type, and preference_struct::value.

Referenced by execute_action(), make_clones_of_results(), and run_preference_semantics().

bool possibly_deallocate_preference_and_clones preference pref  ) 
 

Definition at line 151 of file prefmem.c.

References deallocate_preference(), preference_struct::next_clone, preference, preference_struct::prev_clone, and preference_struct::reference_count.

Referenced by remove_preference_from_clones().

void process_o_rejects_and_deallocate_them preference o_rejects  ) 
 

Definition at line 353 of file prefmem.c.

References preference_struct::all_of_slot_next, slot_struct::all_preferences, preference_struct::attr, find_slot(), preference_struct::id, preference_struct::next, preference, print(), print_preference(), remove_preference_from_tm(), slot, and preference_struct::value.

Referenced by retract_instantiation().

bool remove_preference_from_clones preference pref  ) 
 

Definition at line 190 of file prefmem.c.

References deallocate_preference(), preference_struct::next_clone, possibly_deallocate_preference_and_clones(), preference, preference_struct::prev_clone, and preference_struct::reference_count.

Referenced by run_preference_semantics().

void remove_preference_from_tm preference pref  ) 
 

Definition at line 306 of file prefmem.c.

References slot_struct::all_preferences, preference_struct::id, preference_struct::in_tm, slot_struct::isa_context_slot, mark_context_slot_as_acceptable_preference_changed(), mark_slot_as_changed(), post_link_removal(), preference, slot_struct::preferences, print(), print_preference(), preference_struct::referent, slot, preference_struct::slot, preference_struct::type, and preference_struct::value.

Referenced by garbage_collect_id(), process_o_rejects_and_deallocate_them(), retract_instantiation(), and run_preference_semantics().


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