simdjson 4.6.4
Ridiculously Fast JSON
Loading...
Searching...
No Matches
simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object > Struct Reference
Inheritance diagram for simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >:
simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::object >

Public Member Functions

simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object_iteratorbegin () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object_iteratorend () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valuefind_field (std::string_view key) &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valuefind_field (std::string_view key) &&noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valuefind_field_unordered (std::string_view key) &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valuefind_field_unordered (std::string_view key) &&noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueoperator[] (std::string_view key) &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueoperator[] (std::string_view key) &&noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueat_pointer (std::string_view json_pointer) noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueat_path (std::string_view json_path) noexcept
 
template<typename Func >
simdjson_inline error_code for_each_at_path_with_wildcard (std::string_view json_path, Func &&callback) noexcept
 
simdjson_result< bool > reset () noexcept
 
simdjson_result< bool > is_empty () noexcept
 
simdjson_result< size_t > count_fields () &noexcept
 
simdjson_result< std::string_view > raw_json () noexcept
 
- Public Member Functions inherited from simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::object >
simdjson_inline implementation_simdjson_result_base () noexcept=default
 Create a new empty result with error = UNINITIALIZED.
 
simdjson_inline implementation_simdjson_result_base (error_code error) noexcept
 Create a new error result.
 
simdjson_inline implementation_simdjson_result_base (SIMDJSON_IMPLEMENTATION::ondemand::object &&value) noexcept
 Create a new successful result.
 
simdjson_inline implementation_simdjson_result_base (SIMDJSON_IMPLEMENTATION::ondemand::object &&value, error_code error) noexcept
 Create a new result with both things (use if you don't want to branch when creating the result).
 
simdjson_inline void tie (SIMDJSON_IMPLEMENTATION::ondemand::object &value, error_code &error) &&noexcept
 Move the value and the error to the provided variables.
 
simdjson_warn_unused simdjson_inline error_code get (SIMDJSON_IMPLEMENTATION::ondemand::object &value) &&noexcept
 Move the value to the provided variable.
 
simdjson_warn_unused simdjson_inline error_code error () const noexcept
 The error.
 
simdjson_warn_unused simdjson_inline bool has_value () const noexcept
 Whether there is a value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::objectoperator* () &noexcept(false)
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::object && operator* () &&noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::objectoperator-> () noexcept(false)
 Arrow operator to access members of the contained value.
 
simdjson_inline const SIMDJSON_IMPLEMENTATION::ondemand::objectoperator-> () const noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::objectvalue () &noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::object && value () &&noexcept(false)
 Take the result value (move it).
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::object && take_value () &&noexcept(false)
 Take the result value (move it).
 
simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::object && () &&noexcept(false)
 Cast to the value (will throw on error).
 
simdjson_inline const SIMDJSON_IMPLEMENTATION::ondemand::objectvalue_unsafe () const &noexcept
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::objectvalue_unsafe () &noexcept
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::object && value_unsafe () &&noexcept
 Take the result value (move it).
 

Additional Inherited Members

- Public Types inherited from simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::object >
using value_type = SIMDJSON_IMPLEMENTATION::ondemand::object
 
using error_type = error_code
 
- Protected Attributes inherited from simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::object >
SIMDJSON_IMPLEMENTATION::ondemand::object first
 users should never directly access first and second.
 
error_code second
 Users should never directly access 'first'.
 

Detailed Description

Definition at line 323 of file object.h.

Member Function Documentation

◆ at_path()

Definition at line 334 of file object-inl.h.

◆ at_pointer()

simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >::at_pointer ( std::string_view  json_pointer)
noexcept

Definition at line 329 of file object-inl.h.

◆ begin()

◆ count_fields()

simdjson_inline simdjson_result< size_t > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >::count_fields ( ) &
inlinenoexcept

Definition at line 363 of file object-inl.h.

◆ end()

◆ find_field() [1/2]

Definition at line 324 of file object-inl.h.

◆ find_field() [2/2]

Definition at line 320 of file object-inl.h.

◆ find_field_unordered() [1/2]

simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >::find_field_unordered ( std::string_view  key) &&
noexcept

Definition at line 308 of file object-inl.h.

◆ find_field_unordered() [2/2]

simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::value > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >::find_field_unordered ( std::string_view  key) &
noexcept

Definition at line 304 of file object-inl.h.

◆ for_each_at_path_with_wildcard()

template<typename Func >
simdjson_inline error_code simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >::for_each_at_path_with_wildcard ( std::string_view  json_path,
Func &&  callback 
)
noexcept

Definition at line 348 of file object-inl.h.

◆ is_empty()

Definition at line 358 of file object-inl.h.

◆ operator[]() [1/2]

Definition at line 316 of file object-inl.h.

◆ operator[]() [2/2]

Definition at line 312 of file object-inl.h.

◆ raw_json()

simdjson_inline simdjson_result< std::string_view > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::object >::raw_json ( )
inlinenoexcept

Definition at line 368 of file object-inl.h.

◆ reset()

Definition at line 353 of file object-inl.h.


The documentation for this struct was generated from the following files: