/third_party/json/include/nlohmann/ |
H A D | adl_serializer.hpp | 14 #include <nlohmann/detail/conversions/from_json.hpp> 25 /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/ 27 static auto from_json(BasicJsonType && j, TargetType& val) noexcept( 28 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val))) 29 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()) 31 ::nlohmann::from_json(std::forward<BasicJsonType>(j), val); 35 /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/ 37 static auto from_json(BasicJsonType && j) noexcept( 38 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))) 39 -> decltype(::nlohmann::from_json(st [all...] |
H A D | json.hpp | 37 #include <nlohmann/detail/conversions/from_json.hpp> 1557 `from_json()` method. 1562 JSONSerializer<ValueType>::from_json(*this, ret); 1568 - @ref json_serializer<ValueType> has a `from_json()` method of the form 1569 `void from_json(const basic_json&, ValueType&)`, and 1570 - @ref json_serializer<ValueType> does not have a `from_json()` method of 1571 the form `ValueType from_json(const basic_json&)` 1577 @throw what @ref json_serializer<ValueType> `from_json()` method throws 1594 JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>()))) in noexcept() 1597 JSONSerializer<ValueType>::from_json(*thi in noexcept() [all...] |
/third_party/json/include/nlohmann/detail/conversions/ |
H A D | from_json.hpp | 37 inline void from_json(const BasicJsonType& j, typename std::nullptr_t& n) in from_json() function 84 inline void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b) in from_json() function 94 inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s) in from_json() function 110 inline void from_json(const BasicJsonType& j, StringType& s) in from_json() function 121 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val) in from_json() function 127 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val) in from_json() function 133 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val) in from_json() function 141 inline void from_json(const BasicJsonType& j, EnumType& e) in from_json() function 152 inline void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l) in from_json() function 169 inline void from_json(cons function 296 inline void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin) from_json() function 308 inline void from_json(const BasicJsonType& j, ConstructibleObjectType& obj) from_json() function 340 inline void from_json(const BasicJsonType& j, ArithmeticType& val) from_json() function 422 inline void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m) from_json() function 442 inline void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyEqual, Allocator>& m) from_json() function 461 inline void from_json(const BasicJsonType& j, std_fs::path& p) from_json() function 476 -> decltype(from_json(j, std::forward<T>(val))) from_json() function 491 JSON_INLINE_VARIABLE constexpr const auto& from_json = // NOLINT(misc-definitions-in-headers) global() member [all...] |
/third_party/json/tests/src/ |
H A D | unit-noexcept.cpp | 30 void from_json(const json& /*unused*/, pod /*unused*/) noexcept; 31 void from_json(const json& /*unused*/, pod_bis /*unused*/); 34 void from_json(const json& /*unused*/, pod /*unused*/) noexcept {} 35 void from_json(const json& /*unused*/, pod_bis /*unused*/) {} in from_json() function 77 from_json(j2, pod()); 78 from_json(j2, pod_bis());
|
H A D | unit-udt.cpp | 169 // from_json methods 173 static void from_json(const BasicJsonType& j, age& a) in from_json() function 179 static void from_json(const BasicJsonType& j, name& n) in from_json() function 185 static void from_json(const BasicJsonType& j, country& c) in from_json() function 201 static void from_json(const BasicJsonType& j, person& p) in from_json() function 208 static void from_json(const nlohmann::json& j, address& a) in from_json() function 213 static void from_json(const nlohmann::json& j, contact& c) in from_json() function 219 static void from_json(const nlohmann::json& j, contact_book& cb) in from_json() function 356 static void from_json(const json& j, std::shared_ptr<T>& opt) in from_json() function 377 static void from_json(cons function 447 static void from_json(const json& /*unnamed*/, type& opt) from_json() function 453 static type from_json(const json& /*unnamed*/) from_json() function 487 static std::unique_ptr<T> from_json(const json& j) from_json() function 541 static void from_json(const BasicJsonType& j, U& t) from_json() function 551 static void from_json(const BasicJsonType& j, U& t) from_json() function 618 static void from_json(const BasicJsonType& j, non_pod& np) from_json() function 667 static void from_json(const custom_json& j, T& t) from_json() function 812 void from_json(const json& /*unused*/, Evil& /*unused*/) {} from_json() function [all...] |
H A D | unit-regression2.cpp | 95 void from_json(const json& j, Data& data); 96 void from_json(const json& j, Data& data) in from_json() function 118 static NonDefaultFromJsonStruct from_json(json const& /*unused*/) noexcept 152 static NonDefaultConstructible from_json(json const& j) in from_json() function 213 inline void from_json(const nlohmann::json& j, FooBar& fb) in from_json() function 241 inline void from_json(const json& j, for_3171_base& tb) in from_json() function 256 inline void from_json(const json& j, for_3312& obj) in from_json() function 440 SECTION("issue #1299 - compile error in from_json converting to container " 537 SECTION("issue #1647 - compile error when deserializing enum if both non-default from_json and non-member operator== exists for other type") 868 SECTION("issue #3171 - if class is_constructible from std::string wrong from_json overloa [all...] |
H A D | unit-regression1.cpp | 64 static void from_json(const BasicJsonType& j, T& value) // !!! in from_json() function 66 nlohmann::from_json(j.at("x"), value.x); in from_json() 79 static void from_json(const BasicJsonType& j, T& value) //!!! in from_json() function 81 ::nlohmann::from_json(j, value); in from_json()
|
/third_party/mesa3d/src/amd/registers/ |
H A D | regdb.py | 106 def from_json(json, keys=None): member in Object 108 return [Object.from_json(v) for v in json] 115 v = Object.from_json(v) 632 regtype = Object.from_json(Object.to_json(self.__register_types[type_ref])) 683 regmap = Object.from_json(Object.to_json(regmap)) 711 regmap = Object.from_json(Object.to_json(regmap)) 715 regtype = Object.from_json(Object.to_json(other.__register_types[type_ref])) 723 enum = Object.from_json(Object.to_json(other.__enums[enum_ref])) 802 def from_json(json): member in RegisterDatabase 805 db.__enums = dict((k, Object.from_json( [all...] |
H A D | mergedbs.py | 42 regdb.update(RegisterDatabase.from_json(json.load(filp)))
|
H A D | canonicalize.py | 70 regdb = RegisterDatabase.from_json(json.load(filp))
|
H A D | makeregheader.py | 374 db = RegisterDatabase.from_json(json.load(filp))
|
/third_party/json/docs/examples/ |
H A D | from_json__default_constructible.cpp | 19 void from_json(const json& j, person& p) in from_json() function
|
H A D | nlohmann_define_type_non_intrusive_explicit.cpp | 23 void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json() function
|
H A D | from_json__non_default_constructible.cpp | 26 static ns::person from_json(const json& j) in from_json() function
|
H A D | nlohmann_define_type_intrusive_with_default_explicit.cpp | 29 friend void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json() function in ns::person
|
H A D | nlohmann_define_type_intrusive_explicit.cpp | 29 friend void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json() function in ns::person
|
H A D | nlohmann_define_type_non_intrusive_with_default_explicit.cpp | 28 void from_json(const nlohmann::json& nlohmann_json_j, person& nlohmann_json_t) in from_json() function
|
/third_party/mesa3d/src/amd/common/ |
H A D | gfx10_format_table.py | 281 db = RegisterDatabase.from_json(json.load(filp)) 290 db = RegisterDatabase.from_json(json.load(filp))
|
H A D | sid_tables.py | 354 db = RegisterDatabase.from_json(json.load(filp))
|
/third_party/mesa3d/bin/pick/ |
H A D | core_test.py | 69 c2 = core.Commit.from_json(v) 75 c2 = core.Commit.from_json(v)
|
H A D | core.py | 133 def from_json(cls, data: 'CommitDict') -> 'Commit': member in Commit 379 return [Commit.from_json(c) for c in raw]
|
/third_party/json/single_include/nlohmann/ |
H A D | json.hpp | 150 // #include <nlohmann/detail/conversions/from_json.hpp> 2571 inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \ 2744 friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } 2748 friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { Type nlohmann_json_default_obj; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) } 2757 inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } 2761 inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { Type nlohmann_json_default_obj; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) } 3502 using from_json_function = decltype(T::from_json(std::declval<Args>()...)); 3507 // trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists 3531 // This trait checks if JSONSerializer<T>::from_json(json const&) exists 4593 inline void from_json(cons function 4640 inline void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b) from_json() function 4650 inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s) from_json() function 4666 inline void from_json(const BasicJsonType& j, StringType& s) from_json() function 4677 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val) from_json() function 4683 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val) from_json() function 4689 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val) from_json() function 4697 inline void from_json(const BasicJsonType& j, EnumType& e) from_json() function 4708 inline void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l) from_json() function 4725 inline void from_json(const BasicJsonType& j, std::valarray<T>& l) from_json() function 4852 inline void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin) from_json() function 4864 inline void from_json(const BasicJsonType& j, ConstructibleObjectType& obj) from_json() function 4896 inline void from_json(const BasicJsonType& j, ArithmeticType& val) from_json() function 4978 inline void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m) from_json() function 4998 inline void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyEqual, Allocator>& m) from_json() function 5017 inline void from_json(const BasicJsonType& j, std_fs::path& p) from_json() function 5032 -> decltype(from_json(j, std::forward<T>(val))) from_json() function 5047 JSON_INLINE_VARIABLE constexpr const auto& from_json = // NOLINT(misc-definitions-in-headers) global() member [all...] |
/third_party/json/tests/abi/include/nlohmann/ |
H A D | json_v3_10_5.hpp | 66 // #include <nlohmann/detail/conversions/from_json.hpp> 2470 inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \ 2642 friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } 2651 inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } 3425 using from_json_function = decltype(T::from_json(std::declval<Args>()...)); 3430 // trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists 3454 // This trait checks if JSONSerializer<T>::from_json(json const&) exists 3834 void from_json(const BasicJsonType& j, typename std::nullptr_t& n) 3881 void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b) 3891 void from_json(cons [all...] |
/third_party/json/include/nlohmann/detail/ |
H A D | macro_scope.hpp | 221 inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \ 394 friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } 398 friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { Type nlohmann_json_default_obj; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) } 407 inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) } 411 inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { Type nlohmann_json_default_obj; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) }
|
/third_party/json/include/nlohmann/detail/meta/ |
H A D | type_traits.hpp | 106 using from_json_function = decltype(T::from_json(std::declval<Args>()...)); 111 // trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists 135 // This trait checks if JSONSerializer<T>::from_json(json const&) exists
|