MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / setLocalValue

Method setLocalValue

source/src/scriptinterpreter.h:1016–1024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014 return QiVar();
1015 }
1016 void setLocalValue(const std::string& var, const QiVar& value, QiVarMap* local = nullptr)
1017 {
1018 if (local) (*local)[var] = value;
1019 else
1020 {
1021 std::unique_lock<std::mutex> lock(localVariablesMutex);
1022 localVariables[var] = value;
1023 }
1024 }
1025
1026 QiWorker* worker() { return workerPtr; }
1027 void setWorker(QiWorker* worker) { std::unique_lock<std::mutex> lock(this_mutex); workerPtr = worker; }

Callers 2

execMethod · 0.80
TableUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected