bool removeId(void *ptr) FL_NO_EXCEPT
Remove tracking for a pointer.
fl::flat_map< void *, int > mPointerToId
bool getId(void *ptr, int *outId) FL_NO_EXCEPT
Get existing ID for pointer without creating a new one.
void clear() FL_NO_EXCEPT
Clear all tracked pointers and reset ID counter.
IdTracker() FL_NO_EXCEPT=default
Default constructor - creates a new ID tracker instance.
int getOrCreateId(void *ptr) FL_NO_EXCEPT
Get existing ID for pointer, or create a new one if not found.
size_t size() FL_NO_EXCEPT
Get the current number of tracked pointers.
Platform-independent mutex interface.
InputGamut g FL_NO_EXCEPT
fl::platforms::mutex mutex
Base definition for an LED controller.