Home
last modified time | relevance | path

Searched refs:number_integer_t (Results 1 – 25 of 41) sorted by relevance

12

/third_party/json/test/src/
Dunit-reference_access.cpp77 CHECK_THROWS_AS(value.get_ref<json::number_integer_t&>(), json::type_error&);
78 CHECK_THROWS_WITH(value.get_ref<json::number_integer_t&>(),
127 CHECK_THROWS_AS(value.get_ref<json::number_integer_t&>(), json::type_error&);
128 CHECK_THROWS_WITH(value.get_ref<json::number_integer_t&>(),
163 CHECK_THROWS_AS(value.get_ref<json::number_integer_t&>(), json::type_error&);
164 CHECK_THROWS_WITH(value.get_ref<json::number_integer_t&>(),
199 CHECK_THROWS_AS(value.get_ref<json::number_integer_t&>(), json::type_error&);
200 CHECK_THROWS_WITH(value.get_ref<json::number_integer_t&>(),
212 using test_type = json::number_integer_t;
237 CHECK_NOTHROW(value.get_ref<json::number_integer_t&>());
[all …]
Dunit-pointer_access.cpp60 CHECK(value.get_ptr<json::number_integer_t*>() == nullptr);
89 CHECK(value.get_ptr<const json::number_integer_t*>() == nullptr);
118 CHECK(value.get_ptr<json::number_integer_t*>() == nullptr);
147 CHECK(value.get_ptr<const json::number_integer_t*>() == nullptr);
176 CHECK(value.get_ptr<json::number_integer_t*>() == nullptr);
205 CHECK(value.get_ptr<const json::number_integer_t*>() == nullptr);
234 CHECK(value.get_ptr<json::number_integer_t*>() == nullptr);
263 CHECK(value.get_ptr<const json::number_integer_t*>() == nullptr);
271 using test_type = json::number_integer_t;
292 CHECK(value.get_ptr<json::number_integer_t*>() != nullptr);
[all …]
Dunit-conversions.cpp726 json::number_integer_t n_reference{42};
733 auto n = j.get<json::number_integer_t>();
937 CHECK_THROWS_AS(json(json::value_t::null).get<json::number_integer_t>(),
939 CHECK_THROWS_AS(json(json::value_t::object).get<json::number_integer_t>(),
941 CHECK_THROWS_AS(json(json::value_t::array).get<json::number_integer_t>(),
943 CHECK_THROWS_AS(json(json::value_t::string).get<json::number_integer_t>(),
946 json(json::value_t::boolean).get<json::number_integer_t>(),
950 json(json::value_t::null).get<json::number_integer_t>(),
953 json(json::value_t::object).get<json::number_integer_t>(),
956 json(json::value_t::array).get<json::number_integer_t>(),
[all …]
Dunit-msgpack.cpp60 bool number_integer(json::number_integer_t /*unused*/) in number_integer() argument
213 … 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/json/include/nlohmann/detail/input/
Djson_sax.hpp25 using number_integer_t = typename BasicJsonType::number_integer_t; typedef
49 virtual bool number_integer(number_integer_t val) = 0;
157 using number_integer_t = typename BasicJsonType::number_integer_t; typedef in nlohmann::detail::json_sax_dom_parser
191 bool number_integer(number_integer_t val) in number_integer()
331 using number_integer_t = typename BasicJsonType::number_integer_t; typedef in nlohmann::detail::json_sax_dom_callback_parser
366 bool number_integer(number_integer_t val) in number_integer()
638 using number_integer_t = typename BasicJsonType::number_integer_t; typedef in nlohmann::detail::json_sax_acceptor
654 bool number_integer(number_integer_t /*unused*/) in number_integer() argument
Dlexer.hpp105 using number_integer_t = typename BasicJsonType::number_integer_t; typedef in nlohmann::detail::lexer
1268 value_integer = static_cast<number_integer_t>(x); in scan_number()
1404 constexpr number_integer_t get_number_integer() const noexcept in get_number_integer()
1615 number_integer_t value_integer = 0;
Dbinary_reader.hpp61 using number_integer_t = typename BasicJsonType::number_integer_t; typedef in nlohmann::detail::binary_reader
497 …er(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number… in parse_cbor_internal()
503 …er(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number… in parse_cbor_internal()
509 …er(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) - number… in parse_cbor_internal()
515 …n get_number(input_format_t::cbor, number) && sax->number_integer(static_cast<number_integer_t>(-1) in parse_cbor_internal()
516 - static_cast<number_integer_t>(number)); in parse_cbor_internal()
/third_party/json/doc/examples/
Dget_ptr.cpp12 auto p1 = value.get_ptr<const json::number_integer_t*>(); in main()
13 auto p2 = value.get_ptr<json::number_integer_t*>(); in main()
14 auto p3 = value.get_ptr<json::number_integer_t* const>(); in main()
15 auto p4 = value.get_ptr<const json::number_integer_t* const>(); in main()
Dget__PointerType.cpp12 auto p1 = value.get<const json::number_integer_t*>(); in main()
13 auto p2 = value.get<json::number_integer_t*>(); in main()
14 auto p3 = value.get<json::number_integer_t* const>(); in main()
15 auto p4 = value.get<const json::number_integer_t* const>(); in main()
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()
Dbasic_json__CompatibleType.cpp147 json::number_integer_t value_integer_t = -42; in main()
151 json::number_integer_t value_unsigned_t = 17; in main()
/third_party/json/include/nlohmann/detail/meta/
Dis_sax.hpp71 using number_integer_t = typename BasicJsonType::number_integer_t; typedef
82 is_detected_exact<bool, number_integer_function_t, SAX, number_integer_t>::value &&
102 using number_integer_t = typename BasicJsonType::number_integer_t; typedef
118 number_integer_t>::value,
/third_party/json/include/nlohmann/detail/
Dhash.hpp37 using number_integer_t = typename BasicJsonType::number_integer_t; in hash() typedef
86 const auto h = std::hash<number_integer_t> {}(j.template get<number_integer_t>()); in hash()
/third_party/json/doc/mkdocs/docs/api/basic_json/
Dnumber_unsigned_t.md17 types, [`number_integer_t`](number_integer_t.md), `number_unsigned_t` and [`number_float_t`](number…
45 as [`number_integer_t`](number_integer_t.md) or [`number_float_t`](number_float_t.md).
51 As this range is a subrange (when considered in conjunction with the `number_integer_t` type) of th…
Dnumber_integer_t.md1 # basic_json::number_integer_t
4 using number_integer_t = NumberIntegerType;
17 types, `number_integer_t`, [`number_unsigned_t`](number_unsigned_t.md) and [`number_float_t`](numb…
27 …efault values for `NumberIntegerType` (`std::int64_t`), the default value for `number_integer_t` is
Dvalue_t.md29 [`number_integer_t`](number_integer_t.md) is used for signed integers, and [`number_float_t`](numbe…
Dget_ref.md17 …[`string_t`](string_t.md), [`boolean_t`](boolean_t.md), [`number_integer_t`](number_integer_t.md),…
Dget_ptr.md17 [`boolean_t`](boolean_t.md), [`number_integer_t`](number_integer_t.md), or
Dnumber_float_t.md17 types, [`number_integer_t`](number_integer_t.md), [`number_unsigned_t`](number_unsigned_t.md) and `…
Dget.md76 [`boolean_t`](boolean_t.md), [`number_integer_t`](number_integer_t.md), or
Dindex.md34 | `NumberIntegerType` | type for JSON integer numbers | [`number_integer_t`](number_integer_t.md) |
90 - [**number_integer_t**](number_integer_t.md) - type for numbers (integer)
/third_party/json/include/nlohmann/detail/output/
Dserializer.hpp44 using number_integer_t = typename BasicJsonType::number_integer_t; typedef in nlohmann::detail::serializer
679 std::is_same<NumberType, number_integer_t>::value ||
718 abs_value = remove_sign(static_cast<number_integer_t>(x)); in dump_integer()
923 inline number_unsigned_t remove_sign(number_integer_t x) noexcept in remove_sign()
925 …JSON_ASSERT(x < 0 && x < (std::numeric_limits<number_integer_t>::max)()); // NOLINT(misc-redundant… in remove_sign()
/third_party/json/doc/mkdocs/docs/features/types/
Dindex.md42 number_integer_t number_integer
56 + <u>typedef</u> number_integer_t
100 using number_integer_t = NumberIntegerType;
232 …eger or a floating-point number. Therefore, three different types, `number_integer_t`, `number_uns…
236 …es for *NumberIntegerType* (`std::int64_t`), the default value for `number_integer_t` is `std::int…
253 … large or small integer numbers will be automatically be stored as `number_integer_t` or `number_f…
/third_party/json/include/nlohmann/detail/conversions/
Dfrom_json.hpp52 …tatic_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); in get_arithmetic_value()
123 void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val) in from_json()
324 !std::is_same<ArithmeticType, typename BasicJsonType::number_integer_t>::value&&
339 …tatic_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>()); in from_json()
/third_party/json/doc/mkdocs/docs/features/parsing/
Dsax_interface.md11 + {abstract} bool number_integer(number_integer_t val)
37 bool number_integer(number_integer_t val);

12