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

Method SetValue

lib/utils/temp-variable.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void TempVariable::SetValue(const std::string &val)
109{
110 _valueIsValid = true;
111 if (_value == val) {
112 return;
113 }
114 _value = val;
115 std::lock_guard<std::mutex> lock(_lastValuesMutex);
116 if (_lastValues.size() >= 3) {
117 _lastValues.erase(_lastValues.begin());
118 }
119 _lastValues.push_back(val);
120}
121
122void TempVariable::InvalidateValue()
123{

Callers 3

SetDurationMethod · 0.45
SetDoubleValueMethod · 0.45
SliderValueChangedMethod · 0.45

Calls 2

sizeMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected