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

Public Member Functions

simdjson_inline simdjson_result (SIMDJSON_IMPLEMENTATION::ondemand::document_reference value, error_code error) noexcept
 
simdjson_inline error_code rewind () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::arrayget_array () &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::objectget_object () &noexcept
 
simdjson_inline simdjson_result< uint64_t > get_uint64 () noexcept
 
simdjson_inline simdjson_result< uint64_t > get_uint64_in_string () noexcept
 
simdjson_inline simdjson_result< int64_t > get_int64 () noexcept
 
simdjson_inline simdjson_result< int64_t > get_int64_in_string () noexcept
 
simdjson_inline simdjson_result< uint32_t > get_uint32 () noexcept
 
simdjson_inline simdjson_result< int32_t > get_int32 () noexcept
 
simdjson_inline simdjson_result< double > get_double () noexcept
 
simdjson_inline simdjson_result< double > get_double_in_string () noexcept
 
simdjson_inline simdjson_result< std::string_view > get_string (bool allow_replacement=false) noexcept
 
template<typename string_type >
simdjson_warn_unused simdjson_inline error_code get_string (string_type &receiver, bool allow_replacement=false) noexcept
 
simdjson_inline simdjson_result< std::string_view > get_wobbly_string () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::raw_json_stringget_raw_json_string () noexcept
 
simdjson_inline simdjson_result< bool > get_bool () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueget_value () noexcept
 
simdjson_inline simdjson_result< bool > is_null () noexcept
 
template<typename T >
simdjson_inline simdjson_result< T > get () &noexcept
 
template<typename T >
simdjson_inline simdjson_result< T > get () &&noexcept
 
template<typename T >
simdjson_inline error_code get (T &out) &noexcept
 
template<typename T >
simdjson_inline error_code get (T &out) &&noexcept
 
template<class T >
simdjson_inline operator T () noexcept(false)
 
simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::array () &noexcept(false)
 
simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::object () &noexcept(false)
 
simdjson_inline operator uint64_t () noexcept(false)
 
simdjson_inline operator int64_t () noexcept(false)
 
simdjson_inline operator double () noexcept(false)
 
simdjson_inline operator std::string_view () noexcept(false)
 
simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string () noexcept(false)
 
simdjson_inline operator bool () noexcept(false)
 
simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::value () noexcept(false)
 
simdjson_inline simdjson_result< size_t > count_elements () &noexcept
 
simdjson_inline simdjson_result< size_t > count_fields () &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueat (size_t index) &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array_iteratorbegin () &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array_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 (const char *key) &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueoperator[] (std::string_view key) &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueoperator[] (const char *key) &noexcept
 
simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueoperator[] (int) &noexcept=delete
 
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 (const char *key) &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::json_typetype () noexcept
 
simdjson_inline simdjson_result< bool > is_scalar () noexcept
 
simdjson_inline simdjson_result< bool > is_string () noexcept
 
simdjson_inline simdjson_result< const char * > current_location () noexcept
 
simdjson_inline simdjson_result< int32_t > current_depth () const noexcept
 
simdjson_inline simdjson_result< bool > is_negative () noexcept
 
simdjson_inline simdjson_result< bool > is_integer () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::number_type > get_number_type () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::numberget_number () noexcept
 
simdjson_inline simdjson_result< std::string_view > raw_json_token () noexcept
 std::string_view document_reference::raw_json_token() const 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
 
template<class T >
simdjson_warn_unused simdjson_inline error_code get (T &out) &noexcept
 
template<class T >
simdjson_warn_unused simdjson_inline error_code get (T &out) &&noexcept
 
template<>
simdjson_warn_unused simdjson_inline error_code get (SIMDJSON_IMPLEMENTATION::ondemand::document_reference &out) &noexcept
 
template<>
simdjson_warn_unused simdjson_inline error_code get (SIMDJSON_IMPLEMENTATION::ondemand::document_reference &out) &&noexcept
 
- Public Member Functions inherited from simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >
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::document_reference &&value) noexcept
 Create a new successful result.
 
simdjson_inline implementation_simdjson_result_base (SIMDJSON_IMPLEMENTATION::ondemand::document_reference &&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::document_reference &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::document_reference &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::document_referenceoperator* () &noexcept(false)
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::document_reference && operator* () &&noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::document_referenceoperator-> () noexcept(false)
 Arrow operator to access members of the contained value.
 
simdjson_inline const SIMDJSON_IMPLEMENTATION::ondemand::document_referenceoperator-> () const noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::document_referencevalue () &noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::document_reference && value () &&noexcept(false)
 Take the result value (move it).
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::document_reference && take_value () &&noexcept(false)
 Take the result value (move it).
 
simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::document_reference && () &&noexcept(false)
 Cast to the value (will throw on error).
 
simdjson_inline const SIMDJSON_IMPLEMENTATION::ondemand::document_referencevalue_unsafe () const &noexcept
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::document_referencevalue_unsafe () &noexcept
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::document_reference && 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::document_reference >
using value_type = SIMDJSON_IMPLEMENTATION::ondemand::document_reference
 
using error_type = error_code
 
- Protected Attributes inherited from simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >
SIMDJSON_IMPLEMENTATION::ondemand::document_reference first
 users should never directly access first and second.
 
error_code second
 Users should never directly access 'first'.
 

Detailed Description

Definition at line 1099 of file document.h.

Constructor & Destructor Documentation

◆ simdjson_result()

Member Function Documentation

◆ at()

◆ at_path()

Definition at line 1106 of file document-inl.h.

◆ at_pointer()

Definition at line 1101 of file document-inl.h.

◆ begin()

◆ count_elements()

simdjson_inline simdjson_result< size_t > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::count_elements ( ) &
noexcept

Definition at line 868 of file document-inl.h.

◆ count_fields()

simdjson_inline simdjson_result< size_t > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::count_fields ( ) &
noexcept

Definition at line 872 of file document-inl.h.

◆ current_location()

simdjson_inline simdjson_result< const char * > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::current_location ( )
noexcept

Definition at line 1091 of file document-inl.h.

◆ end()

◆ find_field() [1/2]

Definition at line 912 of file document-inl.h.

◆ find_field() [2/2]

Definition at line 908 of file document-inl.h.

◆ find_field_unordered() [1/2]

Definition at line 896 of file document-inl.h.

◆ find_field_unordered() [2/2]

Definition at line 892 of file document-inl.h.

◆ for_each_at_path_with_wildcard()

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

Definition at line 1118 of file document-inl.h.

◆ get() [1/6]

template<typename T >
simdjson_inline simdjson_result< T > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get ( ) &&
noexcept

Definition at line 991 of file document-inl.h.

◆ get() [2/6]

template<typename T >
simdjson_inline simdjson_result< T > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get ( ) &
noexcept

Definition at line 986 of file document-inl.h.

◆ get() [3/6]

Definition at line 1024 of file document-inl.h.

◆ get() [4/6]

Definition at line 1018 of file document-inl.h.

◆ get() [5/6]

template<class T >
simdjson_warn_unused simdjson_inline error_code simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get ( T &  out) &&
noexcept

Definition at line 1001 of file document-inl.h.

◆ get() [6/6]

template<class T >
simdjson_warn_unused simdjson_inline error_code simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get ( T &  out) &
noexcept

Definition at line 996 of file document-inl.h.

◆ get_array()

◆ get_bool()

Definition at line 973 of file document-inl.h.

◆ get_double()

Definition at line 948 of file document-inl.h.

◆ get_double_in_string()

simdjson_inline simdjson_result< double > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get_double_in_string ( )
noexcept

Definition at line 952 of file document-inl.h.

◆ get_int32()

Definition at line 944 of file document-inl.h.

◆ get_int64()

Definition at line 932 of file document-inl.h.

◆ get_int64_in_string()

simdjson_inline simdjson_result< int64_t > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get_int64_in_string ( )
noexcept

Definition at line 936 of file document-inl.h.

◆ get_number()

◆ get_number_type()

simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::number_type > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get_number_type ( )
noexcept

Definition at line 1037 of file document-inl.h.

◆ get_object()

◆ get_raw_json_string()

◆ get_string() [1/2]

simdjson_inline simdjson_result< std::string_view > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get_string ( bool  allow_replacement = false)
noexcept

Definition at line 956 of file document-inl.h.

◆ get_string() [2/2]

template<typename string_type >
simdjson_warn_unused simdjson_inline error_code simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get_string ( string_type &  receiver,
bool  allow_replacement = false 
)
noexcept

Definition at line 961 of file document-inl.h.

◆ get_uint32()

Definition at line 940 of file document-inl.h.

◆ get_uint64()

Definition at line 924 of file document-inl.h.

◆ get_uint64_in_string()

simdjson_inline simdjson_result< uint64_t > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get_uint64_in_string ( )
noexcept

Definition at line 928 of file document-inl.h.

◆ get_value()

◆ get_wobbly_string()

simdjson_inline simdjson_result< std::string_view > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::get_wobbly_string ( )
noexcept

Definition at line 965 of file document-inl.h.

◆ is_integer()

Definition at line 1033 of file document-inl.h.

◆ is_negative()

Definition at line 1029 of file document-inl.h.

◆ is_null()

Definition at line 981 of file document-inl.h.

◆ is_scalar()

Definition at line 1009 of file document-inl.h.

◆ is_string()

Definition at line 1013 of file document-inl.h.

◆ operator bool()

Definition at line 1081 of file document-inl.h.

◆ operator double()

Definition at line 1069 of file document-inl.h.

◆ operator int64_t()

Definition at line 1065 of file document-inl.h.

◆ operator SIMDJSON_IMPLEMENTATION::ondemand::array()

◆ operator SIMDJSON_IMPLEMENTATION::ondemand::object()

◆ operator SIMDJSON_IMPLEMENTATION::ondemand::raw_json_string()

◆ operator SIMDJSON_IMPLEMENTATION::ondemand::value()

◆ operator std::string_view()

simdjson_inline simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::operator std::string_view ( )

Definition at line 1073 of file document-inl.h.

◆ operator T()

template<class T >
simdjson_inline simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::operator T ( )
explicit

Definition at line 1047 of file document-inl.h.

◆ operator uint64_t()

Definition at line 1061 of file document-inl.h.

◆ operator[]() [1/2]

Definition at line 904 of file document-inl.h.

◆ operator[]() [2/2]

Definition at line 900 of file document-inl.h.

◆ raw_json_token()

simdjson_inline simdjson_result< std::string_view > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::document_reference >::raw_json_token ( )
noexcept

std::string_view document_reference::raw_json_token() const noexcept

std::string_view document_reference::raw_json_token() const noexcept

Definition at line 1096 of file document-inl.h.

◆ rewind()

Definition at line 880 of file document-inl.h.

◆ type()


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