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

Method AddRhsFunction

Core/ClientSML/src/sml_ClientKernel.cpp:2166–2171  ·  view source on GitHub ↗

* @brief Register a handler for a RHS (right hand side) function. * This function can be called in the RHS of a production firing * allowing a user to quickly extend Soar with custom methods added to the client. * * The methods should only operate on the incoming argument list and return a * result without access to other external information to remain with the theory o

Source from the content-addressed store, hash-verified

2164* @returns Unique ID for this callback. Required when unregistering this callback.
2165*************************************************************/
2166int Kernel::AddRhsFunction(char const* pRhsFunctionName, RhsEventHandler handler, void* pUserData, bool addToBack)
2167{
2168 smlRhsEventId id = smlEVENT_RHS_USER_FUNCTION ;
2169
2170 return InternalAddRhsFunction(id, pRhsFunctionName, handler, pUserData, addToBack) ;
2171}
2172
2173/*************************************************************
2174* @brief Unregister for a particular RHS function

Callers 14

TestMethod · 0.95
sml_InitLibraryFunction · 0.80
TEST_DEFINITIONFunction · 0.80
testRHSRandMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
TestPythonSML.pyFile · 0.80
mainFunction · 0.80
registerRHSFunctionMethod · 0.80

Calls

no outgoing calls

Tested by 7

TestMethod · 0.76
TEST_DEFINITIONFunction · 0.64
testRHSRandMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
mainFunction · 0.64