|
nfx-serialization 0.3.0
Cross-platform C++ JSON serialization library with extensible trait capabilities
|
Represents a single path entry in the document. More...
#include <nfx/serialization/json/Document.h>

Public Member Functions | |
| const Document & | value () const |
| Get the value as a Document reference. | |
| Entry () | |
| Default constructor. | |
| Entry (Entry &&other) noexcept=default | |
| Move constructor. | |
| Entry & | operator= (Entry &&other) noexcept=default |
| Move assignment. | |
| Entry (const Entry &other) | |
| Copy constructor (deep copy). | |
| Entry & | operator= (const Entry &other) |
| Copy assignment (deep copy). | |
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 1135 of file Document.h.
|
inline |
Default constructor.
Definition at line 1149 of file Document.h.

|
defaultnoexcept |
Move constructor.
| other | Entry to move from |

| nfx::serialization::json::Document::PathView::Entry::Entry | ( | const Entry & | other | ) |
Copy constructor (deep copy).
| other | Entry to copy from |

Copy assignment (deep copy).
| other | Entry to copy from |

|
defaultnoexcept |
Move assignment.
| other | Entry to move from |

|
inline |
Get the value as a Document reference.
Definition at line 1146 of file Document.h.

| size_t nfx::serialization::json::Document::PathView::Entry::depth |
Nesting depth (0 = root level).
Definition at line 1139 of file Document.h.
| bool nfx::serialization::json::Document::PathView::Entry::isLeaf |
True if value is a primitive (not object/array).
Definition at line 1140 of file Document.h.
| std::string nfx::serialization::json::Document::PathView::Entry::path |
Full path to this value.
Definition at line 1137 of file Document.h.
| std::unique_ptr<Document> nfx::serialization::json::Document::PathView::Entry::valuePtr |
The value at this path (owned pointer).
Definition at line 1138 of file Document.h.