/third_party/json/include/nlohmann/ |
D | adl_serializer.hpp | 27 static auto from_json(BasicJsonType && j, TargetType& val) noexcept( in from_json() function 28 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val))) in from_json() 29 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()) in from_json() 31 ::nlohmann::from_json(std::forward<BasicJsonType>(j), val); in from_json() 37 static auto from_json(BasicJsonType && j) noexcept( in from_json() function 38 …noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}… in from_json() 39 …-> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType>… 41 … return ::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {});
|
/third_party/json/include/nlohmann/detail/conversions/ |
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(const BasicJsonType& j, std::valarray<T>& l) in from_json() function [all …]
|
/third_party/json/docs/mkdocs/docs/api/basic_json/ |
D | get.md | 7 noexcept(JSONSerializer<ValueType>::from_json( 25 calling the `json_serializer<ValueType>` `from_json()` method. 30 JSONSerializer<ValueType>::from_json(*this, ret); 37 - `json_serializer<ValueType>` has a `from_json()` method of the form 38 `void from_json(const basic_json&, ValueType&)`, and 39 - `json_serializer<ValueType>` does not have a `from_json()` method of the form 40 `ValueType from_json(const basic_json&)` 44 converted by calling the `json_serializer<ValueType>` `from_json()` method. 48 return JSONSerializer<ValueTypeCV>::from_json(*this); 54 - `json_serializer<ValueType>` has a `from_json()` method of the form [all …]
|
D | get_to.md | 6 noexcept(JSONSerializer<ValueType>::from_json( 11 calling the `json_serializer<ValueType>` `from_json()` method. 16 JSONSerializer<ValueType>::from_json(*this, v); 22 - `json_serializer<ValueType>` has a `from_json()` method of the form `void from_json(const basic_j… 35 Depends on what `json_serializer<ValueType>` `from_json()` method throws
|
D | json_serializer.md | 11 : type to convert; will be used in the `to_json`/`from_json` functions
|
/third_party/json/docs/mkdocs/docs/api/adl_serializer/ |
D | from_json.md | 1 # <small>nlohmann::adl_serializer::</small>from_json 6 static auto from_json(BasicJsonType && j, TargetType& val) noexcept( 7 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val))) 8 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void()) 12 static auto from_json(BasicJsonType && j) noexcept( 13 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})… 14 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> … 39 …The example below shows how a `from_json` function can be implemented for a user-defined type. Thi… 54 …The example below shows how a `from_json` is implemented as part of a specialization of the `adl_s…
|
D | index.md | 9 `to_json`/`from_json` functions from the types' namespaces. 22 static void from_json(const BasicJsonType& j, T& value) { 23 // same thing, but with the "from_json" method 30 - [**from_json**](from_json.md) - convert a JSON value to any value type
|
D | to_json.md | 39 - [from_json](from_json.md)
|
/third_party/json/tests/src/ |
D | unit-udt.cpp | 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(const json& j, udt::legacy_type& l) in from_json() function 447 static void from_json(const json& /*unnamed*/, type& opt) in from_json() function [all …]
|
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 {} in from_json() function 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());
|
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 in from_json() function 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
|
/third_party/json/docs/mkdocs/docs/features/ |
D | arbitrary_types.md | 64 void from_json(const json& j, person& p) { 73 Likewise, when calling `get<your_type>()` or `get_to(your_type&)`, the `from_json` method will be c… 80 * In function `from_json`, use function [`at()`](../api/basic_json/at.md) to access the object valu… 86 If you just want to serialize/deserialize some structs, the `to_json`/`from_json` functions can be … 90 … of the class/struct to create code for. It will throw an exception in `from_json()` due to a miss… 91 …the class/struct to create code for. It will not throw an exception in `from_json()` due to a miss… 92 …s macro can also access private members. It will throw an exception in `from_json()` due to a miss… 93 …cro can also access private members. It will not throw an exception in `from_json()` due to a miss… 100 …types with more than 64 member variables, you need to define the `to_json`/`from_json` functions m… 106 The `to_json`/`from_json` functions for the `person` struct above can be created with: [all …]
|
D | macros.md | 116 …milar to `NLOHMANN_DEFINE_TYPE_INTRUSIVE`. It will not throw an exception in `from_json()` due to a 117 missing value in the JSON object, but can throw due to a mismatched type. The `from_json()` functio… 135 …r to `NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE`. It will not throw an exception in `from_json()` due to a 136 missing value in the JSON object, but can throw due to a mismatched type. The `from_json()` functio…
|
/third_party/json/docs/mkdocs/docs/api/macros/ |
D | json_disable_enum_serialization.md | 35 …rary **not** to create default serialization/deserialization functions `from_json` and `to_json`, … 55 …// normally invokes from_json parse function but with JSON_DISABLE_ENUM_SERIALIZATION defined, it … 62 …rary **not** to create default serialization/deserialization functions `from_json` and `to_json`, … 88 // uses user-defined from_json function defined by macro 95 …rary **not** to create default serialization/deserialization functions `from_json` and `to_json`, … 110 void from_json(const json& j, Choice& ch) 141 // uses user-defined from_json function
|
D | nlohmann_define_type_non_intrusive.md | 17 …of the member variable if a key in the JSON object is missing. The generated `from_json()` function 34 void from_json(const nlohmann::json&, type&); 53 …with more than 64 member variables, you need to define the `to_json`/`from_json` functions manuall… 116 … Note how a default-initialized `person` object is used in the `from_json` to fill missing values.
|
D | nlohmann_define_type_intrusive.md | 17 …of the member variable if a key in the JSON object is missing. The generated `from_json()` function 34 friend void from_json(const nlohmann::json&, type&); 52 …with more than 64 member variables, you need to define the `to_json`/`from_json` functions manuall… 115 … Note how a default-initialized `person` object is used in the `from_json` to fill missing values.
|
/third_party/mesa3d/src/amd/registers/ |
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(v)) for k, v in json['enums'].items()) [all …]
|
D | mergedbs.py | 42 regdb.update(RegisterDatabase.from_json(json.load(filp)))
|
D | canonicalize.py | 70 regdb = RegisterDatabase.from_json(json.load(filp))
|
/third_party/mesa3d/src/amd/common/ |
D | gfx10_format_table.py | 281 db = RegisterDatabase.from_json(json.load(filp)) 290 db = RegisterDatabase.from_json(json.load(filp))
|
/third_party/json/docs/examples/ |
D | from_json__default_constructible.cpp | 19 void from_json(const json& j, person& p) in from_json() function
|
D | from_json__non_default_constructible.cpp | 26 static ns::person from_json(const json& j) in from_json() function
|
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
|
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
|
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
|