| 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 |