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

Public Member Functions

simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array_iteratorbegin () noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array_iteratorend () noexcept
 
simdjson_result< size_t > count_elements () &noexcept
 
simdjson_result< bool > is_empty () &noexcept
 
simdjson_result< bool > reset () &noexcept
 
simdjson_inline simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::valueat (size_t index) 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_inline simdjson_result< std::string_view > raw_json () noexcept
 
- Public Member Functions inherited from simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::array >
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::array &&value) noexcept
 Create a new successful result.
 
simdjson_inline implementation_simdjson_result_base (SIMDJSON_IMPLEMENTATION::ondemand::array &&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::array &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::array &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::arrayoperator* () &noexcept(false)
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::array && operator* () &&noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::arrayoperator-> () noexcept(false)
 Arrow operator to access members of the contained value.
 
simdjson_inline const SIMDJSON_IMPLEMENTATION::ondemand::arrayoperator-> () const noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::arrayvalue () &noexcept(false)
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::array && value () &&noexcept(false)
 Take the result value (move it).
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::array && take_value () &&noexcept(false)
 Take the result value (move it).
 
simdjson_inline operator SIMDJSON_IMPLEMENTATION::ondemand::array && () &&noexcept(false)
 Cast to the value (will throw on error).
 
simdjson_inline const SIMDJSON_IMPLEMENTATION::ondemand::arrayvalue_unsafe () const &noexcept
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::arrayvalue_unsafe () &noexcept
 Get the result value.
 
simdjson_inline SIMDJSON_IMPLEMENTATION::ondemand::array && 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::array >
using value_type = SIMDJSON_IMPLEMENTATION::ondemand::array
 
using error_type = error_code
 
- Protected Attributes inherited from simdjson::SIMDJSON_IMPLEMENTATION::implementation_simdjson_result_base< SIMDJSON_IMPLEMENTATION::ondemand::array >
SIMDJSON_IMPLEMENTATION::ondemand::array first
 users should never directly access first and second.
 
error_code second
 Users should never directly access 'first'.
 

Detailed Description

Definition at line 246 of file array.h.

Member Function Documentation

◆ at()

◆ at_path()

Definition at line 273 of file array-inl.h.

◆ at_pointer()

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

Definition at line 269 of file array-inl.h.

◆ begin()

◆ count_elements()

simdjson_inline simdjson_result< size_t > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array >::count_elements ( ) &
inlinenoexcept

Definition at line 257 of file array-inl.h.

◆ end()

◆ for_each_at_path_with_wildcard()

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

Definition at line 283 of file array-inl.h.

◆ is_empty()

simdjson_inline simdjson_result< bool > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array >::is_empty ( ) &
inlinenoexcept

Definition at line 261 of file array-inl.h.

◆ raw_json()

simdjson_inline simdjson_result< std::string_view > simdjson::simdjson_result< SIMDJSON_IMPLEMENTATION::ondemand::array >::raw_json ( )
noexcept

Definition at line 287 of file array-inl.h.


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