MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / GetFloatRef

Method GetFloatRef

lib/imgui/imgui.cpp:1894–1900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1892}
1893
1894float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val)
1895{
1896 ImGuiStoragePair* it = LowerBound(Data, key);
1897 if (it == Data.end() || it->key != key)
1898 it = Data.insert(it, ImGuiStoragePair(key, default_val));
1899 return &it->val_f;
1900}
1901
1902void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
1903{

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