MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / GetFloatRef

Method GetFloatRef

plugins/Cardinal/src/DearImGui/imgui.cpp:2007–2013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2005}
2006
2007float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val)
2008{
2009 ImGuiStoragePair* it = LowerBound(Data, key);
2010 if (it == Data.end() || it->key != key)
2011 it = Data.insert(it, ImGuiStoragePair(key, default_val));
2012 return &it->val_f;
2013}
2014
2015void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
2016{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected