MCPcopy Create free account
hub / github.com/SoarGroup/Soar / smem_reverse_hash_str

Function smem_reverse_hash_str

Core/SoarKernel/src/semantic_memory.cpp:1079–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1077}
1078
1079inline void smem_reverse_hash_str(agent* thisAgent, smem_hash_id hash_value, std::string& dest)
1080{
1081 thisAgent->smem_stmts->hash_rev_str->bind_int(1, hash_value);
1082 soar_module::exec_result res = thisAgent->smem_stmts->hash_rev_str->execute();
1083 (void)res; // quells compiler warning
1084 assert(res == soar_module::row);
1085 dest.assign(thisAgent->smem_stmts->hash_rev_str->column_text(0));
1086 thisAgent->smem_stmts->hash_rev_str->reinitialize();
1087}
1088
1089inline Symbol* smem_reverse_hash(agent* thisAgent, byte symbol_type, smem_hash_id hash_value)
1090{

Callers 4

smem_reverse_hashFunction · 0.85
smem_visualize_storeFunction · 0.85
smem_visualize_ltiFunction · 0.85
_smem_print_ltiFunction · 0.85

Calls 4

bind_intMethod · 0.80
column_textMethod · 0.80
reinitializeMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected