Home
last modified time | relevance | path

Searched refs:UScriptValuePtr (Results 1 – 16 of 16) sorted by relevance

/base/update/updater/services/script/script_interpreter/
Dscript_context.h30 using UScriptValuePtr = std::shared_ptr<UScriptValue>; variable
57 virtual UScriptValuePtr Computer(int32_t action, UScriptValuePtr value);
61 static std::string ScriptToString(UScriptValuePtr value);
63 static UScriptValuePtr GetRightCompluteValue(UScriptValuePtr rightValue);
84 UScriptValuePtr Computer(int32_t action, UScriptValuePtr value) override;
106 UScriptValuePtr Computer(int32_t action, UScriptValuePtr value) override;
110 bool ComputerEqual(const UScriptValuePtr rightValue) const;
130 UScriptValuePtr Computer(int32_t action, UScriptValuePtr value) override;
132UScriptValuePtr ComputerReturn(int32_t action, UScriptValuePtr rightValue, UScriptValuePtr defRetu…
137 int32_t ComputerLogic(UScriptValuePtr rightValue) const;
[all …]
Dscript_expression.cpp55 UScriptValuePtr UScriptExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
59 UScriptValuePtr IntegerExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
63 UScriptValuePtr FloatExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
67 UScriptValuePtr StringExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
71 UScriptValuePtr IdentifierExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
74 UScriptValuePtr variable = inter.FindVariable(local, identifier_); in Execute()
96 UScriptValuePtr AssignExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
98 UScriptValuePtr result = expression_->Execute(inter, local); in Execute()
104 UScriptValuePtr var = inter.FindVariable(local, identifier_); in Execute()
118 UScriptValuePtr BinaryExpression::Execute(ScriptInterpreter &inter, UScriptContextPtr local) in Execute()
[all …]
Dscript_context.cpp31 UScriptValuePtr valuePtr = std::make_shared<IntegerValue>(value); in PushParam()
39 UScriptValuePtr valuePtr = std::make_shared<FloatValue>(value); in PushParam()
47 UScriptValuePtr valuePtr = std::make_shared<StringValue>(value); in PushParam()
100 int32_t UScriptInstructionContext::AddInputParam(UScriptValuePtr value) in AddInputParam()
106 UScriptValuePtr UScriptInterpretContext::FindVariable(const ScriptInterpreter &inter, std::string i… in FindVariable()
121 UScriptValuePtr value) in UpdateVariable()
129 UScriptValuePtr value, in UpdateVariables()
148 UScriptValuePtr UScriptValue::Computer(int32_t action, UScriptValuePtr value) in Computer()
222 UScriptValuePtr IntegerValue::Computer(int32_t action, UScriptValuePtr value) in Computer()
224 UScriptValuePtr rightValue = UScriptValue::GetRightCompluteValue(value); in Computer()
[all …]
Dscript_interpreter.h53 UScriptValuePtr ExecuteNativeFunc(UScriptContextPtr upContext, const std::string &name,
55 UScriptValuePtr ExecuteFunction(UScriptContextPtr context, const std::string &name,
57 UScriptValuePtr FindVariable(UScriptContextPtr local, std::string id);
58 UScriptValuePtr UpdateVariable(UScriptContextPtr local, std::string id, UScriptValuePtr var);
Dscript_expression.h60 virtual UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local);
83 UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local) override;
102 UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local) override;
120 UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local) override;
137 UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local) override;
161 UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local) override;
179 UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local) override;
198 UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr local) override;
Dscript_interpreter.cpp108 UScriptValuePtr ScriptInterpreter::ExecuteFunction(UScriptContextPtr context, const std::string &na… in ExecuteFunction()
120 UScriptValuePtr ScriptInterpreter::FindVariable(UScriptContextPtr local, std::string id) in FindVariable()
123 UScriptValuePtr variable = (*context)->FindVariable(*this, id); in FindVariable()
134 UScriptValuePtr ScriptInterpreter::UpdateVariable(UScriptContextPtr local, std::string id, UScriptV… in UpdateVariable()
137 UScriptValuePtr variable = (*context)->FindVariable(*this, id); in UpdateVariable()
162 UScriptValuePtr ScriptInterpreter::ExecuteNativeFunc(UScriptContextPtr context, in ExecuteNativeFunc()
181 UScriptValuePtr result = id->Execute(*this, context); in ExecuteNativeFunc()
Dscript_statement.h40 …UScriptStatementResult(StatementResultType type, UScriptValuePtr value) : type_(type), value_(valu… in UScriptStatementResult()
52 UScriptValuePtr GetResultValue() const in GetResultValue()
57 void SetResultValue(const UScriptValuePtr value) in SetResultValue()
72 void UpdateStatementResult(UScriptValuePtr value);
77 UScriptValuePtr value_ = nullptr;
Dscript_function.cpp31 UScriptValuePtr ScriptFunction::Execute(ScriptInterpreter &inter, in Execute()
48 UScriptValuePtr var = expression->Execute(inter, context); in Execute()
Dscript_statement.cpp24 void UScriptStatementResult::UpdateStatementResult(UScriptValuePtr value) in UpdateStatementResult()
167 UScriptValuePtr value = expression_->Execute(interpreter, context); in Execute()
185 UScriptValuePtr v = condition_->Execute(interpreter, context); in Execute()
222 UScriptValuePtr v = condition_->Execute(interpreter, context); in Execute()
254 UScriptValuePtr v = expression_->Execute(interpreter, context); in Execute()
352 UScriptValuePtr var = id->Execute(interpreter, context); in Execute()
Dscript_function.h44UScriptValuePtr Execute(ScriptInterpreter &inter, UScriptContextPtr context, ScriptParams *inputPa…
/base/update/updater/test/unittest/script/
Dscript_interpreter_unittest.cpp45UScriptValuePtr rightValue = std::make_shared<UScriptValue>(UScriptValue::VALUE_TYPE_RETURN); in TestScriptInterpreterScriptValue()
120 UScriptValuePtr rightValue = std::make_shared<IntegerValue>(0); in TestIntegerValueComputer()
121 UScriptValuePtr value = std::make_shared<IntegerValue>(intValue); in TestIntegerValueComputer()
128 UScriptValuePtr rightValue2 = std::make_shared<FloatValue>(floatValue); in TestIntegerValueComputer()
132 UScriptValuePtr rightValue3 = std::make_shared<FloatValue>(0); in TestIntegerValueComputer()
143 UScriptValuePtr rightValue = std::make_shared<IntegerValue>(0); in TestFloatValueComputer()
144 UScriptValuePtr value = std::make_shared<FloatValue>(floatValue); in TestFloatValueComputer()
150 UScriptValuePtr rightValue2 = std::make_shared<FloatValue>(floatValue); in TestFloatValueComputer()
154 UScriptValuePtr rightValue3 = std::make_shared<FloatValue>(0); in TestFloatValueComputer()
163 UScriptValuePtr rightValue = std::make_shared<IntegerValue>(0); in TestStringValueComputer()
[all …]
/base/update/updater/test/unittest/script/script_instruction/
Dscript_updateprocesser_unittest.cpp81 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserSetProcess()
95 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserSetProcess()
115 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserShowProcess()
124 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserShowProcess()
135 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserShowProcess()
155 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserPrint()
164 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestUpdateProcesserPrint()
Dscript_registercmd_unittest.cpp62 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestRegisterCmd01()
76 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestRegisterCmd02()
90 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestRegisterCmd03()
Dscript_loadscript_unittest.cpp61 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestLoadScript01()
76 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestLoadScript02()
91 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestLoadScript03()
Dbasic_instruction_unittest.cpp82 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionIsSubString01()
93 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionIsSubString01()
107 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionIsSubString02()
116 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionIsSubString02()
137 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionStdout()
167 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestBasicInstructionConcat()
186 std::vector<UScriptValuePtr> output = context2.GetOutVar(); in TestBasicInstructionConcat()
/base/update/updater/test/unittest/updater_binary/
Dupdate_image_patch_unittest.cpp41 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch01()
58 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch02()
75 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch03()
92 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch04()
111 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch05()
143 std::vector<UScriptValuePtr> output = context.GetOutVar(); in TestImgPatch06()