FastLED 3.9.15
Loading...
Searching...
No Matches

◆ isInList()

bool CLEDController::isInList ( ) const

Check if this controller is in the linked list.

Returns
true if controller is in the list, false otherwise

Definition at line 48 of file cled_controller.cpp.hpp.

48 {
49 CLEDController* curr = mPHead;
50 while (curr != nullptr) {
51 if (curr == this) {
52 return true;
53 }
54 curr = curr->mPNext;
55 }
56 return false;
57}
CLEDController(RegistrationMode mode) FL_NOEXCEPT
Protected constructor with registration mode.
CLEDController * mPNext
pointer to the next LED controller in the linked list
static CLEDController * mPHead
pointer to the first LED controller in the linked list

References CLEDController(), mPHead, and mPNext.

Referenced by fl::Channel::addToDrawList(), addToList(), fl::Channel::isInDrawList(), and fl::Channel::removeFromDrawList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: