MCPcopy Create free account
hub / github.com/FastLED/FastLED / visitControllers

Method visitControllers

src/fl/channels/cled_controller.h:220–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218 /// @tparam Visitor callable type (function, lambda, functor, etc.)
219 template<typename Visitor>
220 static void visitControllers(Visitor&& visitor) FL_NOEXCEPT {
221 const CLEDController *pCur = head();
222 while(pCur) {
223 visitor(pCur, fl::span<const CRGB>(pCur->leds(), pCur->size()));
224 pCur = pCur->next();
225 }
226 }
227
228 /// Get the next controller in the linked list after this one (const version). Will return nullptr at the end of the linked list.
229 /// @returns CLEDController::mPNext

Callers

nothing calls this directly

Calls 3

ledsMethod · 0.45
sizeMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected