nfx-serialization 0.3.0
Cross-platform C++ JSON serialization library with extensible trait capabilities
Loading...
Searching...
No Matches
nfx::serialization::json::Document::PathView::Entry Struct Reference

Represents a single path entry in the document. More...

#include <nfx/serialization/json/Document.h>

Collaboration diagram for nfx::serialization::json::Document::PathView::Entry:

Public Member Functions

const Documentvalue () const
 Get the value as a Document reference.
 Entry ()
 Default constructor.
 Entry (Entry &&other) noexcept=default
 Move constructor.
Entryoperator= (Entry &&other) noexcept=default
 Move assignment.
 Entry (const Entry &other)
 Copy constructor (deep copy).
Entryoperator= (const Entry &other)
 Copy assignment (deep copy).

Public Attributes

std::string path
 Full path to this value.
std::unique_ptr< DocumentvaluePtr
 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).

Detailed Description

Represents a single path entry in the document.

Definition at line 1135 of file Document.h.

Constructor & Destructor Documentation

◆ Entry() [1/3]

nfx::serialization::json::Document::PathView::Entry::Entry ( )
inline

Default constructor.

Definition at line 1149 of file Document.h.

Here is the caller graph for this function:

◆ Entry() [2/3]

nfx::serialization::json::Document::PathView::Entry::Entry ( Entry && other)
defaultnoexcept

Move constructor.

Parameters
otherEntry to move from
Here is the call graph for this function:

◆ Entry() [3/3]

nfx::serialization::json::Document::PathView::Entry::Entry ( const Entry & other)

Copy constructor (deep copy).

Parameters
otherEntry to copy from
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

Entry & nfx::serialization::json::Document::PathView::Entry::operator= ( const Entry & other)

Copy assignment (deep copy).

Parameters
otherEntry to copy from
Returns
Reference to this entry
Here is the call graph for this function:

◆ operator=() [2/2]

Entry & nfx::serialization::json::Document::PathView::Entry::operator= ( Entry && other)
defaultnoexcept

Move assignment.

Parameters
otherEntry to move from
Returns
Reference to this entry
Here is the call graph for this function:

◆ value()

const Document & nfx::serialization::json::Document::PathView::Entry::value ( ) const
inline

Get the value as a Document reference.

Returns
Const reference to the Document value

Definition at line 1146 of file Document.h.

Here is the call graph for this function:

Member Data Documentation

◆ depth

size_t nfx::serialization::json::Document::PathView::Entry::depth

Nesting depth (0 = root level).

Definition at line 1139 of file Document.h.

◆ isLeaf

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.

◆ path

std::string nfx::serialization::json::Document::PathView::Entry::path

Full path to this value.

Definition at line 1137 of file Document.h.

◆ valuePtr

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.


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