|
nfx-json 1.5.2
Modern C++20 JSON library with schema validation and generation
|
Represents a single path entry in the document. More...
#include <nfx/json/Document.h>

Public Member Functions | |
| Entry () | |
| Default constructor. | |
| Entry (Entry &&other) noexcept=default | |
| Move constructor. | |
| Entry & | operator= (Entry &&other) noexcept=default |
| Move assignment. | |
| Entry (const Entry &other) | |
| Copy constructor. | |
| Entry & | operator= (const Entry &other) |
| Copy assignment. | |
| const Document & | value () const |
| Get the value as a Document reference. | |
Public Attributes | |
| std::string | path |
| Full path to this value. | |
| std::unique_ptr< Document > | valuePtr |
| The value at this path (owned pointer). | |
| size_t | depth |
| Nesting depth (0 = root level). | |
| bool | isLeaf |
| True if value is a primitive (not object/array). | |
Represents a single path entry in the document.
Definition at line 1478 of file Document.h.
|
defaultnoexcept |
Move constructor.
| other | Entry to move from |
| nfx::json::Document::PathView::Entry::Entry | ( | const Entry & | other | ) |
Copy constructor.
| other | Entry to copy from |
Copy assignment.
| other | Entry to copy from |
Move assignment.
| other | Entry to move from |
|
inline |
Get the value as a Document reference.
| size_t nfx::json::Document::PathView::Entry::depth |
Nesting depth (0 = root level).
Definition at line 1482 of file Document.h.
| bool nfx::json::Document::PathView::Entry::isLeaf |
True if value is a primitive (not object/array).
Definition at line 1483 of file Document.h.
| std::string nfx::json::Document::PathView::Entry::path |
Full path to this value.
Definition at line 1480 of file Document.h.
| std::unique_ptr<Document> nfx::json::Document::PathView::Entry::valuePtr |
The value at this path (owned pointer).
Definition at line 1481 of file Document.h.