nfx-json 1.5.2
Modern C++20 JSON library with schema validation and generation
Loading...
Searching...
No Matches
nfx::json::Document::ValuesView::const_iterator Class Reference

Value iterator (const). More...

#include <nfx/json/Document.h>

Public Types

using iterator_category = std::forward_iterator_tag
 iterator category (forward iterator)
using value_type = Document
 iterator value type
using difference_type = std::ptrdiff_t
 iterator difference type
using pointer = const Document*
 iterator pointer type
using reference = const Document&
 iterator reference type

Public Member Functions

 const_iterator (Object::const_iterator it)
 Construct const_iterator from underlying Object iterator.
 const_iterator (const const_iterator &)=default
 Copy constructor.
 const_iterator (const_iterator &&) noexcept=default
 Move constructor.
const_iteratoroperator= (const const_iterator &)=default
 Copy assignment.
const_iteratoroperator= (const_iterator &&) noexcept=default
 Move assignment.
reference operator* () const
 Dereference operator.
pointer operator-> () const
 Arrow operator.
const_iteratoroperator++ ()
 Pre-increment operator.
const_iterator operator++ (int)
 Post-increment operator.
bool operator== (const const_iterator &other) const
 Equality comparison.
bool operator!= (const const_iterator &other) const
 Inequality comparison.

Detailed Description

Value iterator (const).

Definition at line 949 of file Document.h.

Member Typedef Documentation

◆ difference_type

iterator difference type

Definition at line 961 of file Document.h.

◆ iterator_category

iterator category (forward iterator)

Definition at line 955 of file Document.h.

◆ pointer

iterator pointer type

Definition at line 964 of file Document.h.

◆ reference

iterator reference type

Definition at line 967 of file Document.h.

◆ value_type

iterator value type

Definition at line 958 of file Document.h.

Constructor & Destructor Documentation

◆ const_iterator()

nfx::json::Document::ValuesView::const_iterator::const_iterator ( Object::const_iterator it)
inline

Construct const_iterator from underlying Object iterator.

Parameters
itThe underlying Object const_iterator

Member Function Documentation

◆ operator!=()

bool nfx::json::Document::ValuesView::const_iterator::operator!= ( const const_iterator & other) const
inline

Inequality comparison.

Parameters
otherThe iterator to compare with
Returns
true if iterators are not equal, false otherwise

◆ operator*()

reference nfx::json::Document::ValuesView::const_iterator::operator* ( ) const
inline

Dereference operator.

Returns
Const reference to the Document value

◆ operator++() [1/2]

const_iterator & nfx::json::Document::ValuesView::const_iterator::operator++ ( )
inline

Pre-increment operator.

Returns
Reference to this iterator after increment

◆ operator++() [2/2]

const_iterator nfx::json::Document::ValuesView::const_iterator::operator++ ( int )
inline

Post-increment operator.

Returns
Copy of iterator before increment

◆ operator->()

pointer nfx::json::Document::ValuesView::const_iterator::operator-> ( ) const
inline

Arrow operator.

Returns
Pointer to the Document value

◆ operator=() [1/2]

const_iterator & nfx::json::Document::ValuesView::const_iterator::operator= ( const const_iterator & )
default

Copy assignment.

Returns
Reference to this iterator

◆ operator=() [2/2]

const_iterator & nfx::json::Document::ValuesView::const_iterator::operator= ( const_iterator && )
defaultnoexcept

Move assignment.

Returns
Reference to this iterator

◆ operator==()

bool nfx::json::Document::ValuesView::const_iterator::operator== ( const const_iterator & other) const
inline

Equality comparison.

Parameters
otherThe iterator to compare with
Returns
true if iterators are equal, false otherwise

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