MCPcopy Create free account
hub / github.com/cginternals/globjects / add

Method add

source/globjects/source/State.cpp:341–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void State::add(StateSetting * setting)
342{
343 const auto type = setting->type();
344 const auto it = m_settings.find(type);
345
346 if (it != m_settings.end())
347 {
348 delete it->second;
349 it->second = setting;
350 }
351 else
352 {
353 m_settings.emplace(type, setting);
354 }
355
356 if (m_mode == ImmediateMode)
357 {
358 setting->apply();
359 }
360}
361
362
363} // namespace globjects

Callers 3

ProcessFileFunction · 0.80
_GenerateMocksFunction · 0.80
ProcessFileFunction · 0.80

Calls 3

typeMethod · 0.45
endMethod · 0.45
applyMethod · 0.45

Tested by 1

ProcessFileFunction · 0.64