MUQ  0.4.3
nlohmann::detail::primitive_iterator_t Class Reference

#include <json.h>

Detailed Description

Definition at line 10636 of file json.h.

Public Member Functions

constexpr difference_type get_value () const noexcept
 
void set_begin () noexcept
 set iterator to a defined beginning More...
 
void set_end () noexcept
 set iterator to a defined past the end More...
 
constexpr bool is_begin () const noexcept
 return whether the iterator can be dereferenced More...
 
constexpr bool is_end () const noexcept
 return whether the iterator is at end More...
 
primitive_iterator_t operator+ (difference_type n) noexcept
 
primitive_iterator_toperator++ () noexcept
 
primitive_iterator_t const operator++ (int) noexcept
 
primitive_iterator_toperator-- () noexcept
 
primitive_iterator_t const operator-- (int) noexcept
 
primitive_iterator_toperator+= (difference_type n) noexcept
 
primitive_iterator_toperator-= (difference_type n) noexcept
 

Friends

constexpr friend bool operator== (primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
 
constexpr friend bool operator< (primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
 
constexpr friend difference_type operator- (primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
 

Member Typedef Documentation

◆ difference_type

Definition at line 10639 of file json.h.

Member Function Documentation

◆ get_value()

constexpr difference_type nlohmann::detail::primitive_iterator_t::get_value ( ) const
inlineconstexprnoexcept

Definition at line 10647 of file json.h.

References m_it.

Referenced by nlohmann::detail::iter_impl< BasicJsonType >::operator[]().

◆ is_begin()

constexpr bool nlohmann::detail::primitive_iterator_t::is_begin ( ) const
inlineconstexprnoexcept

return whether the iterator can be dereferenced

Definition at line 10665 of file json.h.

References begin_value, and m_it.

Referenced by nlohmann::detail::iter_impl< BasicJsonType >::operator*(), and nlohmann::detail::iter_impl< BasicJsonType >::operator->().

◆ is_end()

constexpr bool nlohmann::detail::primitive_iterator_t::is_end ( ) const
inlineconstexprnoexcept

return whether the iterator is at end

Definition at line 10671 of file json.h.

References end_value, and m_it.

◆ operator+()

primitive_iterator_t nlohmann::detail::primitive_iterator_t::operator+ ( difference_type  n)
inlinenoexcept

Definition at line 10686 of file json.h.

References nlohmann::detail::dtoa_impl::n.

◆ operator++() [1/2]

primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator++ ( )
inlinenoexcept

Definition at line 10698 of file json.h.

References m_it.

◆ operator++() [2/2]

primitive_iterator_t const nlohmann::detail::primitive_iterator_t::operator++ ( int  )
inlinenoexcept

Definition at line 10704 of file json.h.

References m_it.

◆ operator+=()

primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator+= ( difference_type  n)
inlinenoexcept

Definition at line 10724 of file json.h.

References m_it, and nlohmann::detail::dtoa_impl::n.

◆ operator--() [1/2]

primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator-- ( )
inlinenoexcept

Definition at line 10711 of file json.h.

References m_it.

◆ operator--() [2/2]

primitive_iterator_t const nlohmann::detail::primitive_iterator_t::operator-- ( int  )
inlinenoexcept

Definition at line 10717 of file json.h.

References m_it.

◆ operator-=()

primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator-= ( difference_type  n)
inlinenoexcept

Definition at line 10730 of file json.h.

References m_it, and nlohmann::detail::dtoa_impl::n.

◆ set_begin()

void nlohmann::detail::primitive_iterator_t::set_begin ( )
inlinenoexcept

set iterator to a defined beginning

Definition at line 10653 of file json.h.

References begin_value, and m_it.

Referenced by nlohmann::detail::iter_impl< BasicJsonType >::set_begin().

◆ set_end()

void nlohmann::detail::primitive_iterator_t::set_end ( )
inlinenoexcept

set iterator to a defined past the end

Definition at line 10659 of file json.h.

References end_value, and m_it.

Referenced by nlohmann::detail::iter_impl< BasicJsonType >::set_begin(), and nlohmann::detail::iter_impl< BasicJsonType >::set_end().

Friends And Related Function Documentation

◆ operator-

constexpr friend difference_type operator- ( primitive_iterator_t  lhs,
primitive_iterator_t  rhs 
)
friend

Definition at line 10693 of file json.h.

◆ operator<

constexpr friend bool operator< ( primitive_iterator_t  lhs,
primitive_iterator_t  rhs 
)
friend

Definition at line 10681 of file json.h.

◆ operator==

constexpr friend bool operator== ( primitive_iterator_t  lhs,
primitive_iterator_t  rhs 
)
friend

Definition at line 10676 of file json.h.

Member Data Documentation

◆ begin_value

constexpr difference_type nlohmann::detail::primitive_iterator_t::begin_value = 0
staticconstexprprivate

Definition at line 10640 of file json.h.

Referenced by is_begin(), and set_begin().

◆ end_value

constexpr difference_type nlohmann::detail::primitive_iterator_t::end_value = begin_value + 1
staticconstexprprivate

Definition at line 10641 of file json.h.

Referenced by is_end(), and set_end().

◆ m_it

difference_type nlohmann::detail::primitive_iterator_t::m_it = (std::numeric_limits<std::ptrdiff_t>::min)()
private

iterator as signed integer type

Definition at line 10644 of file json.h.

Referenced by get_value(), is_begin(), is_end(), operator++(), operator+=(), operator--(), operator-=(), set_begin(), and set_end().


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