Home
last modified time | relevance | path

Searched refs:get_ref (Results 1 – 25 of 39) sorted by relevance

12

/third_party/json/test/src/
Dunit-reference_access.cpp58 auto& p1 = value.get_ref<test_type&>();
62 const auto& p2 = value.get_ref<const test_type&>();
67 CHECK_NOTHROW(value.get_ref<json::object_t&>());
68 CHECK_THROWS_AS(value.get_ref<json::array_t&>(), json::type_error&);
69 CHECK_THROWS_WITH(value.get_ref<json::array_t&>(),
71 CHECK_THROWS_AS(value.get_ref<json::string_t&>(), json::type_error&);
72 CHECK_THROWS_WITH(value.get_ref<json::string_t&>(),
74 CHECK_THROWS_AS(value.get_ref<json::boolean_t&>(), json::type_error&);
75 CHECK_THROWS_WITH(value.get_ref<json::boolean_t&>(),
77 CHECK_THROWS_AS(value.get_ref<json::number_integer_t&>(), json::type_error&);
[all …]
Dunit-constructor1.cpp1123 const auto* target_addr = j[0].get_ref<std::string const&>().data();
1134 const auto* target_addr = j["key"].get_ref<std::string const&>().data();
1145 const auto* target_addr = j.get_ref<json::object_t&>().begin()->first.data();
1158 const auto* target_addr = j[0].get_ref<json::array_t const&>().data();
1168 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data();
1178 const auto* target_addr = j[0].get_ref<json::array_t const&>().data();
1188 const auto* target_addr = j["key"].get_ref<json::array_t const&>().data();
1201 CHECK(&(j[0].get_ref<json::object_t const&>().at("hello")) == source_addr);
1209 CHECK(&(j["key"].get_ref<json::object_t const&>().at("hello")) == source_addr);
1217 CHECK(&(j[0].get_ref<json::object_t const&>().at("hello")) == source_addr);
[all …]
Dunit-msgpack.cpp213 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
244 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
278 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
316 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
359 … j.get_ref<json::number_integer_t&>() = static_cast<json::number_integer_t>(i);
/third_party/flutter/skia/src/utils/
DSkLua.cpp109 template <typename T> T* get_ref(lua_State* L, int index) { in get_ref() function
423 get_ref<SkCanvas>(L, 1)->clear(0); in lcanvas_clear()
428 get_ref<SkCanvas>(L, 1)->drawColor(lua2color(L, 2)); in lcanvas_drawColor()
433 get_ref<SkCanvas>(L, 1)->drawPaint(*get_obj<SkPaint>(L, 2)); in lcanvas_drawPaint()
441 get_ref<SkCanvas>(L, 1)->drawRect(rect, *paint); in lcanvas_drawRect()
447 get_ref<SkCanvas>(L, 1)->drawOval(*lua2rect(L, 2, &rect), in lcanvas_drawOval()
453 get_ref<SkCanvas>(L, 1)->drawCircle(lua2scalar(L, 2), in lcanvas_drawCircle()
475 SkCanvas* canvas = get_ref<SkCanvas>(L, 1); in lcanvas_drawImage()
476 SkImage* image = get_ref<SkImage>(L, 2); in lcanvas_drawImage()
489 SkCanvas* canvas = get_ref<SkCanvas>(L, 1); in lcanvas_drawImageRect()
[all …]
/third_party/json/doc/mkdocs/docs/api/basic_json/
Dget_ref.md1 # basic_json::get_ref
5 ReferenceType get_ref();
8 const ReferenceType get_ref() const;
33 match the stored JSON value type; example: `"incompatible ReferenceType for get_ref, actual type is…
49 The example shows several calls to `get_ref()`.
52 --8<-- "examples/get_ref.cpp"
58 --8<-- "examples/get_ref.output"
Dindex.md138 - [**get_ref**](get_ref.md) - get a reference value
/third_party/json/doc/examples/
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()
Dget_ref.output2 [json.exception.type_error.303] incompatible ReferenceType for get_ref, actual type is number
/third_party/rust/crates/pin-project-lite/tests/expand/naming/
Denum-ref.expanded.rs32 match self.get_ref() { in project_ref()
Dstruct-none.expanded.rs56 let Self { pinned, unpinned } = self.get_ref(); in project_ref()
Dstruct-mut.expanded.rs56 let Self { pinned, unpinned } = self.get_ref(); in project_ref()
Dstruct-ref.expanded.rs56 let Self { pinned, unpinned } = self.get_ref(); in project_ref()
Denum-all.expanded.rs74 match self.get_ref() { in project_ref()
Dstruct-all.expanded.rs65 let Self { pinned, unpinned } = self.get_ref(); in project_ref()
/third_party/json/include/nlohmann/detail/
Dhash.hpp74 const auto h = std::hash<string_t> {}(j.template get_ref<const string_t&>()); in hash()
/third_party/rust/crates/pin-project-lite/tests/expand/pub/
Denum.expanded.rs62 match self.get_ref() { in project_ref()
Dstruct.expanded.rs56 let Self { pinned, unpinned } = self.get_ref(); in project_ref()
/third_party/rust/crates/pin-project-lite/tests/expand/default/
Dstruct.expanded.rs56 let Self { pinned, unpinned } = self.get_ref(); in project_ref()
Denum.expanded.rs74 match self.get_ref() { in project_ref()
/third_party/rust/crates/pin-project-lite/tests/expand/pinned_drop/
Denum.expanded.rs63 match self.get_ref() { in project_ref()
Dstruct.expanded.rs57 let Self { pinned, unpinned } = self.get_ref(); in project_ref()
/third_party/rust/crates/termcolor/src/
Dlib.rs539 let locked = match *stream.wtr.get_ref() { in from_stream()
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() method
1326 pub fn get_ref(&self) -> &W { in get_ref() method
2118 fn get_ref(&self) -> &W { in get_ref() method
/third_party/rust/crates/pin-project-lite/tests/expand/multifields/
Dstruct.expanded.rs85 } = self.get_ref(); in project_ref()
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
Dmod.rs3341 pub fn get_ref(&self) -> &S { in get_ref() method
3342 self.stream.get_ref() in get_ref()
3414 .field("stream", &self.get_ref()) in fmt()
3709 pub fn get_ref(&self) -> &S { in get_ref() method
3712 bio::get_ref(bio) in get_ref()
3938 pub fn get_ref(&self) -> &S { in get_ref() method
3941 bio::get_ref(bio) in get_ref()
/third_party/rust/crates/pin-project-lite/src/
Dlib.rs445 [project_ref get_ref]
563 [project_ref get_ref]

12