MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / assertValidCtrlStates

Function assertValidCtrlStates

quest/src/core/localiser.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47void assertValidCtrlStates(vector<int> ctrls, vector<int> ctrlStates) {
48
49 // providing no control states is always valid (to invoke default all-on-1)
50 if (ctrlStates.empty())
51 return;
52
53 // otherwise a state must be explicitly given for each ctrl
54 if (ctrlStates.size() != ctrls.size())
55 error_localiserNumCtrlStatesInconsistentWithNumCtrls();
56}
57
58
59void setDefaultCtrlStates(vector<int> ctrls, vector<int> &states) {

Tested by

no test coverage detected