Lines Matching refs:val

51 void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
57 val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
62 val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
67 val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
121 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val)
123 get_arithmetic_value(j, val);
127 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val)
129 get_arithmetic_value(j, val);
133 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val)
135 get_arithmetic_value(j, val);
143 typename std::underlying_type<EnumType>::type val;
144 get_arithmetic_value(j, val);
145 e = static_cast<EnumType>(val);
340 inline void from_json(const BasicJsonType& j, ArithmeticType& val)
346 val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
351 val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
356 val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
361 val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::boolean_t*>());
474 auto operator()(const BasicJsonType& j, T&& val) const
475 noexcept(noexcept(from_json(j, std::forward<T>(val))))
476 -> decltype(from_json(j, std::forward<T>(val)))
478 return from_json(j, std::forward<T>(val));