MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / IterateWhile

Method IterateWhile

src/ObjectModel/Variable.cpp:235–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void VariableSet::IterateWhile(function_ref_noexcept<bool(unsigned int, const Variable&) noexcept> func) const noexcept
236{
237 unsigned int num = 0;
238 for (const LinkedVariable *lv = root; lv != nullptr; lv = lv->next)
239 {
240 if (!func(num, lv->v))
241 {
242 break;
243 }
244 ++num;
245 }
246}
247
248// End

Callers 13

THROWSFunction · 0.80
WriteObjectDirectoryMethod · 0.80
GCodes.cppFile · 0.80
THROWSFunction · 0.80
THROWSFunction · 0.80
IsPointInsideMethod · 0.80
DoesLineIntrudeMethod · 0.80
DoesArcIntrudeMethod · 0.80
AreDrivesStoppedMethod · 0.80
EnableStallInterruptsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected