FastLED 3.10.8
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 65 of file cled_controller.cpp.hpp.

65 {
66 CLEDController* curr = mPHead;
67 while (curr != nullptr) {
68 if (curr == this) {
69 return true;
70 }
71 curr = curr->mPNext;
72 }
73 return false;
74}
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
CLEDController(RegistrationMode mode) FL_NO_EXCEPT
Protected constructor with registration mode.

References CLEDController(), fl::FL_NO_EXCEPT, 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: