MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / GetWeakVariableByName

Function GetWeakVariableByName

lib/variables/variable.cpp:390–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390std::weak_ptr<Variable> GetWeakVariableByName(const std::string &name)
391{
392 for (const auto &v : variables) {
393 if (v->Name() == name) {
394 std::weak_ptr<Variable> wp =
395 std::dynamic_pointer_cast<Variable>(v);
396 return wp;
397 }
398 }
399
400 return std::weak_ptr<Variable>();
401}
402
403std::weak_ptr<Variable> GetWeakVariableByQString(const QString &name)
404{

Callers 15

LoadMethod · 0.85
setVariablesFunction · 0.85
LoadMethod · 0.85
AddMethod · 0.85
ClickedMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
WriteBackMappingsMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85

Calls 1

NameMethod · 0.45

Tested by

no test coverage detected