MCPcopy Create free account
hub / github.com/RenderKit/embree / GetVoidPtrRef

Method GetVoidPtrRef

tutorials/common/imgui/imgui.cpp:2317–2323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2315}
2316
2317void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
2318{
2319 ImGuiStoragePair* it = LowerBound(Data, key);
2320 if (it == Data.end() || it->key != key)
2321 it = Data.insert(it, ImGuiStoragePair(key, default_val));
2322 return &it->val_p;
2323}
2324
2325// 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)
2326void ImGuiStorage::SetInt(ImGuiID key, int val)

Callers

nothing calls this directly

Calls 3

LowerBoundFunction · 0.85
ImGuiStoragePairClass · 0.85
endMethod · 0.45

Tested by

no test coverage detected