38 bool found = (existingId !=
nullptr);
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.
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.
void clear()
Clear all tracked pointers and reset ID counter.