|
xentara-utils v2.0.6
The Xentara Utility Library
|
An accessor used for reading the elements of a JSON array. More...
#include <xentara/utils/json/decoder/Array.hpp>
Inheritance diagram for xentara::utils::json::decoder::Array:Classes | |
| class | Iterator |
| An iterator that can be used to iterate over the array’s elements. More... | |
Public Member Functions | |
| Array ()=delete | |
| This type is not user-constructible. | |
| internal auto | begin () -> Iterator |
| Returns an object that can be used to iterate over the elements. | |
| constexpr auto | end () noexcept -> std::default_sentinel_t |
| Returns an sentinel that can be used to determine if an iterator is exhausted. | |
| auto | document () const -> std::reference_wrapper< const Document > |
| Gets the JSON document that the array belongs to. | |
| auto | lineNumber () const -> std::uint_least32_t |
| Gets the line number in the JSON document that the array is on. | |
| auto | location () const -> Location |
| Gets the location of the array within the JSON document. | |
An accessor used for reading the elements of a JSON array.
Objects of this class can be moved, but not copied.
|
delete |
This type is not user-constructible.
| auto xentara::utils::json::decoder::Array::begin | ( | ) | -> Iterator |
Returns an object that can be used to iterate over the elements.
| std::runtime_error | An error occured reading the first element from the stream |
| auto xentara::utils::json::decoder::Array::document | ( | ) | const -> std::reference_wrapper<const Document> |
Gets the JSON document that the array belongs to.
|
constexprnoexcept |
Returns an sentinel that can be used to determine if an iterator is exhausted.
| auto xentara::utils::json::decoder::Array::lineNumber | ( | ) | const -> std::uint_least32_t |
Gets the line number in the JSON document that the array is on.
| auto xentara::utils::json::decoder::Array::location | ( | ) | const -> Location |
Gets the location of the array within the JSON document.