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

Function smem_variable_create

Core/SoarKernel/src/semantic_memory.cpp:890–898  ·  view source on GitHub ↗

creates a new SMem variable in the database

Source from the content-addressed store, hash-verified

888
889// creates a new SMem variable in the database
890inline void smem_variable_create(agent* thisAgent, smem_variable_key variable_id, int64_t variable_value)
891{
892 soar_module::sqlite_statement* var_create = thisAgent->smem_stmts->var_create;
893
894 var_create->bind_int(1, variable_id);
895 var_create->bind_int(2, variable_value);
896
897 var_create->execute(soar_module::op_reinit);
898}
899
900
901//////////////////////////////////////////////////////////

Callers 1

smem_init_dbFunction · 0.85

Calls 2

bind_intMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected