xentara-utils v1.2.1
Xentara utilities library
|
An accessor used for reading the members of a JSON object. More...
#include <json/decoder/Object.hpp>
Classes | |
class | Iterator |
struct | Member |
A member of an object. More... | |
Public Member Functions | |
Object ()=delete | |
This type is not user-constructible. | |
internal auto | begin () -> Iterator |
Returns an object that can be used to iterate over the members. | |
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 object belongs to. | |
auto | lineNumber () const -> std::uint_least32_t |
Gets the line number in the JSON document that the object is on. | |
auto | location () const -> Location |
Gets the location of the object within the JSON document. | |
An accessor used for reading the members of a JSON object.
Objects of this class can be moved, but not copied.
|
delete |
This type is not user-constructible.
auto xentara::utils::json::decoder::Object::begin | ( | ) | -> Iterator |
Returns an object that can be used to iterate over the members.
std::runtime_error | An error occured reading the first member from the stream |
auto xentara::utils::json::decoder::Object::document | ( | ) | const -> std::reference_wrapper<const Document> |
Gets the JSON document that the object belongs to.
|
constexprnoexcept |
Returns an sentinel that can be used to determine if an iterator is exhausted.
auto xentara::utils::json::decoder::Object::lineNumber | ( | ) | const -> std::uint_least32_t |
Gets the line number in the JSON document that the object is on.
auto xentara::utils::json::decoder::Object::location | ( | ) | const -> Location |
Gets the location of the object within the JSON document.