Soar Kernel
9.3.2 08-06-12
|
Go to the source code of this file.
Data Structures | |
struct | action_struct |
struct | rhs_function_struct |
Macros | |
#define | FUNCALL_ACTION 1 |
#define | I_SUPPORT 2 |
#define | MAKE_ACTION 0 |
#define | O_SUPPORT 1 |
#define | UNKNOWN_SUPPORT 0 |
Typedefs | |
typedef struct action_struct | action |
typedef struct agent_struct | agent |
typedef char | Bool |
typedef unsigned char | byte |
typedef struct cons_struct | cons |
typedef cons | list |
typedef unsigned short | rete_node_level |
typedef struct rhs_function_struct | rhs_function |
typedef Symbol *(* | rhs_function_routine )(agent *thisAgent,::list *args, void *user_data)) |
typedef char * | rhs_value |
typedef union symbol_union | Symbol |
#define FUNCALL_ACTION 1 |
Definition at line 207 of file rhsfun.h.
Referenced by copy_action_list_and_substitute_varnames(), deallocate_action_list(), execute_action(), parse_rhs_action(), print_action_list(), reteload_rhs_action(), retesave_rhs_action(), same_rhs(), and shouldCreateInstantiation().
#define I_SUPPORT 2 |
Definition at line 211 of file rhsfun.h.
Referenced by calculate_compile_time_o_support().
#define MAKE_ACTION 0 |
Definition at line 206 of file rhsfun.h.
Referenced by action_is_in_tc(), add_action_to_tc(), add_all_variables_in_action(), add_production_to_rete(), calculate_compile_time_o_support(), calculate_support_for_instantiation_preferences(), copy_and_variablize_result_list(), legal_to_execute_action(), make_production(), p_node_left_addition(), parse_preferences(), parse_preferences_soar8_non_operator(), pick_actions_with_matching_id(), rl_make_simple_action(), rl_valid_rule(), rl_valid_template(), smem_valid_production(), and substitute_for_placeholders_in_action_list().
#define O_SUPPORT 1 |
Definition at line 210 of file rhsfun.h.
Referenced by calculate_compile_time_o_support().
#define UNKNOWN_SUPPORT 0 |
Definition at line 209 of file rhsfun.h.
Referenced by calculate_compile_time_o_support(), and make_production().
typedef struct action_struct action |
typedef struct agent_struct agent |
typedef struct cons_struct cons |
typedef unsigned short rete_node_level |
typedef struct rhs_function_struct rhs_function |
typedef union symbol_union Symbol |
void add_rhs_function | ( | agent * | thisAgent, |
Symbol * | name, | ||
rhs_function_routine | f, | ||
int | num_args_expected, | ||
Bool | can_be_rhs_value, | ||
Bool | can_be_stand_alone_action, | ||
void * | user_data | ||
) |
Definition at line 63 of file rhsfun.cpp.
References allocate_memory(), rhs_function_struct::can_be_rhs_value, rhs_function_struct::can_be_stand_alone_action, rhs_function_struct::f, MISCELLANEOUS_MEM_USAGE, rhs_function_struct::name, rhs_function_struct::next, NIL, rhs_function_struct::num_args_expected, print(), print_with_symbols(), agent_struct::rhs_functions, and rhs_function_struct::user_data.
Referenced by init_built_in_rhs_functions(), and init_built_in_rhs_math_functions().
Definition at line 127 of file rhsfun.h.
Referenced by copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), parse_function_call_after_lparen(), and reteload_rhs_value().
void init_built_in_rhs_functions | ( | agent * | thisAgent | ) |
Definition at line 731 of file rhsfun.cpp.
References accept_rhs_function_code(), add_rhs_function(), capitalize_symbol_rhs_function_code(), count_rhs_function_code(), crlf_rhs_function_code(), deep_copy_rhs_function_code(), dont_learn_rhs_function_code(), FALSE, force_learn_rhs_function_code(), halt_rhs_function_code(), ifeq_rhs_function_code(), init_built_in_rhs_math_functions(), make_constant_symbol_rhs_function_code(), make_sym_constant(), strlen_rhs_function_code(), timestamp_rhs_function_code(), trim_rhs_function_code(), TRUE, and write_rhs_function_code().
Referenced by init_soar_agent().
rhs_function* lookup_rhs_function | ( | agent * | thisAgent, |
Symbol * | name | ||
) |
Definition at line 102 of file rhsfun.cpp.
References rhs_function_struct::name, rhs_function_struct::next, NIL, and agent_struct::rhs_functions.
Referenced by parse_function_call_after_lparen(), and reteload_rhs_value().
void remove_built_in_rhs_functions | ( | agent * | thisAgent | ) |
Definition at line 789 of file rhsfun.cpp.
References find_sym_constant(), remove_built_in_rhs_math_functions(), and remove_rhs_function().
Referenced by destroy_soar_agent().
Definition at line 114 of file rhsfun.cpp.
References free_memory(), MISCELLANEOUS_MEM_USAGE, rhs_function_struct::name, rhs_function_struct::next, NIL, print_with_symbols(), agent_struct::rhs_functions, and symbol_remove_ref().
Referenced by remove_built_in_rhs_functions(), and remove_built_in_rhs_math_functions().
|
inline |
Definition at line 133 of file rhsfun.h.
Referenced by fixup_rhs_value_variable_references(), and reteload_rhs_value().
|
inline |
Definition at line 101 of file rhsfun.h.
Referenced by all_variables_in_rhs_value_bound(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), deallocate_rhs_value(), fixup_rhs_value_variable_references(), legal_to_execute_action(), and retesave_rhs_value().
|
inline |
Definition at line 107 of file rhsfun.h.
Referenced by calculate_support_for_instantiation_preferences(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), deallocate_rhs_value(), instantiate_rhs_value(), p_node_left_addition(), retesave_rhs_value(), rhs_value_to_string(), and shouldCreateInstantiation().
|
inline |
Definition at line 95 of file rhsfun.h.
Referenced by _smem_lti_from_rhs_value(), add_action_to_tc(), add_all_variables_in_rhs_value(), calculate_compile_time_o_support(), calculate_support_for_instantiation_preferences(), first_letter_from_rhs_value(), fixup_rhs_value_variable_references(), instantiate_rhs_value(), p_node_left_addition(), retesave_rhs_value(), rhs_value_to_string(), rl_valid_template(), same_rhs(), shouldCreateInstantiation(), and substitute_for_placeholders_in_action_list().
|
inline |
Definition at line 113 of file rhsfun.h.
Referenced by copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), deallocate_rhs_value(), instantiate_rhs_value(), and shouldCreateInstantiation().
Definition at line 151 of file rhsfun.h.
Referenced by _smem_lti_from_rhs_value(), add_all_variables_in_rhs_value(), all_variables_in_rhs_value_bound(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), deallocate_rhs_value(), fixup_rhs_value_variable_references(), instantiate_rhs_value(), retesave_rhs_value(), and rhs_value_to_string().
|
inline |
Definition at line 157 of file rhsfun.h.
Referenced by calculate_support_for_instantiation_preferences(), copy_rhs_value_and_substitute_varnames(), instantiate_rhs_value(), p_node_left_addition(), retesave_rhs_value(), and shouldCreateInstantiation().
|
inline |
Definition at line 163 of file rhsfun.h.
Referenced by calculate_support_for_instantiation_preferences(), copy_rhs_value_and_substitute_varnames(), instantiate_rhs_value(), p_node_left_addition(), retesave_rhs_value(), and shouldCreateInstantiation().
Definition at line 145 of file rhsfun.h.
Referenced by _smem_lti_from_rhs_value(), action_is_in_tc(), add_action_to_tc(), add_all_variables_in_action(), add_all_variables_in_rhs_value(), all_variables_in_rhs_value_bound(), calculate_compile_time_o_support(), calculate_support_for_instantiation_preferences(), copy_rhs_value(), copy_rhs_value_and_substitute_varnames(), deallocate_rhs_value(), first_letter_from_rhs_value(), fixup_rhs_value_variable_references(), instantiate_rhs_value(), make_production(), p_node_left_addition(), pick_actions_with_matching_id(), print_action_list(), reteload_node_and_children(), retesave_rhs_value(), rhs_value_to_string(), rl_perform_update(), rl_valid_template(), same_rhs(), shouldCreateInstantiation(), and smem_valid_production().
|
inline |
Definition at line 169 of file rhsfun.h.
Referenced by copy_rhs_value_and_substitute_varnames(), instantiate_rhs_value(), and retesave_rhs_value().
Definition at line 121 of file rhsfun.h.
Referenced by copy_and_variablize_result_list(), copy_rhs_value_and_substitute_varnames(), parse_attr_value_make(), parse_preferences(), parse_preferences_soar8_non_operator(), parse_rhs_value(), reteload_rhs_value(), rl_make_simple_action(), and rl_perform_update().
|
inline |
Definition at line 139 of file rhsfun.h.
Referenced by fixup_rhs_value_variable_references(), and reteload_rhs_value().