Searched defs:ImPool (Results 1 – 1 of 1) sorted by relevance
266 struct IMGUI_API ImPool struct270 ImPoolIdx FreeIdx; // Next free idx to use argument272 ImPool() { FreeIdx = 0; } in ImPool() function273 ~ImPool() { Clear(); } in ~ImPool() argument275 T* GetByIndex(ImPoolIdx n) { return &Data[n]; } in GetByIndex() argument276 …ImPoolIdx GetIndex(const T* p) const { IM_ASSERT(p >= Data.Data && p < Data.Data + Data… in GetIndex() argument281 …void Remove(ImGuiID key, ImPoolIdx idx) { Data[idx].~T(); *(int*)&Data[idx] = FreeIdx; Fre… in Remove() argument282 … Reserve(int capacity) { Data.reserve(capacity); Map.Data.reserve(capacity); } in Reserve()283 int GetSize() const { return Data.Size; } in GetSize()