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

Function select_next_operator

Core/SoarKernel/src/decision_manipulation.cpp:38–51  ·  view source on GitHub ↗

* Function : select_next_operator **************************************************************************/

Source from the content-addressed store, hash-verified

36 * Function : select_next_operator
37 **************************************************************************/
38void select_next_operator(agent* thisAgent, const char* operator_id)
39{
40 select_init(thisAgent);
41 std::string& op = thisAgent->select->select_operator;
42
43 thisAgent->select->select_enabled = true;
44 op.assign(operator_id);
45
46 assert(!op.empty());
47
48 // lazy users may use a lower-case letter
49 std::string::iterator iter = op.begin();
50 *iter = static_cast< char >(toupper(*iter));
51}
52
53/***************************************************************************
54 * Function : select_get_operator

Callers 1

DoSelectMethod · 0.85

Calls 1

select_initFunction · 0.85

Tested by

no test coverage detected