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

Method GetFloatRef

extern/imgui/imgui.cpp:2371–2377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2369}
2370
2371float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val)
2372{
2373 ImGuiStoragePair* it = LowerBound(Data, key);
2374 if (it == Data.end() || it->key != key)
2375 it = Data.insert(it, ImGuiStoragePair(key, default_val));
2376 return &it->val_f;
2377}
2378
2379void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
2380{

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