54 bool getId(
void* ptr,
int* outId);
IdTracker(IdTracker &&)=delete
IdTracker & operator=(const IdTracker &)=delete
bool getId(void *ptr, int *outId)
Get existing ID for pointer without creating a new one.
bool removeId(void *ptr)
Remove tracking for a pointer.
IdTracker(const IdTracker &)=delete
IdTracker()=default
Default constructor - creates a new ID tracker instance.
fl::hash_map< void *, int > mPointerToId
size_t size()
Get the current number of tracked pointers.
int getOrCreateId(void *ptr)
Get existing ID for pointer, or create a new one if not found.
IdTracker & operator=(IdTracker &&)=delete
void clear()
Clear all tracked pointers and reset ID counter.
Implements the FastLED namespace macros.
HashMap< Key, T, Hash, KeyEqual > hash_map