Home
last modified time | relevance | path

Searched refs:IntegerValue (Results 1 – 9 of 9) sorted by relevance

/base/update/updater/services/script/script_interpreter/
Dscript_context.cpp31 UScriptValuePtr valuePtr = std::make_shared<IntegerValue>(value); in PushParam()
69 return GetParam<int32_t, IntegerValue>(index, value); in GetParam()
171 IntegerValue* value = static_cast<IntegerValue *>((rightValue).get()); \
175 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
201 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
214 IntegerValue* value = static_cast<IntegerValue *>((rightValue).get()); \
218 retValue = make_shared<IntegerValue>(this->GetValue() / value->GetValue()); \
239 UScriptValuePtr IntegerValue::Computer(int32_t action, UScriptValuePtr value) in Computer()
291 IntegerValue* value = static_cast<IntegerValue *>((rightValue).get()); \
321 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
[all …]
Dscript_context.h69 class IntegerValue : public UScriptValue {
71 …explicit IntegerValue(int32_t value) : UScriptValue(UScriptValue::VALUE_TYPE_INTEGER), value_(valu… in IntegerValue() function
72 ~IntegerValue() override {} in ~IntegerValue()
Dscript_expression.cpp61 return std::make_shared<IntegerValue>(this->value_); in Execute()
134 return std::make_shared<IntegerValue>(1); in Execute()
/base/update/updater/test/unittest/script/
Dscript_interpreter_unittest.cpp57 std::unique_ptr<IntegerValue> iv = std::make_unique<IntegerValue>(intValue); in TestScriptInterpreterScriptValue()
120 UScriptValuePtr rightValue = std::make_shared<IntegerValue>(0); in TestIntegerValueComputer()
121 UScriptValuePtr value = std::make_shared<IntegerValue>(intValue); in TestIntegerValueComputer()
143 UScriptValuePtr rightValue = std::make_shared<IntegerValue>(0); in TestFloatValueComputer()
163 UScriptValuePtr rightValue = std::make_shared<IntegerValue>(0); in TestStringValueComputer()
227 IntegerValue a1(0);
235 IntegerValue *a6 = new IntegerValue(1);
/base/update/updater/test/unittest/updater_binary/
Dupdate_image_patch_unittest.cpp50 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
51 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
52 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
53 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
54 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestImgPatch02()
/base/update/updater/test/unittest/script/script_instruction/
Dscript_updateprocesser_unittest.cpp78 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestUpdateProcesserSetProcess()
112 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestUpdateProcesserShowProcess()
121 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestUpdateProcesserShowProcess()
152 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestUpdateProcesserPrint()
Dscript_registercmd_unittest.cpp59 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestRegisterCmd01()
73 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestRegisterCmd02()
Dscript_loadscript_unittest.cpp58 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestLoadScript01()
88 context.AddInputParam(std::make_shared<IntegerValue>(1)); in TestLoadScript03()
Dbasic_instruction_unittest.cpp72 return ctx.AddInputParam(std::make_shared<IntegerValue>(v)); in AddInputParamImpl()