diff --git a/array__iterator-inl_8h_source.html b/array__iterator-inl_8h_source.html index 407ddafaa..d45fd5565 100644 --- a/array__iterator-inl_8h_source.html +++ b/array__iterator-inl_8h_source.html @@ -179,7 +179,7 @@ $(document).ready(function(){initNavTree('array__iterator-inl_8h_source.html',''
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
diff --git a/array__iterator_8h_source.html b/array__iterator_8h_source.html index 5223925b1..51d9dec06 100644 --- a/array__iterator_8h_source.html +++ b/array__iterator_8h_source.html @@ -162,8 +162,8 @@ $(document).ready(function(){initNavTree('array__iterator_8h_source.html',''); i
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array_iterator >
Definition: array_iterator.h:78
-
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:649
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:652
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html index 2c46403f7..1e712d9c3 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document.html @@ -1115,7 +1115,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.

Determine the number type (integer or floating-point number) as quickly as possible.

This function does not fully validate the input. It is useful when you only need to classify the numbers, without parsing them.

If you are planning to retrieve the value or you need full validation, consider using the get_number() method instead: it will fully parse and validate the input, and give you access to the type: get_number().get_number_type().

-

get_number_type() is number_type::unsigned_integer if we have an integer greater or equal to 9223372036854775808 get_number_type() is number_type::signed_integer if we have an integer that is less than 9223372036854775808 Otherwise, get_number_type() has value number_type::floating_point_number

+

get_number_type() is number_type::unsigned_integer if we have an integer greater or equal to 9223372036854775808 get_number_type() is number_type::signed_integer if we have an integer that is less than 9223372036854775808 get_number_type() is number_type::big_integer if we have and integer larger than those ranges above Otherwise, get_number_type() has value number_type::floating_point_number

This function requires processing the number string, but it is expected to be faster than get_number().get_number_type() because it is does not parse the number value.

Returns
the type of the number
diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html index 6c25356a5..7e8d0d187 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1document__reference.html @@ -276,7 +276,7 @@ template<>

Detailed Description

A document_reference is a thin wrapper around a document reference instance.

-

Definition at line 679 of file document.h.

+

Definition at line 681 of file document.h.

Member Function Documentation

◆ get_uint64()

diff --git a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html index 47806f5f4..d1001a0b0 100644 --- a/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html +++ b/classsimdjson_1_1_s_i_m_d_j_s_o_n___i_m_p_l_e_m_e_n_t_a_t_i_o_n_1_1ondemand_1_1value.html @@ -988,6 +988,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.

An ondemand::number may contain an integer value or a floating-point value, the simdjson library will autodetect the type. Thus it is a dynamically typed number. Before accessing the value, you must determine the detected type.

number.get_number_type() is number_type::signed_integer if we have an integer in [-9223372036854775808,9223372036854775808) You can recover the value by calling number.get_int64() and you have that number.is_int64() is true.

number.get_number_type() is number_type::unsigned_integer if we have an integer in [9223372036854775808,18446744073709551616) You can recover the value by calling number.get_uint64() and you have that number.is_uint64() is true.

+

For integers that do not fit in 64 bits, the function returns BIGINT_ERROR error code.

Otherwise, number.get_number_type() has value number_type::floating_point_number and we have a binary64 number. You can recover the value by calling number.get_double() and you have that number.is_double() is true.

You must check the type before accessing the value: it is an error to call "get_int64()" when number.get_number_type() is not number_type::signed_integer and when number.is_int64() is false.

Performance note: this is designed with performance in mind. When calling 'get_number()', you scan the number string only once, determining efficiently the type and storing it in an efficient manner.

@@ -1022,7 +1023,7 @@ INCORRECT_TYPE If the JSON value is not a 64-bit integer.

Determine the number type (integer or floating-point number) as quickly as possible.

This function does not fully validate the input. It is useful when you only need to classify the numbers, without parsing them.

If you are planning to retrieve the value or you need full validation, consider using the get_number() method instead: it will fully parse and validate the input, and give you access to the type: get_number().get_number_type().

-

get_number_type() is number_type::unsigned_integer if we have an integer greater or equal to 9223372036854775808 get_number_type() is number_type::signed_integer if we have an integer that is less than 9223372036854775808 Otherwise, get_number_type() has value number_type::floating_point_number

+

get_number_type() is number_type::unsigned_integer if we have an integer greater or equal to 9223372036854775808. get_number_type() is number_type::signed_integer if we have an integer that is less than 9223372036854775808. get_number_type() is number_type::big_integer for integers that do not fit in 64 bits, in which case the digit_count is set to the length of the big integer string. Otherwise, get_number_type() has value number_type::floating_point_number.

This function requires processing the number string, but it is expected to be faster than get_number().get_number_type() because it is does not parse the number value.

Returns
the type of the number
diff --git a/dom_2array-inl_8h_source.html b/dom_2array-inl_8h_source.html index 9dd7bf63a..82f70782d 100644 --- a/dom_2array-inl_8h_source.html +++ b/dom_2array-inl_8h_source.html @@ -283,10 +283,10 @@ $(document).ready(function(){initNavTree('dom_2array-inl_8h_source.html',''); in
simdjson::dom::element
A JSON element.
Definition: element.h:31
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:36
-
simdjson::INDEX_OUT_OF_BOUNDS
@ INDEX_OUT_OF_BOUNDS
JSON array index too large.
Definition: error.h:38
-
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:41
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:37
+
simdjson::INDEX_OUT_OF_BOUNDS
@ INDEX_OUT_OF_BOUNDS
JSON array index too large.
Definition: error.h:39
+
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:42
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
diff --git a/dom_2array_8h_source.html b/dom_2array_8h_source.html index 7b8f98cf2..fc917620a 100644 --- a/dom_2array_8h_source.html +++ b/dom_2array_8h_source.html @@ -205,7 +205,7 @@ $(document).ready(function(){initNavTree('dom_2array_8h_source.html',''); initRe
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::simdjson_result< dom::element >
The result of a JSON navigation that may fail.
Definition: element.h:492
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/dom_2document__stream-inl_8h_source.html b/dom_2document__stream-inl_8h_source.html index 707a965c1..54d106963 100644 --- a/dom_2document__stream-inl_8h_source.html +++ b/dom_2document__stream-inl_8h_source.html @@ -450,11 +450,11 @@ $(document).ready(function(){initNavTree('dom_2document__stream-inl_8h_source.ht
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::CAPACITY
@ CAPACITY
This parser can't support a document that big.
Definition: error.h:21
-
simdjson::EMPTY
@ EMPTY
no structural element found
Definition: error.h:32
+
simdjson::EMPTY
@ EMPTY
no structural element found
Definition: error.h:33
simdjson::MEMALLOC
@ MEMALLOC
Error allocating memory, most likely out of memory.
Definition: error.h:22
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
diff --git a/dom_2document__stream_8h_source.html b/dom_2document__stream_8h_source.html index 218df02c0..3693f77e7 100644 --- a/dom_2document__stream_8h_source.html +++ b/dom_2document__stream_8h_source.html @@ -255,8 +255,8 @@ $(document).ready(function(){initNavTree('dom_2document__stream_8h_source.html',
simdjson::dom::parser
A persistent document parser.
Definition: parser.h:30
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/dom_2object-inl_8h_source.html b/dom_2object-inl_8h_source.html index c9260632a..f50a4b2c4 100644 --- a/dom_2object-inl_8h_source.html +++ b/dom_2object-inl_8h_source.html @@ -359,9 +359,9 @@ $(document).ready(function(){initNavTree('dom_2object-inl_8h_source.html',''); i
simdjson::dom::object::begin
iterator begin() const noexcept
Return the first key/value pair.
Definition: object-inl.h:70
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:39
-
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:41
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:40
+
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:42
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
diff --git a/dom_2object_8h_source.html b/dom_2object_8h_source.html index 0b3d1bb74..906f2b876 100644 --- a/dom_2object_8h_source.html +++ b/dom_2object_8h_source.html @@ -240,7 +240,7 @@ $(document).ready(function(){initNavTree('dom_2object_8h_source.html',''); initR
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::simdjson_result< dom::element >
The result of a JSON navigation that may fail.
Definition: element.h:492
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/dom_2parser-inl_8h_source.html b/dom_2parser-inl_8h_source.html index 0864fdd15..87145a3df 100644 --- a/dom_2parser-inl_8h_source.html +++ b/dom_2parser-inl_8h_source.html @@ -372,10 +372,10 @@ $(document).ready(function(){initNavTree('dom_2parser-inl_8h_source.html',''); i
simdjson::CAPACITY
@ CAPACITY
This parser can't support a document that big.
Definition: error.h:21
simdjson::MEMALLOC
@ MEMALLOC
Error allocating memory, most likely out of memory.
Definition: error.h:22
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::IO_ERROR
@ IO_ERROR
Error reading a file.
Definition: error.h:40
+
simdjson::IO_ERROR
@ IO_ERROR
Error reading a file.
Definition: error.h:41
simdjson::get_active_implementation
SIMDJSON_DLLIMPORTEXPORT internal::atomic_ptr< const implementation > & get_active_implementation()
The active implementation.
simdjson::SIMDJSON_PADDING
constexpr size_t SIMDJSON_PADDING
The amount of padding needed in a buffer to parse JSON.
Definition: base.h:31
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/dom_2parser_8h_source.html b/dom_2parser_8h_source.html index 809d2d329..938788939 100644 --- a/dom_2parser_8h_source.html +++ b/dom_2parser_8h_source.html @@ -254,10 +254,10 @@ $(document).ready(function(){initNavTree('dom_2parser_8h_source.html',''); initR
simdjson::error_message
const char * error_message(error_code error) noexcept
It is the convention throughout the code that the macro SIMDJSON_DEVELOPMENT_CHECKS determines whethe...
Definition: error-inl.h:20
simdjson::DEFAULT_MAX_DEPTH
constexpr size_t DEFAULT_MAX_DEPTH
By default, simdjson supports this many nested objects and arrays.
Definition: base.h:38
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
simdjson::padded_string
String with extra allocation for ease of use with parser::parse()
Definition: padded_string.h:23
-
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:81
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:82
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/dom_2serialization-inl_8h_source.html b/dom_2serialization-inl_8h_source.html index ba124346c..2842f2980 100644 --- a/dom_2serialization-inl_8h_source.html +++ b/dom_2serialization-inl_8h_source.html @@ -612,8 +612,8 @@ $(document).ready(function(){initNavTree('dom_2serialization-inl_8h_source.html'
simdjson::dom::key_value_pair::value
element value
value in the key-value pair
Definition: object.h:222
simdjson::dom::object
JSON object.
Definition: object.h:14
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
-
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:81
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:82
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/dom_2serialization_8h_source.html b/dom_2serialization_8h_source.html index 55fcaaeb6..1dca0fa15 100644 --- a/dom_2serialization_8h_source.html +++ b/dom_2serialization_8h_source.html @@ -256,7 +256,7 @@ $(document).ready(function(){initNavTree('dom_2serialization_8h_source.html','')
simdjson::to_string
std::string to_string(T x)
Converts JSON to a string.
Definition: serialization.h:186
simdjson::minify
std::string minify(T x)
Minifies a JSON element or document, printing the smallest possible valid JSON.
Definition: serialization.h:212
simdjson::prettify
std::string prettify(T x)
Prettifies a JSON element or document, printing the valid JSON with indentation.
Definition: serialization.h:242
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/element-inl_8h_source.html b/element-inl_8h_source.html index 0e2e9845a..e8c308c36 100644 --- a/element-inl_8h_source.html +++ b/element-inl_8h_source.html @@ -593,11 +593,11 @@ $(document).ready(function(){initNavTree('element-inl_8h_source.html',''); initR
simdjson::dom::element_type::DOUBLE
@ DOUBLE
double: Any number with a "." or "e" that fits in double.
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:36
-
simdjson::NUMBER_OUT_OF_RANGE
@ NUMBER_OUT_OF_RANGE
JSON number does not fit in 64 bits.
Definition: error.h:37
+
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:37
+
simdjson::NUMBER_OUT_OF_RANGE
@ NUMBER_OUT_OF_RANGE
JSON number does not fit in 64 bits.
Definition: error.h:38
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:41
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:42
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::get
simdjson_warn_unused simdjson_inline error_code get(T &value) &&noexcept
Move the value to the provided variable.
Definition: error-inl.h:126
diff --git a/element_8h_source.html b/element_8h_source.html index e12341d84..348a15206 100644 --- a/element_8h_source.html +++ b/element_8h_source.html @@ -327,7 +327,7 @@ $(document).ready(function(){initNavTree('element_8h_source.html',''); initResiz
simdjson::simdjson_result< dom::array >
The result of a JSON conversion that may fail.
Definition: array.h:143
simdjson::simdjson_result< dom::element >
The result of a JSON navigation that may fail.
Definition: element.h:492
simdjson::simdjson_result< dom::object >
The result of a JSON conversion that may fail.
Definition: object.h:233
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::get
simdjson_warn_unused simdjson_inline error_code get(T &value) &&noexcept
Move the value to the provided variable.
Definition: error-inl.h:126
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/error-inl_8h_source.html b/error-inl_8h_source.html index 573d50e5f..6ff2baf1c 100644 --- a/error-inl_8h_source.html +++ b/error-inl_8h_source.html @@ -277,9 +277,9 @@ $(document).ready(function(){initNavTree('error-inl_8h_source.html',''); initRes
simdjson::error_message
const char * error_message(error_code error) noexcept
It is the convention throughout the code that the macro SIMDJSON_DEVELOPMENT_CHECKS determines whethe...
Definition: error-inl.h:20
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::UNEXPECTED_ERROR
@ UNEXPECTED_ERROR
indicative of a bug in simdjson
Definition: error.h:43
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::UNEXPECTED_ERROR
@ UNEXPECTED_ERROR
indicative of a bug in simdjson
Definition: error.h:44
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value_unsafe
simdjson_inline const T & value_unsafe() const &noexcept
Get the result value.
simdjson::simdjson_result::take_value
simdjson_inline T && take_value() &&noexcept(false)
Take the result value (move it).
Definition: error-inl.h:148
diff --git a/error_8h_source.html b/error_8h_source.html index 07b60676f..bbe055f0b 100644 --- a/error_8h_source.html +++ b/error_8h_source.html @@ -112,165 +112,167 @@ $(document).ready(function(){initNavTree('error_8h_source.html',''); initResizab
27  F_ATOM_ERROR,
28  N_ATOM_ERROR,
29  NUMBER_ERROR,
-
30  UTF8_ERROR,
-
31  UNINITIALIZED,
-
32  EMPTY,
-
33  UNESCAPED_CHARS,
-
34  UNCLOSED_STRING,
-
35  UNSUPPORTED_ARCHITECTURE,
-
36  INCORRECT_TYPE,
-
37  NUMBER_OUT_OF_RANGE,
-
38  INDEX_OUT_OF_BOUNDS,
-
39  NO_SUCH_FIELD,
-
40  IO_ERROR,
-
41  INVALID_JSON_POINTER,
-
42  INVALID_URI_FRAGMENT,
-
43  UNEXPECTED_ERROR,
-
44  PARSER_IN_USE,
-
45  OUT_OF_ORDER_ITERATION,
-
46  INSUFFICIENT_PADDING,
-
47  INCOMPLETE_ARRAY_OR_OBJECT,
-
48  SCALAR_DOCUMENT_AS_VALUE,
-
49  OUT_OF_BOUNDS,
-
50  TRAILING_CONTENT,
-
51  NUM_ERROR_CODES
-
52 };
-
53 
-
71 inline const char *error_message(error_code error) noexcept;
-
72 
-
76 inline std::ostream& operator<<(std::ostream& out, error_code error) noexcept;
-
77 
-
81 struct simdjson_error : public std::exception {
-
86  simdjson_error(error_code error) noexcept : _error{error} { }
-
88  const char *what() const noexcept { return error_message(error()); }
-
90  error_code error() const noexcept { return _error; }
-
91 private:
-
93  error_code _error;
-
94 };
-
95 
-
96 namespace internal {
-
97 
-
118 template<typename T>
-
119 struct simdjson_result_base : protected std::pair<T, error_code> {
-
120 
-
124  simdjson_inline simdjson_result_base() noexcept;
-
125 
-
129  simdjson_inline simdjson_result_base(error_code error) noexcept;
-
130 
-
134  simdjson_inline simdjson_result_base(T &&value) noexcept;
-
135 
-
139  simdjson_inline simdjson_result_base(T &&value, error_code error) noexcept;
-
140 
-
147  simdjson_inline void tie(T &value, error_code &error) && noexcept;
-
148 
-
154  simdjson_inline error_code get(T &value) && noexcept;
-
155 
-
159  simdjson_inline error_code error() const noexcept;
-
160 
-
161 #if SIMDJSON_EXCEPTIONS
-
162 
-
168  simdjson_inline T& value() & noexcept(false);
-
169 
-
175  simdjson_inline T&& value() && noexcept(false);
-
176 
-
182  simdjson_inline T&& take_value() && noexcept(false);
-
183 
-
189  simdjson_inline operator T&&() && noexcept(false);
-
190 #endif // SIMDJSON_EXCEPTIONS
-
191 
-
196  simdjson_inline const T& value_unsafe() const& noexcept;
-
197 
-
202  simdjson_inline T&& value_unsafe() && noexcept;
-
203 
-
204 }; // struct simdjson_result_base
-
205 
-
206 } // namespace internal
-
207 
-
213 template<typename T>
-
214 struct simdjson_result : public internal::simdjson_result_base<T> {
-
218  simdjson_inline simdjson_result() noexcept;
-
222  simdjson_inline simdjson_result(T &&value) noexcept;
-
226  simdjson_inline simdjson_result(error_code error_code) noexcept;
-
230  simdjson_inline simdjson_result(T &&value, error_code error) noexcept;
-
231 
-
238  simdjson_inline void tie(T &value, error_code &error) && noexcept;
-
239 
-
245  simdjson_warn_unused simdjson_inline error_code get(T &value) && noexcept;
-
246 
-
250  simdjson_inline error_code error() const noexcept;
-
251 
-
252 #if SIMDJSON_EXCEPTIONS
-
253 
-
259  simdjson_inline T& value() & noexcept(false);
-
260 
-
266  simdjson_inline T&& value() && noexcept(false);
-
267 
-
273  simdjson_inline T&& take_value() && noexcept(false);
-
274 
-
280  simdjson_inline operator T&&() && noexcept(false);
-
281 #endif // SIMDJSON_EXCEPTIONS
-
282 
-
287  simdjson_inline const T& value_unsafe() const& noexcept;
-
288 
-
293  simdjson_inline T&& value_unsafe() && noexcept;
-
294 
-
295 }; // struct simdjson_result
-
296 
-
297 #if SIMDJSON_EXCEPTIONS
-
298 
-
299 template<typename T>
-
300 inline std::ostream& operator<<(std::ostream& out, simdjson_result<T> value) { return out << value.value(); }
-
301 #endif // SIMDJSON_EXCEPTIONS
-
302 
-
303 #ifndef SIMDJSON_DISABLE_DEPRECATED_API
-
307 using ErrorValues [[deprecated("This is an alias and will be removed, use error_code instead")]] = error_code;
-
308 
-
312 [[deprecated("Error codes should be stored and returned as `error_code`, use `error_message()` instead.")]]
-
313 inline const std::string error_message(int error) noexcept;
-
314 #endif // SIMDJSON_DISABLE_DEPRECATED_API
-
315 } // namespace simdjson
-
316 
-
317 #endif // SIMDJSON_ERROR_H
+
30  BIGINT_ERROR,
+
31  UTF8_ERROR,
+
32  UNINITIALIZED,
+
33  EMPTY,
+
34  UNESCAPED_CHARS,
+
35  UNCLOSED_STRING,
+
36  UNSUPPORTED_ARCHITECTURE,
+
37  INCORRECT_TYPE,
+
38  NUMBER_OUT_OF_RANGE,
+
39  INDEX_OUT_OF_BOUNDS,
+
40  NO_SUCH_FIELD,
+
41  IO_ERROR,
+
42  INVALID_JSON_POINTER,
+
43  INVALID_URI_FRAGMENT,
+
44  UNEXPECTED_ERROR,
+
45  PARSER_IN_USE,
+
46  OUT_OF_ORDER_ITERATION,
+
47  INSUFFICIENT_PADDING,
+
48  INCOMPLETE_ARRAY_OR_OBJECT,
+
49  SCALAR_DOCUMENT_AS_VALUE,
+
50  OUT_OF_BOUNDS,
+
51  TRAILING_CONTENT,
+
52  NUM_ERROR_CODES
+
53 };
+
54 
+
72 inline const char *error_message(error_code error) noexcept;
+
73 
+
77 inline std::ostream& operator<<(std::ostream& out, error_code error) noexcept;
+
78 
+
82 struct simdjson_error : public std::exception {
+
87  simdjson_error(error_code error) noexcept : _error{error} { }
+
89  const char *what() const noexcept { return error_message(error()); }
+
91  error_code error() const noexcept { return _error; }
+
92 private:
+
94  error_code _error;
+
95 };
+
96 
+
97 namespace internal {
+
98 
+
119 template<typename T>
+
120 struct simdjson_result_base : protected std::pair<T, error_code> {
+
121 
+
125  simdjson_inline simdjson_result_base() noexcept;
+
126 
+
130  simdjson_inline simdjson_result_base(error_code error) noexcept;
+
131 
+
135  simdjson_inline simdjson_result_base(T &&value) noexcept;
+
136 
+
140  simdjson_inline simdjson_result_base(T &&value, error_code error) noexcept;
+
141 
+
148  simdjson_inline void tie(T &value, error_code &error) && noexcept;
+
149 
+
155  simdjson_inline error_code get(T &value) && noexcept;
+
156 
+
160  simdjson_inline error_code error() const noexcept;
+
161 
+
162 #if SIMDJSON_EXCEPTIONS
+
163 
+
169  simdjson_inline T& value() & noexcept(false);
+
170 
+
176  simdjson_inline T&& value() && noexcept(false);
+
177 
+
183  simdjson_inline T&& take_value() && noexcept(false);
+
184 
+
190  simdjson_inline operator T&&() && noexcept(false);
+
191 #endif // SIMDJSON_EXCEPTIONS
+
192 
+
197  simdjson_inline const T& value_unsafe() const& noexcept;
+
198 
+
203  simdjson_inline T&& value_unsafe() && noexcept;
+
204 
+
205 }; // struct simdjson_result_base
+
206 
+
207 } // namespace internal
+
208 
+
214 template<typename T>
+
215 struct simdjson_result : public internal::simdjson_result_base<T> {
+
219  simdjson_inline simdjson_result() noexcept;
+
223  simdjson_inline simdjson_result(T &&value) noexcept;
+
227  simdjson_inline simdjson_result(error_code error_code) noexcept;
+
231  simdjson_inline simdjson_result(T &&value, error_code error) noexcept;
+
232 
+
239  simdjson_inline void tie(T &value, error_code &error) && noexcept;
+
240 
+
246  simdjson_warn_unused simdjson_inline error_code get(T &value) && noexcept;
+
247 
+
251  simdjson_inline error_code error() const noexcept;
+
252 
+
253 #if SIMDJSON_EXCEPTIONS
+
254 
+
260  simdjson_inline T& value() & noexcept(false);
+
261 
+
267  simdjson_inline T&& value() && noexcept(false);
+
268 
+
274  simdjson_inline T&& take_value() && noexcept(false);
+
275 
+
281  simdjson_inline operator T&&() && noexcept(false);
+
282 #endif // SIMDJSON_EXCEPTIONS
+
283 
+
288  simdjson_inline const T& value_unsafe() const& noexcept;
+
289 
+
294  simdjson_inline T&& value_unsafe() && noexcept;
+
295 
+
296 }; // struct simdjson_result
+
297 
+
298 #if SIMDJSON_EXCEPTIONS
+
299 
+
300 template<typename T>
+
301 inline std::ostream& operator<<(std::ostream& out, simdjson_result<T> value) { return out << value.value(); }
+
302 #endif // SIMDJSON_EXCEPTIONS
+
303 
+
304 #ifndef SIMDJSON_DISABLE_DEPRECATED_API
+
308 using ErrorValues [[deprecated("This is an alias and will be removed, use error_code instead")]] = error_code;
+
309 
+
313 [[deprecated("Error codes should be stored and returned as `error_code`, use `error_message()` instead.")]]
+
314 inline const std::string error_message(int error) noexcept;
+
315 #endif // SIMDJSON_DISABLE_DEPRECATED_API
+
316 } // namespace simdjson
+
317 
+
318 #endif // SIMDJSON_ERROR_H
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::operator<<
std::ostream & operator<<(std::ostream &out, error_code error) noexcept
Write the error message to the output stream.
Definition: error-inl.h:35
simdjson::error_message
const char * error_message(error_code error) noexcept
It is the convention throughout the code that the macro SIMDJSON_DEVELOPMENT_CHECKS determines whethe...
Definition: error-inl.h:20
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::SCALAR_DOCUMENT_AS_VALUE
@ SCALAR_DOCUMENT_AS_VALUE
A scalar document is treated as a value.
Definition: error.h:48
+
simdjson::SCALAR_DOCUMENT_AS_VALUE
@ SCALAR_DOCUMENT_AS_VALUE
A scalar document is treated as a value.
Definition: error.h:49
simdjson::DEPTH_ERROR
@ DEPTH_ERROR
Your document exceeds the user-specified depth limitation.
Definition: error.h:24
-
simdjson::UNCLOSED_STRING
@ UNCLOSED_STRING
missing quote at the end
Definition: error.h:34
-
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:36
+
simdjson::UNCLOSED_STRING
@ UNCLOSED_STRING
missing quote at the end
Definition: error.h:35
+
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:37
simdjson::CAPACITY
@ CAPACITY
This parser can't support a document that big.
Definition: error.h:21
-
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:45
-
simdjson::UTF8_ERROR
@ UTF8_ERROR
the input is not valid UTF-8
Definition: error.h:30
-
simdjson::OUT_OF_BOUNDS
@ OUT_OF_BOUNDS
Attempted to access location outside of document.
Definition: error.h:49
+
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:46
+
simdjson::UTF8_ERROR
@ UTF8_ERROR
the input is not valid UTF-8
Definition: error.h:31
+
simdjson::OUT_OF_BOUNDS
@ OUT_OF_BOUNDS
Attempted to access location outside of document.
Definition: error.h:50
simdjson::TAPE_ERROR
@ TAPE_ERROR
Something went wrong, this is a generic error.
Definition: error.h:23
-
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:39
-
simdjson::UNSUPPORTED_ARCHITECTURE
@ UNSUPPORTED_ARCHITECTURE
unsupported architecture
Definition: error.h:35
+
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:40
+
simdjson::UNSUPPORTED_ARCHITECTURE
@ UNSUPPORTED_ARCHITECTURE
unsupported architecture
Definition: error.h:36
simdjson::N_ATOM_ERROR
@ N_ATOM_ERROR
Problem while parsing an atom starting with the letter 'n'.
Definition: error.h:28
-
simdjson::EMPTY
@ EMPTY
no structural element found
Definition: error.h:32
-
simdjson::INVALID_URI_FRAGMENT
@ INVALID_URI_FRAGMENT
Invalid URI fragment.
Definition: error.h:42
-
simdjson::INDEX_OUT_OF_BOUNDS
@ INDEX_OUT_OF_BOUNDS
JSON array index too large.
Definition: error.h:38
-
simdjson::NUMBER_OUT_OF_RANGE
@ NUMBER_OUT_OF_RANGE
JSON number does not fit in 64 bits.
Definition: error.h:37
+
simdjson::EMPTY
@ EMPTY
no structural element found
Definition: error.h:33
+
simdjson::INVALID_URI_FRAGMENT
@ INVALID_URI_FRAGMENT
Invalid URI fragment.
Definition: error.h:43
+
simdjson::INDEX_OUT_OF_BOUNDS
@ INDEX_OUT_OF_BOUNDS
JSON array index too large.
Definition: error.h:39
+
simdjson::NUMBER_OUT_OF_RANGE
@ NUMBER_OUT_OF_RANGE
JSON number does not fit in 64 bits.
Definition: error.h:38
simdjson::STRING_ERROR
@ STRING_ERROR
Problem while parsing a string.
Definition: error.h:25
simdjson::MEMALLOC
@ MEMALLOC
Error allocating memory, most likely out of memory.
Definition: error.h:22
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
simdjson::T_ATOM_ERROR
@ T_ATOM_ERROR
Problem while parsing an atom starting with the letter 't'.
Definition: error.h:26
-
simdjson::TRAILING_CONTENT
@ TRAILING_CONTENT
Unexpected trailing content in the JSON input.
Definition: error.h:50
-
simdjson::INCOMPLETE_ARRAY_OR_OBJECT
@ INCOMPLETE_ARRAY_OR_OBJECT
The document ends early.
Definition: error.h:47
-
simdjson::UNEXPECTED_ERROR
@ UNEXPECTED_ERROR
indicative of a bug in simdjson
Definition: error.h:43
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
-
simdjson::UNESCAPED_CHARS
@ UNESCAPED_CHARS
found unescaped characters in a string.
Definition: error.h:33
-
simdjson::IO_ERROR
@ IO_ERROR
Error reading a file.
Definition: error.h:40
+
simdjson::TRAILING_CONTENT
@ TRAILING_CONTENT
Unexpected trailing content in the JSON input.
Definition: error.h:51
+
simdjson::INCOMPLETE_ARRAY_OR_OBJECT
@ INCOMPLETE_ARRAY_OR_OBJECT
The document ends early.
Definition: error.h:48
+
simdjson::UNEXPECTED_ERROR
@ UNEXPECTED_ERROR
indicative of a bug in simdjson
Definition: error.h:44
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
+
simdjson::UNESCAPED_CHARS
@ UNESCAPED_CHARS
found unescaped characters in a string.
Definition: error.h:34
+
simdjson::IO_ERROR
@ IO_ERROR
Error reading a file.
Definition: error.h:41
simdjson::NUMBER_ERROR
@ NUMBER_ERROR
Problem while parsing a number.
Definition: error.h:29
+
simdjson::BIGINT_ERROR
@ BIGINT_ERROR
The integer value exceeds 64 bits.
Definition: error.h:30
simdjson::F_ATOM_ERROR
@ F_ATOM_ERROR
Problem while parsing an atom starting with the letter 'f'.
Definition: error.h:27
-
simdjson::PARSER_IN_USE
@ PARSER_IN_USE
parser is already in use.
Definition: error.h:44
-
simdjson::INSUFFICIENT_PADDING
@ INSUFFICIENT_PADDING
The JSON doesn't have enough padding for simdjson to safely parse it.
Definition: error.h:46
-
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:41
-
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:81
-
simdjson::simdjson_error::what
const char * what() const noexcept
The error message.
Definition: error.h:88
-
simdjson::simdjson_error::error
error_code error() const noexcept
The error code.
Definition: error.h:90
-
simdjson::simdjson_error::simdjson_error
simdjson_error(error_code error) noexcept
Create an exception from a simdjson error code.
Definition: error.h:86
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::PARSER_IN_USE
@ PARSER_IN_USE
parser is already in use.
Definition: error.h:45
+
simdjson::INSUFFICIENT_PADDING
@ INSUFFICIENT_PADDING
The JSON doesn't have enough padding for simdjson to safely parse it.
Definition: error.h:47
+
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:42
+
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:82
+
simdjson::simdjson_error::what
const char * what() const noexcept
The error message.
Definition: error.h:89
+
simdjson::simdjson_error::error
error_code error() const noexcept
The error code.
Definition: error.h:91
+
simdjson::simdjson_error::simdjson_error
simdjson_error(error_code error) noexcept
Create an exception from a simdjson error code.
Definition: error.h:87
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::value_unsafe
simdjson_inline const T & value_unsafe() const &noexcept
Get the result value.
simdjson::simdjson_result::value
simdjson_inline T && value() &&noexcept(false)
Take the result value (move it).
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/field-inl_8h_source.html b/field-inl_8h_source.html index 1a34ac784..a42d7eaf2 100644 --- a/field-inl_8h_source.html +++ b/field-inl_8h_source.html @@ -203,7 +203,7 @@ $(document).ready(function(){initNavTree('field-inl_8h_source.html',''); initRes
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
An ephemeral JSON value returned during iteration.
Definition: value.h:18
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/field_8h_source.html b/field_8h_source.html index 0f98ddeba..a24df373e 100644 --- a/field_8h_source.html +++ b/field_8h_source.html @@ -158,8 +158,8 @@ $(document).ready(function(){initNavTree('field_8h_source.html',''); initResizab
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string >
Definition: raw_json_string.h:192
-
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:649
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:652
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/generic_2base_8h_source.html b/generic_2base_8h_source.html index 52419caeb..e442aaca1 100644 --- a/generic_2base_8h_source.html +++ b/generic_2base_8h_source.html @@ -127,13 +127,14 @@ $(document).ready(function(){initNavTree('generic_2base_8h_source.html',''); ini
37 enum class number_type {
38  floating_point_number=1,
39  signed_integer,
-
40  unsigned_integer
-
41 };
-
42 
-
43 } // namespace SIMDJSON_IMPLEMENTATION
-
44 } // namespace simdjson
-
45 
-
46 #endif // SIMDJSON_GENERIC_BASE_H
+
40  unsigned_integer,
+
41  big_integer
+
42 };
+
43 
+
44 } // namespace SIMDJSON_IMPLEMENTATION
+
45 } // namespace simdjson
+
46 
+
47 #endif // SIMDJSON_GENERIC_BASE_H
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
diff --git a/generic_2ondemand_2array-inl_8h_source.html b/generic_2ondemand_2array-inl_8h_source.html index 9bfcbda55..fbea273e4 100644 --- a/generic_2ondemand_2array-inl_8h_source.html +++ b/generic_2ondemand_2array-inl_8h_source.html @@ -394,11 +394,11 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2array-inl_8h_source
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
An ephemeral JSON value returned during iteration.
Definition: value.h:18
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:36
-
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:45
-
simdjson::INDEX_OUT_OF_BOUNDS
@ INDEX_OUT_OF_BOUNDS
JSON array index too large.
Definition: error.h:38
-
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:41
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:37
+
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:46
+
simdjson::INDEX_OUT_OF_BOUNDS
@ INDEX_OUT_OF_BOUNDS
JSON array index too large.
Definition: error.h:39
+
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:42
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
diff --git a/generic_2ondemand_2array_8h_source.html b/generic_2ondemand_2array_8h_source.html index 778b9eb06..131033913 100644 --- a/generic_2ondemand_2array_8h_source.html +++ b/generic_2ondemand_2array_8h_source.html @@ -189,8 +189,8 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2array_8h_source.htm
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array_iterator >
Definition: array_iterator.h:78
-
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:649
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:652
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/generic_2ondemand_2base_8h_source.html b/generic_2ondemand_2base_8h_source.html index c15da71f2..7baebdbba 100644 --- a/generic_2ondemand_2base_8h_source.html +++ b/generic_2ondemand_2base_8h_source.html @@ -132,7 +132,7 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2base_8h_source.html
47 #endif // SIMDJSON_GENERIC_ONDEMAND_BASE_H
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::array_iterator
A forward-only JSON array.
Definition: array_iterator.h:23
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::array
A forward-only JSON array.
Definition: array.h:17
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:679
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:681
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_stream
A forward-only stream of documents.
Definition: document_stream.h:79
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document
A JSON document.
Definition: document.h:20
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::field
A JSON field (key/value pair) in an object.
Definition: field.h:22
diff --git a/generic_2ondemand_2document-inl_8h_source.html b/generic_2ondemand_2document-inl_8h_source.html index cbfca9c76..30f2aa340 100644 --- a/generic_2ondemand_2document-inl_8h_source.html +++ b/generic_2ondemand_2document-inl_8h_source.html @@ -1002,7 +1002,7 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2document-inl_8h_sou
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get
simdjson_inline simdjson_result< T > get() &noexcept
Get this value as the given type.
Definition: document.h:181
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get_double_in_string
simdjson_inline simdjson_result< double > get_double_in_string() noexcept
Cast this JSON value (inside string) to a double.
Definition: document-inl.h:137
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::at_path
simdjson_inline simdjson_result< value > at_path(std::string_view json_path) noexcept
Get the value associated with the given JSONPath expression.
Definition: document-inl.h:319
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::iter
json_iterator iter
Current position in the document.
Definition: document.h:661
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::iter
json_iterator iter
Current position in the document.
Definition: document.h:663
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get_double
simdjson_inline simdjson_result< double > get_double() noexcept
Cast this JSON value to a double.
Definition: document-inl.h:134
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::to_debug_string
std::string to_debug_string() noexcept
Returns debugging information.
Definition: document-inl.h:37
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::rewind
void rewind() noexcept
Reset the iterator inside the document instance so we are pointing back at the beginning of the docum...
Definition: document-inl.h:33
@@ -1030,12 +1030,12 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2document-inl_8h_sou
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::json_type::array
@ array
A JSON array ( [ 1, 2, 3 ... ] )
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::SCALAR_DOCUMENT_AS_VALUE
@ SCALAR_DOCUMENT_AS_VALUE
A scalar document is treated as a value.
Definition: error.h:48
-
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:45
+
simdjson::SCALAR_DOCUMENT_AS_VALUE
@ SCALAR_DOCUMENT_AS_VALUE
A scalar document is treated as a value.
Definition: error.h:49
+
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:46
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:41
-
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:649
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:42
+
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:652
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::get
simdjson_warn_unused simdjson_inline error_code get(T &value) &&noexcept
Move the value to the provided variable.
Definition: error-inl.h:126
diff --git a/generic_2ondemand_2document_8h_source.html b/generic_2ondemand_2document_8h_source.html index f1d247812..e43d14f1e 100644 --- a/generic_2ondemand_2document_8h_source.html +++ b/generic_2ondemand_2document_8h_source.html @@ -185,282 +185,282 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2document_8h_source.
442 
448  simdjson_inline bool is_negative() noexcept;
458  simdjson_inline simdjson_result<bool> is_integer() noexcept;
-
481  simdjson_inline simdjson_result<number_type> get_number_type() noexcept;
-
482 
-
509  simdjson_warn_unused simdjson_inline simdjson_result<number> get_number() noexcept;
-
510 
-
533  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
-
534 
-
540  inline void rewind() noexcept;
-
544  inline std::string to_debug_string() noexcept;
-
549  inline bool is_alive() noexcept;
-
550 
-
554  inline simdjson_result<const char *> current_location() const noexcept;
-
555 
-
561  inline bool at_end() const noexcept;
-
562 
-
572  simdjson_inline int32_t current_depth() const noexcept;
-
573 
-
613  simdjson_inline simdjson_result<value> at_pointer(std::string_view json_pointer) noexcept;
-
614 
-
636  simdjson_inline simdjson_result<value> at_path(std::string_view json_path) noexcept;
-
637 
-
643  simdjson_inline simdjson_result<std::string_view> raw_json() noexcept;
-
644 protected:
-
648  simdjson_inline error_code consume() noexcept;
-
649 
-
650  simdjson_inline document(ondemand::json_iterator &&iter) noexcept;
-
651  simdjson_inline const uint8_t *text(uint32_t idx) const noexcept;
-
652 
-
653  simdjson_inline value_iterator resume_value_iterator() noexcept;
-
654  simdjson_inline value_iterator get_root_value_iterator() noexcept;
-
655  simdjson_inline simdjson_result<object> start_or_resume_object() noexcept;
-
656  static simdjson_inline document start(ondemand::json_iterator &&iter) noexcept;
-
657 
-
658  //
-
659  // Fields
+
483  simdjson_inline simdjson_result<number_type> get_number_type() noexcept;
+
484 
+
511  simdjson_warn_unused simdjson_inline simdjson_result<number> get_number() noexcept;
+
512 
+
535  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
+
536 
+
542  inline void rewind() noexcept;
+
546  inline std::string to_debug_string() noexcept;
+
551  inline bool is_alive() noexcept;
+
552 
+
556  inline simdjson_result<const char *> current_location() const noexcept;
+
557 
+
563  inline bool at_end() const noexcept;
+
564 
+
574  simdjson_inline int32_t current_depth() const noexcept;
+
575 
+
615  simdjson_inline simdjson_result<value> at_pointer(std::string_view json_pointer) noexcept;
+
616 
+
638  simdjson_inline simdjson_result<value> at_path(std::string_view json_path) noexcept;
+
639 
+
645  simdjson_inline simdjson_result<std::string_view> raw_json() noexcept;
+
646 protected:
+
650  simdjson_inline error_code consume() noexcept;
+
651 
+
652  simdjson_inline document(ondemand::json_iterator &&iter) noexcept;
+
653  simdjson_inline const uint8_t *text(uint32_t idx) const noexcept;
+
654 
+
655  simdjson_inline value_iterator resume_value_iterator() noexcept;
+
656  simdjson_inline value_iterator get_root_value_iterator() noexcept;
+
657  simdjson_inline simdjson_result<object> start_or_resume_object() noexcept;
+
658  static simdjson_inline document start(ondemand::json_iterator &&iter) noexcept;
+
659 
660  //
-
661  json_iterator iter{};
-
662  static constexpr depth_t DOCUMENT_DEPTH = 0;
-
663 
-
664  friend class array_iterator;
-
665  friend class value;
-
666  friend class ondemand::parser;
-
667  friend class object;
-
668  friend class array;
-
669  friend class field;
-
670  friend class token;
-
671  friend class document_stream;
-
672  friend class document_reference;
-
673 };
-
674 
-
675 
-
679 class document_reference {
-
680 public:
-
681  simdjson_inline document_reference() noexcept;
-
682  simdjson_inline document_reference(document &d) noexcept;
-
683  simdjson_inline document_reference(const document_reference &other) noexcept = default;
-
684  simdjson_inline document_reference& operator=(const document_reference &other) noexcept = default;
-
685  simdjson_inline void rewind() noexcept;
-
686  simdjson_inline simdjson_result<array> get_array() & noexcept;
-
687  simdjson_inline simdjson_result<object> get_object() & noexcept;
-
688  simdjson_inline simdjson_result<uint64_t> get_uint64() noexcept;
-
689  simdjson_inline simdjson_result<uint64_t> get_uint64_in_string() noexcept;
-
690  simdjson_inline simdjson_result<int64_t> get_int64() noexcept;
-
691  simdjson_inline simdjson_result<int64_t> get_int64_in_string() noexcept;
-
692  simdjson_inline simdjson_result<double> get_double() noexcept;
-
693  simdjson_inline simdjson_result<double> get_double_in_string() noexcept;
-
694  simdjson_inline simdjson_result<std::string_view> get_string(bool allow_replacement = false) noexcept;
-
695  template <typename string_type>
-
696  simdjson_inline error_code get_string(string_type& receiver, bool allow_replacement = false) noexcept;
-
697  simdjson_inline simdjson_result<std::string_view> get_wobbly_string() noexcept;
-
698  simdjson_inline simdjson_result<raw_json_string> get_raw_json_string() noexcept;
-
699  simdjson_inline simdjson_result<bool> get_bool() noexcept;
-
700  simdjson_inline simdjson_result<value> get_value() noexcept;
-
701 
-
702  simdjson_inline simdjson_result<bool> is_null() noexcept;
-
703  template<typename T> simdjson_inline simdjson_result<T> get() & noexcept;
-
704  simdjson_inline simdjson_result<std::string_view> raw_json() noexcept;
-
705  simdjson_inline operator document&() const noexcept;
-
706 #if SIMDJSON_EXCEPTIONS
-
707  template <class T>
-
708  explicit simdjson_inline operator T() noexcept(false);
-
709  simdjson_inline operator array() & noexcept(false);
-
710  simdjson_inline operator object() & noexcept(false);
-
711  simdjson_inline operator uint64_t() noexcept(false);
-
712  simdjson_inline operator int64_t() noexcept(false);
-
713  simdjson_inline operator double() noexcept(false);
-
714  simdjson_inline operator std::string_view() noexcept(false);
-
715  simdjson_inline operator raw_json_string() noexcept(false);
-
716  simdjson_inline operator bool() noexcept(false);
-
717  simdjson_inline operator value() noexcept(false);
-
718 #endif
-
719  simdjson_inline simdjson_result<size_t> count_elements() & noexcept;
-
720  simdjson_inline simdjson_result<size_t> count_fields() & noexcept;
-
721  simdjson_inline simdjson_result<value> at(size_t index) & noexcept;
-
722  simdjson_inline simdjson_result<array_iterator> begin() & noexcept;
-
723  simdjson_inline simdjson_result<array_iterator> end() & noexcept;
-
724  simdjson_inline simdjson_result<value> find_field(std::string_view key) & noexcept;
-
725  simdjson_inline simdjson_result<value> find_field(const char *key) & noexcept;
-
726  simdjson_inline simdjson_result<value> operator[](std::string_view key) & noexcept;
-
727  simdjson_inline simdjson_result<value> operator[](const char *key) & noexcept;
-
728  simdjson_inline simdjson_result<value> find_field_unordered(std::string_view key) & noexcept;
-
729  simdjson_inline simdjson_result<value> find_field_unordered(const char *key) & noexcept;
-
730 
-
731  simdjson_inline simdjson_result<json_type> type() noexcept;
-
732  simdjson_inline simdjson_result<bool> is_scalar() noexcept;
-
733  simdjson_inline simdjson_result<bool> is_string() noexcept;
-
734 
-
735  simdjson_inline simdjson_result<const char *> current_location() noexcept;
-
736  simdjson_inline int32_t current_depth() const noexcept;
-
737  simdjson_inline bool is_negative() noexcept;
-
738  simdjson_inline simdjson_result<bool> is_integer() noexcept;
-
739  simdjson_inline simdjson_result<number_type> get_number_type() noexcept;
-
740  simdjson_inline simdjson_result<number> get_number() noexcept;
-
741  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
-
742  simdjson_inline simdjson_result<value> at_pointer(std::string_view json_pointer) noexcept;
-
743  simdjson_inline simdjson_result<value> at_path(std::string_view json_path) noexcept;
-
744 
-
745 private:
-
746  document *doc{nullptr};
-
747 };
-
748 } // namespace ondemand
-
749 } // namespace SIMDJSON_IMPLEMENTATION
-
750 } // namespace simdjson
-
751 
-
752 namespace simdjson {
+
661  // Fields
+
662  //
+
663  json_iterator iter{};
+
664  static constexpr depth_t DOCUMENT_DEPTH = 0;
+
665 
+
666  friend class array_iterator;
+
667  friend class value;
+
668  friend class ondemand::parser;
+
669  friend class object;
+
670  friend class array;
+
671  friend class field;
+
672  friend class token;
+
673  friend class document_stream;
+
674  friend class document_reference;
+
675 };
+
676 
+
677 
+
681 class document_reference {
+
682 public:
+
683  simdjson_inline document_reference() noexcept;
+
684  simdjson_inline document_reference(document &d) noexcept;
+
685  simdjson_inline document_reference(const document_reference &other) noexcept = default;
+
686  simdjson_inline document_reference& operator=(const document_reference &other) noexcept = default;
+
687  simdjson_inline void rewind() noexcept;
+
688  simdjson_inline simdjson_result<array> get_array() & noexcept;
+
689  simdjson_inline simdjson_result<object> get_object() & noexcept;
+
690  simdjson_inline simdjson_result<uint64_t> get_uint64() noexcept;
+
691  simdjson_inline simdjson_result<uint64_t> get_uint64_in_string() noexcept;
+
692  simdjson_inline simdjson_result<int64_t> get_int64() noexcept;
+
693  simdjson_inline simdjson_result<int64_t> get_int64_in_string() noexcept;
+
694  simdjson_inline simdjson_result<double> get_double() noexcept;
+
695  simdjson_inline simdjson_result<double> get_double_in_string() noexcept;
+
696  simdjson_inline simdjson_result<std::string_view> get_string(bool allow_replacement = false) noexcept;
+
697  template <typename string_type>
+
698  simdjson_inline error_code get_string(string_type& receiver, bool allow_replacement = false) noexcept;
+
699  simdjson_inline simdjson_result<std::string_view> get_wobbly_string() noexcept;
+
700  simdjson_inline simdjson_result<raw_json_string> get_raw_json_string() noexcept;
+
701  simdjson_inline simdjson_result<bool> get_bool() noexcept;
+
702  simdjson_inline simdjson_result<value> get_value() noexcept;
+
703 
+
704  simdjson_inline simdjson_result<bool> is_null() noexcept;
+
705  template<typename T> simdjson_inline simdjson_result<T> get() & noexcept;
+
706  simdjson_inline simdjson_result<std::string_view> raw_json() noexcept;
+
707  simdjson_inline operator document&() const noexcept;
+
708 #if SIMDJSON_EXCEPTIONS
+
709  template <class T>
+
710  explicit simdjson_inline operator T() noexcept(false);
+
711  simdjson_inline operator array() & noexcept(false);
+
712  simdjson_inline operator object() & noexcept(false);
+
713  simdjson_inline operator uint64_t() noexcept(false);
+
714  simdjson_inline operator int64_t() noexcept(false);
+
715  simdjson_inline operator double() noexcept(false);
+
716  simdjson_inline operator std::string_view() noexcept(false);
+
717  simdjson_inline operator raw_json_string() noexcept(false);
+
718  simdjson_inline operator bool() noexcept(false);
+
719  simdjson_inline operator value() noexcept(false);
+
720 #endif
+
721  simdjson_inline simdjson_result<size_t> count_elements() & noexcept;
+
722  simdjson_inline simdjson_result<size_t> count_fields() & noexcept;
+
723  simdjson_inline simdjson_result<value> at(size_t index) & noexcept;
+
724  simdjson_inline simdjson_result<array_iterator> begin() & noexcept;
+
725  simdjson_inline simdjson_result<array_iterator> end() & noexcept;
+
726  simdjson_inline simdjson_result<value> find_field(std::string_view key) & noexcept;
+
727  simdjson_inline simdjson_result<value> find_field(const char *key) & noexcept;
+
728  simdjson_inline simdjson_result<value> operator[](std::string_view key) & noexcept;
+
729  simdjson_inline simdjson_result<value> operator[](const char *key) & noexcept;
+
730  simdjson_inline simdjson_result<value> find_field_unordered(std::string_view key) & noexcept;
+
731  simdjson_inline simdjson_result<value> find_field_unordered(const char *key) & noexcept;
+
732 
+
733  simdjson_inline simdjson_result<json_type> type() noexcept;
+
734  simdjson_inline simdjson_result<bool> is_scalar() noexcept;
+
735  simdjson_inline simdjson_result<bool> is_string() noexcept;
+
736 
+
737  simdjson_inline simdjson_result<const char *> current_location() noexcept;
+
738  simdjson_inline int32_t current_depth() const noexcept;
+
739  simdjson_inline bool is_negative() noexcept;
+
740  simdjson_inline simdjson_result<bool> is_integer() noexcept;
+
741  simdjson_inline simdjson_result<number_type> get_number_type() noexcept;
+
742  simdjson_inline simdjson_result<number> get_number() noexcept;
+
743  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
+
744  simdjson_inline simdjson_result<value> at_pointer(std::string_view json_pointer) noexcept;
+
745  simdjson_inline simdjson_result<value> at_path(std::string_view json_path) noexcept;
+
746 
+
747 private:
+
748  document *doc{nullptr};
+
749 };
+
750 } // namespace ondemand
+
751 } // namespace SIMDJSON_IMPLEMENTATION
+
752 } // namespace simdjson
753 
-
754 template<>
-
755 struct simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::document> : public SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::document> {
-
756 public:
-
757  simdjson_inline simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::document &&value) noexcept;
-
758  simdjson_inline simdjson_result(error_code error) noexcept;
-
759  simdjson_inline simdjson_result() noexcept = default;
-
760  simdjson_inline error_code rewind() noexcept;
-
761 
-
762  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array> get_array() & noexcept;
-
763  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object> get_object() & noexcept;
-
764  simdjson_inline simdjson_result<uint64_t> get_uint64() noexcept;
-
765  simdjson_inline simdjson_result<uint64_t> get_uint64_in_string() noexcept;
-
766  simdjson_inline simdjson_result<int64_t> get_int64() noexcept;
-
767  simdjson_inline simdjson_result<int64_t> get_int64_in_string() noexcept;
-
768  simdjson_inline simdjson_result<double> get_double() noexcept;
-
769  simdjson_inline simdjson_result<double> get_double_in_string() noexcept;
-
770  simdjson_inline simdjson_result<std::string_view> get_string(bool allow_replacement = false) noexcept;
-
771  template <typename string_type>
-
772  simdjson_inline error_code get_string(string_type& receiver, bool allow_replacement = false) noexcept;
-
773  simdjson_inline simdjson_result<std::string_view> get_wobbly_string() noexcept;
-
774  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string> get_raw_json_string() noexcept;
-
775  simdjson_inline simdjson_result<bool> get_bool() noexcept;
-
776  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> get_value() noexcept;
-
777  simdjson_inline simdjson_result<bool> is_null() noexcept;
-
778 
-
779  template<typename T> simdjson_inline simdjson_result<T> get() & noexcept;
-
780  template<typename T> simdjson_inline simdjson_result<T> get() && noexcept;
-
781 
-
782  template<typename T> simdjson_inline error_code get(T &out) & noexcept;
-
783  template<typename T> simdjson_inline error_code get(T &out) && noexcept;
-
784 #if SIMDJSON_EXCEPTIONS
-
785  template <class T>
-
786  explicit simdjson_inline operator T() noexcept(false);
-
787  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::array() & noexcept(false);
-
788  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::object() & noexcept(false);
-
789  simdjson_inline operator uint64_t() noexcept(false);
-
790  simdjson_inline operator int64_t() noexcept(false);
-
791  simdjson_inline operator double() noexcept(false);
-
792  simdjson_inline operator std::string_view() noexcept(false);
-
793  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string() noexcept(false);
-
794  simdjson_inline operator bool() noexcept(false);
-
795  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::value() noexcept(false);
-
796 #endif
-
797  simdjson_inline simdjson_result<size_t> count_elements() & noexcept;
-
798  simdjson_inline simdjson_result<size_t> count_fields() & noexcept;
-
799  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at(size_t index) & noexcept;
-
800  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> begin() & noexcept;
-
801  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> end() & noexcept;
-
802  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(std::string_view key) & noexcept;
-
803  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(const char *key) & noexcept;
-
804  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](std::string_view key) & noexcept;
-
805  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](const char *key) & noexcept;
-
806  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(std::string_view key) & noexcept;
-
807  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(const char *key) & noexcept;
-
808  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type> type() noexcept;
-
809  simdjson_inline simdjson_result<bool> is_scalar() noexcept;
-
810  simdjson_inline simdjson_result<bool> is_string() noexcept;
-
811  simdjson_inline simdjson_result<const char *> current_location() noexcept;
-
812  simdjson_inline int32_t current_depth() const noexcept;
-
813  simdjson_inline bool at_end() const noexcept;
-
814  simdjson_inline bool is_negative() noexcept;
-
815  simdjson_inline simdjson_result<bool> is_integer() noexcept;
-
816  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::number_type> get_number_type() noexcept;
-
817  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::number> get_number() noexcept;
-
819  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
-
820 
-
821  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_pointer(std::string_view json_pointer) noexcept;
-
822  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_path(std::string_view json_path) noexcept;
-
823 };
-
824 
-
825 
-
826 } // namespace simdjson
+
754 namespace simdjson {
+
755 
+
756 template<>
+
757 struct simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::document> : public SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::document> {
+
758 public:
+
759  simdjson_inline simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::document &&value) noexcept;
+
760  simdjson_inline simdjson_result(error_code error) noexcept;
+
761  simdjson_inline simdjson_result() noexcept = default;
+
762  simdjson_inline error_code rewind() noexcept;
+
763 
+
764  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array> get_array() & noexcept;
+
765  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object> get_object() & noexcept;
+
766  simdjson_inline simdjson_result<uint64_t> get_uint64() noexcept;
+
767  simdjson_inline simdjson_result<uint64_t> get_uint64_in_string() noexcept;
+
768  simdjson_inline simdjson_result<int64_t> get_int64() noexcept;
+
769  simdjson_inline simdjson_result<int64_t> get_int64_in_string() noexcept;
+
770  simdjson_inline simdjson_result<double> get_double() noexcept;
+
771  simdjson_inline simdjson_result<double> get_double_in_string() noexcept;
+
772  simdjson_inline simdjson_result<std::string_view> get_string(bool allow_replacement = false) noexcept;
+
773  template <typename string_type>
+
774  simdjson_inline error_code get_string(string_type& receiver, bool allow_replacement = false) noexcept;
+
775  simdjson_inline simdjson_result<std::string_view> get_wobbly_string() noexcept;
+
776  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string> get_raw_json_string() noexcept;
+
777  simdjson_inline simdjson_result<bool> get_bool() noexcept;
+
778  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> get_value() noexcept;
+
779  simdjson_inline simdjson_result<bool> is_null() noexcept;
+
780 
+
781  template<typename T> simdjson_inline simdjson_result<T> get() & noexcept;
+
782  template<typename T> simdjson_inline simdjson_result<T> get() && noexcept;
+
783 
+
784  template<typename T> simdjson_inline error_code get(T &out) & noexcept;
+
785  template<typename T> simdjson_inline error_code get(T &out) && noexcept;
+
786 #if SIMDJSON_EXCEPTIONS
+
787  template <class T>
+
788  explicit simdjson_inline operator T() noexcept(false);
+
789  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::array() & noexcept(false);
+
790  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::object() & noexcept(false);
+
791  simdjson_inline operator uint64_t() noexcept(false);
+
792  simdjson_inline operator int64_t() noexcept(false);
+
793  simdjson_inline operator double() noexcept(false);
+
794  simdjson_inline operator std::string_view() noexcept(false);
+
795  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string() noexcept(false);
+
796  simdjson_inline operator bool() noexcept(false);
+
797  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::value() noexcept(false);
+
798 #endif
+
799  simdjson_inline simdjson_result<size_t> count_elements() & noexcept;
+
800  simdjson_inline simdjson_result<size_t> count_fields() & noexcept;
+
801  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at(size_t index) & noexcept;
+
802  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> begin() & noexcept;
+
803  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> end() & noexcept;
+
804  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(std::string_view key) & noexcept;
+
805  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(const char *key) & noexcept;
+
806  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](std::string_view key) & noexcept;
+
807  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](const char *key) & noexcept;
+
808  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(std::string_view key) & noexcept;
+
809  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(const char *key) & noexcept;
+
810  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type> type() noexcept;
+
811  simdjson_inline simdjson_result<bool> is_scalar() noexcept;
+
812  simdjson_inline simdjson_result<bool> is_string() noexcept;
+
813  simdjson_inline simdjson_result<const char *> current_location() noexcept;
+
814  simdjson_inline int32_t current_depth() const noexcept;
+
815  simdjson_inline bool at_end() const noexcept;
+
816  simdjson_inline bool is_negative() noexcept;
+
817  simdjson_inline simdjson_result<bool> is_integer() noexcept;
+
818  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::number_type> get_number_type() noexcept;
+
819  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::number> get_number() noexcept;
+
821  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
+
822 
+
823  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_pointer(std::string_view json_pointer) noexcept;
+
824  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_path(std::string_view json_path) noexcept;
+
825 };
+
826 
827 
-
828 
+
828 } // namespace simdjson
829 
-
830 namespace simdjson {
+
830 
831 
-
832 template<>
-
833 struct simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::document_reference> : public SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::document_reference> {
-
834 public:
-
835  simdjson_inline simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::document_reference value, error_code error) noexcept;
-
836  simdjson_inline simdjson_result() noexcept = default;
-
837  simdjson_inline error_code rewind() noexcept;
-
838 
-
839  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array> get_array() & noexcept;
-
840  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object> get_object() & noexcept;
-
841  simdjson_inline simdjson_result<uint64_t> get_uint64() noexcept;
-
842  simdjson_inline simdjson_result<uint64_t> get_uint64_in_string() noexcept;
-
843  simdjson_inline simdjson_result<int64_t> get_int64() noexcept;
-
844  simdjson_inline simdjson_result<int64_t> get_int64_in_string() noexcept;
-
845  simdjson_inline simdjson_result<double> get_double() noexcept;
-
846  simdjson_inline simdjson_result<double> get_double_in_string() noexcept;
-
847  simdjson_inline simdjson_result<std::string_view> get_string(bool allow_replacement = false) noexcept;
-
848  template <typename string_type>
-
849  simdjson_inline error_code get_string(string_type& receiver, bool allow_replacement = false) noexcept;
-
850  simdjson_inline simdjson_result<std::string_view> get_wobbly_string() noexcept;
-
851  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string> get_raw_json_string() noexcept;
-
852  simdjson_inline simdjson_result<bool> get_bool() noexcept;
-
853  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> get_value() noexcept;
-
854  simdjson_inline simdjson_result<bool> is_null() noexcept;
-
855 #if SIMDJSON_EXCEPTIONS
-
856  template <class T>
-
857  explicit simdjson_inline operator T() noexcept(false);
-
858  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::array() & noexcept(false);
-
859  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::object() & noexcept(false);
-
860  simdjson_inline operator uint64_t() noexcept(false);
-
861  simdjson_inline operator int64_t() noexcept(false);
-
862  simdjson_inline operator double() noexcept(false);
-
863  simdjson_inline operator std::string_view() noexcept(false);
-
864  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string() noexcept(false);
-
865  simdjson_inline operator bool() noexcept(false);
-
866  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::value() noexcept(false);
-
867 #endif
-
868  simdjson_inline simdjson_result<size_t> count_elements() & noexcept;
-
869  simdjson_inline simdjson_result<size_t> count_fields() & noexcept;
-
870  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at(size_t index) & noexcept;
-
871  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> begin() & noexcept;
-
872  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> end() & noexcept;
-
873  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(std::string_view key) & noexcept;
-
874  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(const char *key) & noexcept;
-
875  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](std::string_view key) & noexcept;
-
876  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](const char *key) & noexcept;
-
877  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(std::string_view key) & noexcept;
-
878  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(const char *key) & noexcept;
-
879  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type> type() noexcept;
-
880  simdjson_inline simdjson_result<bool> is_scalar() noexcept;
-
881  simdjson_inline simdjson_result<bool> is_string() noexcept;
-
882  simdjson_inline simdjson_result<const char *> current_location() noexcept;
-
883  simdjson_inline simdjson_result<int32_t> current_depth() const noexcept;
-
884  simdjson_inline simdjson_result<bool> is_negative() noexcept;
-
885  simdjson_inline simdjson_result<bool> is_integer() noexcept;
-
886  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::number_type> get_number_type() noexcept;
-
887  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::number> get_number() noexcept;
-
889  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
-
890 
-
891  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_pointer(std::string_view json_pointer) noexcept;
-
892  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_path(std::string_view json_path) noexcept;
-
893 };
-
894 
-
895 
-
896 } // namespace simdjson
+
832 namespace simdjson {
+
833 
+
834 template<>
+
835 struct simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::document_reference> : public SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::document_reference> {
+
836 public:
+
837  simdjson_inline simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::document_reference value, error_code error) noexcept;
+
838  simdjson_inline simdjson_result() noexcept = default;
+
839  simdjson_inline error_code rewind() noexcept;
+
840 
+
841  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array> get_array() & noexcept;
+
842  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::object> get_object() & noexcept;
+
843  simdjson_inline simdjson_result<uint64_t> get_uint64() noexcept;
+
844  simdjson_inline simdjson_result<uint64_t> get_uint64_in_string() noexcept;
+
845  simdjson_inline simdjson_result<int64_t> get_int64() noexcept;
+
846  simdjson_inline simdjson_result<int64_t> get_int64_in_string() noexcept;
+
847  simdjson_inline simdjson_result<double> get_double() noexcept;
+
848  simdjson_inline simdjson_result<double> get_double_in_string() noexcept;
+
849  simdjson_inline simdjson_result<std::string_view> get_string(bool allow_replacement = false) noexcept;
+
850  template <typename string_type>
+
851  simdjson_inline error_code get_string(string_type& receiver, bool allow_replacement = false) noexcept;
+
852  simdjson_inline simdjson_result<std::string_view> get_wobbly_string() noexcept;
+
853  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string> get_raw_json_string() noexcept;
+
854  simdjson_inline simdjson_result<bool> get_bool() noexcept;
+
855  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> get_value() noexcept;
+
856  simdjson_inline simdjson_result<bool> is_null() noexcept;
+
857 #if SIMDJSON_EXCEPTIONS
+
858  template <class T>
+
859  explicit simdjson_inline operator T() noexcept(false);
+
860  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::array() & noexcept(false);
+
861  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::object() & noexcept(false);
+
862  simdjson_inline operator uint64_t() noexcept(false);
+
863  simdjson_inline operator int64_t() noexcept(false);
+
864  simdjson_inline operator double() noexcept(false);
+
865  simdjson_inline operator std::string_view() noexcept(false);
+
866  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string() noexcept(false);
+
867  simdjson_inline operator bool() noexcept(false);
+
868  simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::value() noexcept(false);
+
869 #endif
+
870  simdjson_inline simdjson_result<size_t> count_elements() & noexcept;
+
871  simdjson_inline simdjson_result<size_t> count_fields() & noexcept;
+
872  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at(size_t index) & noexcept;
+
873  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> begin() & noexcept;
+
874  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::array_iterator> end() & noexcept;
+
875  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(std::string_view key) & noexcept;
+
876  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field(const char *key) & noexcept;
+
877  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](std::string_view key) & noexcept;
+
878  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> operator[](const char *key) & noexcept;
+
879  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(std::string_view key) & noexcept;
+
880  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> find_field_unordered(const char *key) & noexcept;
+
881  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type> type() noexcept;
+
882  simdjson_inline simdjson_result<bool> is_scalar() noexcept;
+
883  simdjson_inline simdjson_result<bool> is_string() noexcept;
+
884  simdjson_inline simdjson_result<const char *> current_location() noexcept;
+
885  simdjson_inline simdjson_result<int32_t> current_depth() const noexcept;
+
886  simdjson_inline simdjson_result<bool> is_negative() noexcept;
+
887  simdjson_inline simdjson_result<bool> is_integer() noexcept;
+
888  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::number_type> get_number_type() noexcept;
+
889  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::number> get_number() noexcept;
+
891  simdjson_inline simdjson_result<std::string_view> raw_json_token() noexcept;
+
892 
+
893  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_pointer(std::string_view json_pointer) noexcept;
+
894  simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::value> at_path(std::string_view json_path) noexcept;
+
895 };
+
896 
897 
-
898 #endif // SIMDJSON_GENERIC_ONDEMAND_DOCUMENT_H
+
898 } // namespace simdjson
+
899 
+
900 #endif // SIMDJSON_GENERIC_ONDEMAND_DOCUMENT_H
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::array_iterator
A forward-only JSON array.
Definition: array_iterator.h:23
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::array
A forward-only JSON array.
Definition: array.h:17
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:679
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:681
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference::get_uint64
simdjson_inline simdjson_result< uint64_t > get_uint64() noexcept
The document_reference instances are used primarily/solely for streams of JSON documents.
Definition: document-inl.h:634
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_stream
A forward-only stream of documents.
Definition: document_stream.h:79
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document
A JSON document.
Definition: document.h:20
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::at
simdjson_inline simdjson_result< value > at(size_t index) &noexcept
Get the value at the given index in the array.
Definition: document-inl.h:213
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::DOCUMENT_DEPTH
static constexpr depth_t DOCUMENT_DEPTH
document depth is always 0
Definition: document.h:662
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::DOCUMENT_DEPTH
static constexpr depth_t DOCUMENT_DEPTH
document depth is always 0
Definition: document.h:664
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::current_depth
simdjson_inline int32_t current_depth() const noexcept
Returns the current depth in the document if in bounds.
Definition: document-inl.h:45
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::begin
simdjson_inline simdjson_result< array_iterator > begin() &noexcept
Begin array iteration.
Definition: document-inl.h:217
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::count_fields
simdjson_inline simdjson_result< size_t > count_fields() &noexcept
This method scans the object and counts the number of key-value pairs.
Definition: document-inl.h:206
@@ -483,7 +483,7 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2document_8h_source.
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get
simdjson_inline simdjson_result< T > get() &noexcept
Get this value as the given type.
Definition: document.h:181
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get_double_in_string
simdjson_inline simdjson_result< double > get_double_in_string() noexcept
Cast this JSON value (inside string) to a double.
Definition: document-inl.h:137
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::at_path
simdjson_inline simdjson_result< value > at_path(std::string_view json_path) noexcept
Get the value associated with the given JSONPath expression.
Definition: document-inl.h:319
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::iter
json_iterator iter
Current position in the document.
Definition: document.h:661
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::iter
json_iterator iter
Current position in the document.
Definition: document.h:663
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::get_double
simdjson_inline simdjson_result< double > get_double() noexcept
Cast this JSON value to a double.
Definition: document-inl.h:134
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::to_debug_string
std::string to_debug_string() noexcept
Returns debugging information.
Definition: document-inl.h:37
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::rewind
void rewind() noexcept
Reset the iterator inside the document instance so we are pointing back at the beginning of the docum...
Definition: document-inl.h:33
@@ -517,8 +517,8 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2document_8h_source.
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::json_type >
Definition: json_type.h:150
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >
Definition: object.h:228
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string >
Definition: raw_json_string.h:192
-
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:649
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:652
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::get
simdjson_warn_unused simdjson_inline error_code get(T &value) &&noexcept
Move the value to the provided variable.
Definition: error-inl.h:126
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/generic_2ondemand_2document__stream-inl_8h_source.html b/generic_2ondemand_2document__stream-inl_8h_source.html index 5bc05f49c..16ebfbaec 100644 --- a/generic_2ondemand_2document__stream-inl_8h_source.html +++ b/generic_2ondemand_2document__stream-inl_8h_source.html @@ -488,16 +488,16 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2document__stream-in
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_stream::truncated_bytes
size_t truncated_bytes() const noexcept
After iterating through the stream, this method returns the number of bytes that were not parsed at t...
Definition: document_stream-inl.h:141
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_stream::begin
simdjson_inline iterator begin() noexcept
Start iterating the documents in the stream.
Definition: document_stream-inl.h:190
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_stream::document_stream
simdjson_inline document_stream() noexcept
Construct an uninitialized document_stream.
Definition: document_stream-inl.h:117
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::iter
json_iterator iter
Current position in the document.
Definition: document.h:661
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document::iter
json_iterator iter
Current position in the document.
Definition: document.h:663
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser
A JSON fragment iterator.
Definition: parser.h:36
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::CAPACITY
@ CAPACITY
This parser can't support a document that big.
Definition: error.h:21
-
simdjson::EMPTY
@ EMPTY
no structural element found
Definition: error.h:32
+
simdjson::EMPTY
@ EMPTY
no structural element found
Definition: error.h:33
simdjson::MEMALLOC
@ MEMALLOC
Error allocating memory, most likely out of memory.
Definition: error.h:22
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/generic_2ondemand_2document__stream_8h_source.html b/generic_2ondemand_2document__stream_8h_source.html index e9650092e..dbf57bf7a 100644 --- a/generic_2ondemand_2document__stream_8h_source.html +++ b/generic_2ondemand_2document__stream_8h_source.html @@ -269,9 +269,9 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2document__stream_8h
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::parser
A JSON fragment iterator.
Definition: parser.h:36
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/generic_2ondemand_2object-inl_8h_source.html b/generic_2ondemand_2object-inl_8h_source.html index 9a754c16a..afa5920d7 100644 --- a/generic_2ondemand_2object-inl_8h_source.html +++ b/generic_2ondemand_2object-inl_8h_source.html @@ -369,10 +369,10 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2object-inl_8h_sourc
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
An ephemeral JSON value returned during iteration.
Definition: value.h:18
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:45
-
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:39
-
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:41
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::OUT_OF_ORDER_ITERATION
@ OUT_OF_ORDER_ITERATION
tried to iterate an array or object out of order (checked when SIMDJSON_DEVELOPMENT_CHECKS=1)
Definition: error.h:46
+
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:40
+
simdjson::INVALID_JSON_POINTER
@ INVALID_JSON_POINTER
Invalid JSON pointer reference.
Definition: error.h:42
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
diff --git a/generic_2ondemand_2object_8h_source.html b/generic_2ondemand_2object_8h_source.html index 44b115193..e1f45e9bc 100644 --- a/generic_2ondemand_2object_8h_source.html +++ b/generic_2ondemand_2object_8h_source.html @@ -196,8 +196,8 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2object_8h_source.ht
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object_iterator >
Definition: object_iterator.h:58
-
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:649
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value >
Definition: value.h:652
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/generic_2ondemand_2parser-inl_8h_source.html b/generic_2ondemand_2parser-inl_8h_source.html index 9a778e400..e4689242c 100644 --- a/generic_2ondemand_2parser-inl_8h_source.html +++ b/generic_2ondemand_2parser-inl_8h_source.html @@ -288,11 +288,11 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2parser-inl_8h_sourc
simdjson::CAPACITY
@ CAPACITY
This parser can't support a document that big.
Definition: error.h:21
simdjson::STRING_ERROR
@ STRING_ERROR
Problem while parsing a string.
Definition: error.h:25
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::INSUFFICIENT_PADDING
@ INSUFFICIENT_PADDING
The JSON doesn't have enough padding for simdjson to safely parse it.
Definition: error.h:46
+
simdjson::INSUFFICIENT_PADDING
@ INSUFFICIENT_PADDING
The JSON doesn't have enough padding for simdjson to safely parse it.
Definition: error.h:47
simdjson::get_active_implementation
SIMDJSON_DLLIMPORTEXPORT internal::atomic_ptr< const implementation > & get_active_implementation()
The active implementation.
simdjson::SIMDJSON_PADDING
constexpr size_t SIMDJSON_PADDING
The amount of padding needed in a buffer to parse JSON.
Definition: base.h:31
simdjson::padded_string
String with extra allocation for ease of use with parser::parse()
Definition: padded_string.h:23
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/generic_2ondemand_2parser_8h_source.html b/generic_2ondemand_2parser_8h_source.html index 8d238f923..fa3f62a6b 100644 --- a/generic_2ondemand_2parser_8h_source.html +++ b/generic_2ondemand_2parser_8h_source.html @@ -210,7 +210,7 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2parser_8h_source.ht
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
simdjson::padded_string
String with extra allocation for ease of use with parser::parse()
Definition: padded_string.h:23
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/generic_2ondemand_2serialization-inl_8h_source.html b/generic_2ondemand_2serialization-inl_8h_source.html index 90d8791ee..6e24988fe 100644 --- a/generic_2ondemand_2serialization-inl_8h_source.html +++ b/generic_2ondemand_2serialization-inl_8h_source.html @@ -319,7 +319,7 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2serialization-inl_8
232 
233 #endif // SIMDJSON_GENERIC_ONDEMAND_SERIALIZATION_INL_H
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::array
A forward-only JSON array.
Definition: array.h:17
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:679
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:681
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document
A JSON document.
Definition: document.h:20
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::object
A forward-only JSON object field iterator.
Definition: object.h:17
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
An ephemeral JSON value returned during iteration.
Definition: value.h:18
@@ -330,8 +330,8 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2serialization-inl_8
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::to_json_string
simdjson_result< std::string_view > to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::document &x) noexcept
Create a string-view instance out of a document instance.
Definition: serialization-inl.h:27
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:81
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:82
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/generic_2ondemand_2serialization_8h_source.html b/generic_2ondemand_2serialization_8h_source.html index 5be3d4cc5..82b518731 100644 --- a/generic_2ondemand_2serialization_8h_source.html +++ b/generic_2ondemand_2serialization_8h_source.html @@ -135,14 +135,14 @@ $(document).ready(function(){initNavTree('generic_2ondemand_2serialization_8h_so
102 
103 #endif // SIMDJSON_GENERIC_ONDEMAND_SERIALIZATION_H
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::array
A forward-only JSON array.
Definition: array.h:17
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:679
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document_reference
A document_reference is a thin wrapper around a document reference instance.
Definition: document.h:681
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::document
A JSON document.
Definition: document.h:20
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::object
A forward-only JSON object field iterator.
Definition: object.h:17
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
An ephemeral JSON value returned during iteration.
Definition: value.h:18
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::operator<<
std::ostream & operator<<(std::ostream &out, json_type type) noexcept
Write the JSON type to the output stream.
Definition: json_type-inl.h:14
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::to_json_string
simdjson_result< std::string_view > to_json_string(SIMDJSON_IMPLEMENTATION::ondemand::document &x) noexcept
Create a string-view instance out of a document instance.
Definition: serialization-inl.h:27
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/implementation__simdjson__result__base-inl_8h_source.html b/implementation__simdjson__result__base-inl_8h_source.html index 3adcf4e1d..1bf413b67 100644 --- a/implementation__simdjson__result__base-inl_8h_source.html +++ b/implementation__simdjson__result__base-inl_8h_source.html @@ -192,7 +192,7 @@ $(document).ready(function(){initNavTree('implementation__simdjson__result__base
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base::get
simdjson_inline error_code get(T &value) &&noexcept
Move the value to the provided variable.
Definition: implementation_simdjson_result_base-inl.h:25
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base::tie
simdjson_inline void tie(T &value, error_code &error) &&noexcept
Move the value and the error to the provided variables.
Definition: implementation_simdjson_result_base-inl.h:17
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base::take_value
simdjson_inline T && take_value() &&noexcept(false)
Take the result value (move it).
Definition: implementation_simdjson_result_base-inl.h:50
-
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:81
+
simdjson::simdjson_error
Exception thrown when an exception-supporting simdjson method is called.
Definition: error.h:82
diff --git a/implementation__simdjson__result__base_8h_source.html b/implementation__simdjson__result__base_8h_source.html index fc05c46fb..f8497757b 100644 --- a/implementation__simdjson__result__base_8h_source.html +++ b/implementation__simdjson__result__base_8h_source.html @@ -148,7 +148,7 @@ $(document).ready(function(){initNavTree('implementation__simdjson__result__base
134 #endif // SIMDJSON_GENERIC_IMPLEMENTATION_SIMDJSON_RESULT_BASE_H
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base::implementation_simdjson_result_base
simdjson_inline implementation_simdjson_result_base() noexcept=default
Create a new empty result with error = UNINITIALIZED.
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base::error
simdjson_inline error_code error() const noexcept
The error.
Definition: implementation_simdjson_result_base-inl.h:32
diff --git a/json__iterator-inl_8h_source.html b/json__iterator-inl_8h_source.html index 54709612a..082fa5e1e 100644 --- a/json__iterator-inl_8h_source.html +++ b/json__iterator-inl_8h_source.html @@ -504,13 +504,13 @@ $(document).ready(function(){initNavTree('json__iterator-inl_8h_source.html','')
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_message
const char * error_message(error_code error) noexcept
It is the convention throughout the code that the macro SIMDJSON_DEVELOPMENT_CHECKS determines whethe...
Definition: error-inl.h:20
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:36
-
simdjson::OUT_OF_BOUNDS
@ OUT_OF_BOUNDS
Attempted to access location outside of document.
Definition: error.h:49
+
simdjson::INCORRECT_TYPE
@ INCORRECT_TYPE
JSON element has a different type than user expected.
Definition: error.h:37
+
simdjson::OUT_OF_BOUNDS
@ OUT_OF_BOUNDS
Attempted to access location outside of document.
Definition: error.h:50
simdjson::TAPE_ERROR
@ TAPE_ERROR
Something went wrong, this is a generic error.
Definition: error.h:23
-
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:39
+
simdjson::NO_SUCH_FIELD
@ NO_SUCH_FIELD
JSON field not found in object.
Definition: error.h:40
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
-
simdjson::INCOMPLETE_ARRAY_OR_OBJECT
@ INCOMPLETE_ARRAY_OR_OBJECT
The document ends early.
Definition: error.h:47
-
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:31
+
simdjson::INCOMPLETE_ARRAY_OR_OBJECT
@ INCOMPLETE_ARRAY_OR_OBJECT
The document ends early.
Definition: error.h:48
+
simdjson::UNINITIALIZED
@ UNINITIALIZED
unknown error, or uninitialized document
Definition: error.h:32
diff --git a/json__iterator_8h_source.html b/json__iterator_8h_source.html index 72cab359d..337ef875a 100644 --- a/json__iterator_8h_source.html +++ b/json__iterator_8h_source.html @@ -228,7 +228,7 @@ $(document).ready(function(){initNavTree('json__iterator_8h_source.html',''); in
simdjson::SUCCESS
@ SUCCESS
No error.
Definition: error.h:20
simdjson::to_string
std::string to_string(T x)
Converts JSON to a string.
Definition: serialization.h:186
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/json__type-inl_8h_source.html b/json__type-inl_8h_source.html index 07ad30439..de01491e4 100644 --- a/json__type-inl_8h_source.html +++ b/json__type-inl_8h_source.html @@ -141,74 +141,73 @@ $(document).ready(function(){initNavTree('json__type-inl_8h_source.html',''); in
48  return get_uint64();
49 }
50 
-
51 
-
52 simdjson_inline bool number::is_int64() const noexcept {
-
53  return get_number_type() == number_type::signed_integer;
-
54 }
-
55 
-
56 simdjson_inline int64_t number::get_int64() const noexcept {
-
57  return payload.signed_integer;
-
58 }
-
59 
-
60 simdjson_inline number::operator int64_t() const noexcept {
-
61  return get_int64();
-
62 }
-
63 
-
64 simdjson_inline bool number::is_double() const noexcept {
-
65  return get_number_type() == number_type::floating_point_number;
-
66 }
-
67 
-
68 simdjson_inline double number::get_double() const noexcept {
-
69  return payload.floating_point_number;
-
70 }
-
71 
-
72 simdjson_inline number::operator double() const noexcept {
-
73  return get_double();
-
74 }
-
75 
-
76 simdjson_inline double number::as_double() const noexcept {
-
77  if(is_double()) {
-
78  return payload.floating_point_number;
-
79  }
-
80  if(is_int64()) {
-
81  return double(payload.signed_integer);
-
82  }
-
83  return double(payload.unsigned_integer);
-
84 }
-
85 
-
86 simdjson_inline void number::append_s64(int64_t value) noexcept {
-
87  payload.signed_integer = value;
-
88  type = number_type::signed_integer;
-
89 }
-
90 
-
91 simdjson_inline void number::append_u64(uint64_t value) noexcept {
-
92  payload.unsigned_integer = value;
-
93  type = number_type::unsigned_integer;
-
94 }
-
95 
-
96 simdjson_inline void number::append_double(double value) noexcept {
-
97  payload.floating_point_number = value;
-
98  type = number_type::floating_point_number;
-
99 }
-
100 
-
101 simdjson_inline void number::skip_double() noexcept {
-
102  type = number_type::floating_point_number;
-
103 }
-
104 
-
105 } // namespace ondemand
-
106 } // namespace SIMDJSON_IMPLEMENTATION
-
107 } // namespace simdjson
-
108 
-
109 namespace simdjson {
-
110 
-
111 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type>::simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::json_type &&value) noexcept
-
112  : implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::json_type>(std::forward<SIMDJSON_IMPLEMENTATION::ondemand::json_type>(value)) {}
-
113 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type>::simdjson_result(error_code error) noexcept
-
114  : implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::json_type>(error) {}
-
115 
-
116 } // namespace simdjson
-
117 
-
118 #endif // SIMDJSON_GENERIC_ONDEMAND_JSON_TYPE_INL_H
+
51 simdjson_inline bool number::is_int64() const noexcept {
+
52  return get_number_type() == number_type::signed_integer;
+
53 }
+
54 
+
55 simdjson_inline int64_t number::get_int64() const noexcept {
+
56  return payload.signed_integer;
+
57 }
+
58 
+
59 simdjson_inline number::operator int64_t() const noexcept {
+
60  return get_int64();
+
61 }
+
62 
+
63 simdjson_inline bool number::is_double() const noexcept {
+
64  return get_number_type() == number_type::floating_point_number;
+
65 }
+
66 
+
67 simdjson_inline double number::get_double() const noexcept {
+
68  return payload.floating_point_number;
+
69 }
+
70 
+
71 simdjson_inline number::operator double() const noexcept {
+
72  return get_double();
+
73 }
+
74 
+
75 simdjson_inline double number::as_double() const noexcept {
+
76  if(is_double()) {
+
77  return payload.floating_point_number;
+
78  }
+
79  if(is_int64()) {
+
80  return double(payload.signed_integer);
+
81  }
+
82  return double(payload.unsigned_integer);
+
83 }
+
84 
+
85 simdjson_inline void number::append_s64(int64_t value) noexcept {
+
86  payload.signed_integer = value;
+
87  type = number_type::signed_integer;
+
88 }
+
89 
+
90 simdjson_inline void number::append_u64(uint64_t value) noexcept {
+
91  payload.unsigned_integer = value;
+
92  type = number_type::unsigned_integer;
+
93 }
+
94 
+
95 simdjson_inline void number::append_double(double value) noexcept {
+
96  payload.floating_point_number = value;
+
97  type = number_type::floating_point_number;
+
98 }
+
99 
+
100 simdjson_inline void number::skip_double() noexcept {
+
101  type = number_type::floating_point_number;
+
102 }
+
103 
+
104 } // namespace ondemand
+
105 } // namespace SIMDJSON_IMPLEMENTATION
+
106 } // namespace simdjson
+
107 
+
108 namespace simdjson {
+
109 
+
110 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type>::simdjson_result(SIMDJSON_IMPLEMENTATION::ondemand::json_type &&value) noexcept
+
111  : implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::json_type>(std::forward<SIMDJSON_IMPLEMENTATION::ondemand::json_type>(value)) {}
+
112 simdjson_inline simdjson_result<SIMDJSON_IMPLEMENTATION::ondemand::json_type>::simdjson_result(error_code error) noexcept
+
113  : implementation_simdjson_result_base<SIMDJSON_IMPLEMENTATION::ondemand::json_type>(error) {}
+
114 
+
115 } // namespace simdjson
+
116 
+
117 #endif // SIMDJSON_GENERIC_ONDEMAND_JSON_TYPE_INL_H
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::value
An ephemeral JSON value returned during iteration.
Definition: value.h:18
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::operator<<
std::ostream & operator<<(std::ostream &out, json_type type) noexcept
Write the JSON type to the output stream.
Definition: json_type-inl.h:14
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::json_type
json_type
The type of a JSON value.
Definition: json_type.h:17
@@ -220,20 +219,20 @@ $(document).ready(function(){initNavTree('json__type-inl_8h_source.html',''); in
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::json_type::array
@ array
A JSON array ( [ 1, 2, 3 ... ] )
simdjson
The top level simdjson namespace, containing everything the library provides.
Definition: base.h:8
simdjson::error_code
error_code
All possible errors returned by simdjson.
Definition: error.h:19
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_int64
simdjson_inline bool is_int64() const noexcept
return true if the automatically determined type of the number is number_type::signed_integer.
Definition: json_type-inl.h:52
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::as_double
simdjson_inline double as_double() const noexcept
Convert the number to a double.
Definition: json_type-inl.h:76
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_double
simdjson_inline bool is_double() const noexcept
return true if the automatically determined type of the number is number_type::floating_point_number.
Definition: json_type-inl.h:64
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_int64
simdjson_inline bool is_int64() const noexcept
return true if the automatically determined type of the number is number_type::signed_integer.
Definition: json_type-inl.h:51
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::as_double
simdjson_inline double as_double() const noexcept
Convert the number to a double.
Definition: json_type-inl.h:75
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_double
simdjson_inline bool is_double() const noexcept
return true if the automatically determined type of the number is number_type::floating_point_number.
Definition: json_type-inl.h:63
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_number_type
simdjson_inline ondemand::number_type get_number_type() const noexcept
return the automatically determined type of the number: number_type::floating_point_number,...
Definition: json_type-inl.h:35
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_int64
simdjson_inline int64_t get_int64() const noexcept
return the value as a int64_t, only valid if is_int64() is true.
Definition: json_type-inl.h:56
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_int64
simdjson_inline int64_t get_int64() const noexcept
return the value as a int64_t, only valid if is_int64() is true.
Definition: json_type-inl.h:55
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::payload
union simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::@0 payload
End of friend declarations.
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_u64
simdjson_inline void append_u64(uint64_t value) noexcept
Store an unsigned 64-bit value to the number.
Definition: json_type-inl.h:91
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_double
simdjson_inline double get_double() const noexcept
return the value as a double, only valid if is_double() is true.
Definition: json_type-inl.h:68
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::skip_double
simdjson_inline void skip_double() noexcept
Specifies that the value is a double, but leave it undefined.
Definition: json_type-inl.h:101
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_s64
simdjson_inline void append_s64(int64_t value) noexcept
Store a signed 64-bit value to the number.
Definition: json_type-inl.h:86
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_double
simdjson_inline void append_double(double value) noexcept
Store a double value to the number.
Definition: json_type-inl.h:96
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_u64
simdjson_inline void append_u64(uint64_t value) noexcept
Store an unsigned 64-bit value to the number.
Definition: json_type-inl.h:90
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_double
simdjson_inline double get_double() const noexcept
return the value as a double, only valid if is_double() is true.
Definition: json_type-inl.h:67
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::skip_double
simdjson_inline void skip_double() noexcept
Specifies that the value is a double, but leave it undefined.
Definition: json_type-inl.h:100
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_s64
simdjson_inline void append_s64(int64_t value) noexcept
Store a signed 64-bit value to the number.
Definition: json_type-inl.h:85
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_double
simdjson_inline void append_double(double value) noexcept
Store a double value to the number.
Definition: json_type-inl.h:95
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_uint64
simdjson_inline bool is_uint64() const noexcept
return true if the automatically determined type of the number is number_type::unsigned_integer.
Definition: json_type-inl.h:39
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_uint64
simdjson_inline uint64_t get_uint64() const noexcept
return the value as a uint64_t, only valid if is_uint64() is true.
Definition: json_type-inl.h:43
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
diff --git a/json__type_8h_source.html b/json__type_8h_source.html index 4a8c87c81..401780928 100644 --- a/json__type_8h_source.html +++ b/json__type_8h_source.html @@ -189,20 +189,20 @@ $(document).ready(function(){initNavTree('json__type_8h_source.html',''); initRe
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base
The result of a simdjson operation that could fail.
Definition: implementation_simdjson_result_base.h:35
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number
A type representing a JSON number.
Definition: json_type.h:32
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::value_iterator
friend class value_iterator
The next block of declaration is designed so that we can call the number parsing functions on a numbe...
Definition: json_type.h:93
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_int64
simdjson_inline bool is_int64() const noexcept
return true if the automatically determined type of the number is number_type::signed_integer.
Definition: json_type-inl.h:52
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::as_double
simdjson_inline double as_double() const noexcept
Convert the number to a double.
Definition: json_type-inl.h:76
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_double
simdjson_inline bool is_double() const noexcept
return true if the automatically determined type of the number is number_type::floating_point_number.
Definition: json_type-inl.h:64
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_int64
simdjson_inline bool is_int64() const noexcept
return true if the automatically determined type of the number is number_type::signed_integer.
Definition: json_type-inl.h:51
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::as_double
simdjson_inline double as_double() const noexcept
Convert the number to a double.
Definition: json_type-inl.h:75
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_double
simdjson_inline bool is_double() const noexcept
return true if the automatically determined type of the number is number_type::floating_point_number.
Definition: json_type-inl.h:63
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_number_type
simdjson_inline ondemand::number_type get_number_type() const noexcept
return the automatically determined type of the number: number_type::floating_point_number,...
Definition: json_type-inl.h:35
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_int64
simdjson_inline int64_t get_int64() const noexcept
return the value as a int64_t, only valid if is_int64() is true.
Definition: json_type-inl.h:56
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_int64
simdjson_inline int64_t get_int64() const noexcept
return the value as a int64_t, only valid if is_int64() is true.
Definition: json_type-inl.h:55
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::payload
union simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::@0 payload
End of friend declarations.
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_u64
simdjson_inline void append_u64(uint64_t value) noexcept
Store an unsigned 64-bit value to the number.
Definition: json_type-inl.h:91
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_double
simdjson_inline double get_double() const noexcept
return the value as a double, only valid if is_double() is true.
Definition: json_type-inl.h:68
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::skip_double
simdjson_inline void skip_double() noexcept
Specifies that the value is a double, but leave it undefined.
Definition: json_type-inl.h:101
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_s64
simdjson_inline void append_s64(int64_t value) noexcept
Store a signed 64-bit value to the number.
Definition: json_type-inl.h:86
-
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_double
simdjson_inline void append_double(double value) noexcept
Store a double value to the number.
Definition: json_type-inl.h:96
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_u64
simdjson_inline void append_u64(uint64_t value) noexcept
Store an unsigned 64-bit value to the number.
Definition: json_type-inl.h:90
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_double
simdjson_inline double get_double() const noexcept
return the value as a double, only valid if is_double() is true.
Definition: json_type-inl.h:67
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::skip_double
simdjson_inline void skip_double() noexcept
Specifies that the value is a double, but leave it undefined.
Definition: json_type-inl.h:100
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_s64
simdjson_inline void append_s64(int64_t value) noexcept
Store a signed 64-bit value to the number.
Definition: json_type-inl.h:85
+
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::append_double
simdjson_inline void append_double(double value) noexcept
Store a double value to the number.
Definition: json_type-inl.h:95
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::is_uint64
simdjson_inline bool is_uint64() const noexcept
return true if the automatically determined type of the number is number_type::unsigned_integer.
Definition: json_type-inl.h:39
simdjson::SIMDJSON_IMPLEMENTATION::ondemand::number::get_uint64
simdjson_inline uint64_t get_uint64() const noexcept
return the value as a uint64_t, only valid if is_uint64() is true.
Definition: json_type-inl.h:43
-
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:214
+
simdjson::simdjson_result
The result of a simdjson operation that could fail.
Definition: error.h:215
simdjson::simdjson_result::error
simdjson_inline error_code error() const noexcept
The error.
Definition: error-inl.h:131
simdjson::simdjson_result::value
simdjson_inline T & value() &noexcept(false)
Get the result value.
diff --git a/menudata.js b/menudata.js index 3d5343e73..1dfb2f0c8 100644 --- a/menudata.js +++ b/menudata.js @@ -60,6 +60,7 @@ var menudata={children:[ {text:"Typedefs",url:"namespacemembers_type.html"}, {text:"Enumerations",url:"namespacemembers_enum.html"}, {text:"Enumerator",url:"namespacemembers_eval.html",children:[ +{text:"b",url:"namespacemembers_eval.html#index_b"}, {text:"c",url:"namespacemembers_eval.html#index_c"}, {text:"d",url:"namespacemembers_eval.html#index_d"}, {text:"e",url:"namespacemembers_eval.html#index_e"}, diff --git a/namespacemembers.html b/namespacemembers.html index de272b969..56df05311 100644 --- a/namespacemembers.html +++ b/namespacemembers.html @@ -90,6 +90,9 @@ $(document).ready(function(){initNavTree('namespacemembers.html',''); initResiza
Here is a list of all documented namespace members with links to the namespaces they belong to:

- b -