MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / GetVoidPtrRef

Method GetVoidPtrRef

extern/imgui/imgui.cpp:2379–2385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2377}
2378
2379void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
2380{
2381 ImGuiStoragePair* it = LowerBound(Data, key);
2382 if (it == Data.end() || it->key != key)
2383 it = Data.insert(it, ImGuiStoragePair(key, default_val));
2384 return &it->val_p;
2385}
2386
2387// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame)
2388void ImGuiStorage::SetInt(ImGuiID key, int val)

Callers

nothing calls this directly

Calls 4

LowerBoundFunction · 0.85
ImGuiStoragePairClass · 0.85
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected