Lines Matching refs:value
19 void VariantValue::Serialize(const LiteralValueType &value, protoPanda::VariantValue &protoValue)
21 const auto type = static_cast<protoPanda::VariantValue_VariantValueType>(value.index());
25 protoValue.set_valueint(static_cast<uint64_t>(std::get<bool>(value)));
29 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint8_t>(value)));
33 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint16_t>(value)));
37 protoValue.set_valueint(static_cast<uint64_t>(std::get<uint32_t>(value)));
41 protoValue.set_valueint(std::get<uint64_t>(value));
45 protoValue.set_valuefloat(std::get<float>(value));
49 protoValue.set_valuedouble(std::get<double>(value));
53 protoValue.set_valuestr(std::get<std::string>(value));
61 void VariantValue::Deserialize(const protoPanda::VariantValue &protoValue, LiteralValueType &value)
66 value = static_cast<bool>(protoValue.valueint());
70 value = static_cast<uint8_t>(protoValue.valueint());
74 value = static_cast<uint16_t>(protoValue.valueint());
78 value = static_cast<uint32_t>(protoValue.valueint());
82 value = static_cast<uint64_t>(protoValue.valueint());
86 value = protoValue.valuefloat();
90 value = protoValue.valuedouble();
94 value = protoValue.valuestr();
123 auto *value = protoLiteral.mutable_value();
124 VariantValue::Serialize(literal.value_, *value);
130 VariantValue::Deserialize(protoLiteral.value(), literal.value_);