MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / BOOST_FOREACH

Function BOOST_FOREACH

samples/luxcoreui/statswindow.cpp:141–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 // Print device info
140 unsigned int i = 0;
141 BOOST_FOREACH(const string &prefix, prefixs) {
142 if (ImGui::TreeNode(("#" + ToString(i) + " => " + props.Get(prefix + ".name").Get<string>()).c_str())) {
143 LuxCoreApp::ColoredLabelText("Name:", "%s", props.Get(prefix + ".name").Get<string>().c_str());
144 LuxCoreApp::ColoredLabelText("Type:", "%s", props.Get(prefix + ".type").Get<string>().c_str());
145 LuxCoreApp::ColoredLabelText("Compute units:", "%d", props.Get(prefix + ".units").Get<unsigned int>());
146 LuxCoreApp::ColoredLabelText("Preferred float vector width:", "%u", props.Get(prefix + ".nativevectorwidthfloat").Get<unsigned int>());
147 LuxCoreApp::ColoredLabelText("Max. allocable memory:", "%luMBytes", (unsigned long)(props.Get(prefix + ".maxmemory").Get<unsigned long long>() / (1024 * 1024)));
148 LuxCoreApp::ColoredLabelText("Max. allocable memory block size:", "%luMBytes", (unsigned long)(props.Get(prefix + ".maxmemoryallocsize").Get<unsigned long long>() / (1024 * 1024)));
149 ImGui::TreePop();
150 }
151 }
152 }
153
154 ImGui::PopStyleVar();

Callers

nothing calls this directly

Calls 6

c_strMethod · 0.80
Get<string>Method · 0.80
GetMethod · 0.80
Get<unsigned int>Method · 0.80
ToStringFunction · 0.50

Tested by

no test coverage detected