Home
last modified time | relevance | path

Searched refs:get_ref (Results 1 - 19 of 19) sorted by relevance

/third_party/json/tests/src/
H A Dunit-reference_access.cpp37 auto& p1 = value.get_ref<test_type&>();
41 const auto& p2 = value.get_ref<const test_type&>();
46 CHECK_NOTHROW(value.get_ref<json::object_t&>());
47 CHECK_THROWS_WITH_AS(value.get_ref<json::array_t&>(),
48 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error&);
49 CHECK_THROWS_WITH_AS(value.get_ref<json::string_t&>(),
50 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error&);
51 CHECK_THROWS_WITH_AS(value.get_ref<json::boolean_t&>(),
52 "[json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is object", json::type_error&);
53 CHECK_THROWS_WITH_AS(value.get_ref<jso
[all...]
H A Dunit-constructor1.cpp1112 const auto* target_addr = j[0].get_ref<std::string const&>().data();
1123 const auto* target_addr = j["key"].get_ref<std::string const&>().data();
1134 const auto* target_addr = j.get_ref<json::object_t&>().begin()->first.data();
1147 const auto* target_addr = j[0].get_ref<json::array_t const&>().data();
1157 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data();
1167 const auto* target_addr = j[0].get_ref<json::array_t const&>().data();
1177 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data();
1190 CHECK(&(j[0].get_ref<json::object_t const&>().at("hello")) == source_addr);
1198 CHECK(&(j["key"].get_ref<json::object_t const&>().at("hello")) == source_addr);
1206 CHECK(&(j[0].get_ref<jso
[all...]
H A Dunit-msgpack.cpp195 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
226 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
260 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
298 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
341 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
H A Dunit-ubjson.cpp353 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
386 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
419 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
457 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
498 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
H A Dunit-cbor.cpp405 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
436 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
469 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
507 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
550 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
H A Dunit-bjdata.cpp474 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
507 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
540 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
578 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
616 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
659 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
700 j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
/third_party/json/docs/examples/
H A Dget_ref.cpp12 auto r1 = value.get_ref<const json::number_integer_t&>(); in main()
13 auto r2 = value.get_ref<json::number_integer_t&>(); in main()
21 auto r3 = value.get_ref<json::number_float_t&>(); in main()
/third_party/json/include/nlohmann/detail/
H A Dhash.hpp81 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>()); in hash()
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
H A Dbio.rs65 pub unsafe fn get_ref<'a, S: 'a>(bio: *mut BIO) -> &'a S { in get_ref() functions
H A Dmod.rs3404 pub fn get_ref(&self) -> &S { in get_ref() functions
3405 self.stream.get_ref() in get_ref()
3477 .field("stream", &self.get_ref()) in fmt()
3772 pub fn get_ref(&self) -> &S { in get_ref() functions
3775 bio::get_ref(bio) in get_ref()
4001 pub fn get_ref(&self) -> &S { in get_ref() functions
4004 bio::get_ref(bio) in get_ref()
/third_party/rust/crates/termcolor/src/
H A Dlib.rs539 let locked = match *stream.wtr.get_ref() { in lock()
552 let locked = match *stream.wtr.get_ref() { in from_stream()
1027 let mut stream = self.stream.wrap(self.stream.get_ref().lock()); in print()
1265 pub fn get_ref(&self) -> &W { in get_ref() functions
1326 pub fn get_ref(&self) -> &W { in get_ref() functions
2118 fn get_ref(&self) -> &W { in get_ref() functions
/third_party/json/include/nlohmann/
H A Djson.hpp865 JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>()); in basic_json()
868 JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>()); in basic_json()
871 JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>()); in basic_json()
874 JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>()); in basic_json()
1499 @brief helper function to implement get_ref()
1501 This function helps to implement get_ref() without code duplication for
1520 JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj)); in get_ref_impl()
1739 "get() cannot be used with reference types, you might want to use get_ref()");
1818 /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
1821 ReferenceType get_ref() in get_ref() function in basic_json
1832 ReferenceType get_ref() const get_ref() function in basic_json
[all...]
/third_party/rust/crates/humantime/src/
H A Ddate.rs245 pub fn get_ref(&self) -> &SystemTime { in get_ref() functions
H A Dduration.rs290 pub fn get_ref(&self) -> &Duration { in get_ref() functions
/third_party/rust/crates/either/src/
H A Dlib.rs266 match *Pin::get_ref(self) { in as_pin_ref()
/third_party/json/docs/docset/
H A DdocSet.sql56 INSERT INTO searchIndex(name, type, path) VALUES ('basic_json::get_ref', 'Method', 'api/basic_json/get_ref/index.html');
/third_party/rust/crates/rust-openssl/openssl/src/ssl/test/
H A Dmod.rs1288 if self.incoming.position() == self.incoming.get_ref().len() as u64 { in read()
/third_party/json/tests/abi/include/nlohmann/
H A Djson_v3_10_5.hpp5137 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>());
18033 JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>());
18036 JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>());
18039 JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>());
18042 JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>());
18666 @brief helper function to implement get_ref()
18668 This function helps to implement get_ref() without code duplication for
18687 JSON_THROW(type_error::create(303, "incompatible ReferenceType for get_ref, actual type is " + std::string(obj.type_name()), obj));
18906 "get() cannot be used with reference types, you might want to use get_ref()");
18985 /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
[all...]
/third_party/json/single_include/nlohmann/
H A Djson.hpp5991 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>()); in hash()
20043 JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>());
20046 JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>());
20049 JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>());
20052 JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>());
20677 @brief helper function to implement get_ref()
20679 This function helps to implement get_ref() without code duplication for
20698 JSON_THROW(type_error::create(303, detail::concat("incompatible ReferenceType for get_ref, actual type is ", obj.type_name()), &obj));
20917 "get() cannot be used with reference types, you might want to use get_ref()");
20996 /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
[all...]

Completed in 76 milliseconds