A Discrete-Event Network Simulator
API
nlohmann::detail::primitive_iterator_t Class Reference

#include "json.h"

+ Collaboration diagram for nlohmann::detail::primitive_iterator_t:

Public Member Functions

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

Private Types

using difference_type = std::ptrdiff_t
 
using difference_type = std::ptrdiff_t
 

Private Attributes

JSON_PRIVATE_UNLESS_TESTED __pad0__: difference_type m_it = (std::numeric_limits<std::ptrdiff_t>::min)()
 

Static Private Attributes

static constexpr difference_type begin_value = 0
 
static constexpr difference_type end_value = begin_value + 1
 

Friends

constexpr friend difference_type operator- (primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
 
constexpr friend difference_type 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 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 bool operator== (primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept
 

Detailed Description

Definition at line 10705 of file json.h.

Member Typedef Documentation

◆ difference_type [1/2]

Definition at line 10708 of file json.h.

◆ difference_type [2/2]

Definition at line 10708 of file json.h.

Member Function Documentation

◆ get_value() [1/2]

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

Definition at line 10717 of file json.h.

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

+ Here is the caller graph for this function:

◆ get_value() [2/2]

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

Definition at line 10717 of file json.h.

◆ is_begin() [1/2]

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

return whether the iterator can be dereferenced

Definition at line 10735 of file json.h.

References begin_value.

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

+ Here is the caller graph for this function:

◆ is_begin() [2/2]

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

return whether the iterator can be dereferenced

Definition at line 10735 of file json.h.

References begin_value.

◆ is_end() [1/2]

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

return whether the iterator is at end

Definition at line 10741 of file json.h.

References end_value.

◆ is_end() [2/2]

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

return whether the iterator is at end

Definition at line 10741 of file json.h.

References end_value.

◆ operator+() [1/2]

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

Definition at line 10756 of file json.h.

◆ operator+() [2/2]

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

Definition at line 10756 of file json.h.

◆ operator++() [1/4]

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

Definition at line 10768 of file json.h.

◆ operator++() [2/4]

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

Definition at line 10768 of file json.h.

◆ operator++() [3/4]

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

Definition at line 10774 of file json.h.

◆ operator++() [4/4]

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

Definition at line 10774 of file json.h.

◆ operator+=() [1/2]

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

Definition at line 10794 of file json.h.

◆ operator+=() [2/2]

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

Definition at line 10794 of file json.h.

◆ operator--() [1/4]

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

Definition at line 10781 of file json.h.

◆ operator--() [2/4]

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

Definition at line 10781 of file json.h.

◆ operator--() [3/4]

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

Definition at line 10787 of file json.h.

◆ operator--() [4/4]

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

Definition at line 10787 of file json.h.

◆ operator-=() [1/2]

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

Definition at line 10800 of file json.h.

◆ operator-=() [2/2]

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

Definition at line 10800 of file json.h.

◆ set_begin() [1/2]

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

set iterator to a defined beginning

Definition at line 10723 of file json.h.

References begin_value.

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

+ Here is the caller graph for this function:

◆ set_begin() [2/2]

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

set iterator to a defined beginning

Definition at line 10723 of file json.h.

References begin_value.

◆ set_end() [1/2]

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

set iterator to a defined past the end

Definition at line 10729 of file json.h.

References end_value.

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

+ Here is the caller graph for this function:

◆ set_end() [2/2]

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

set iterator to a defined past the end

Definition at line 10729 of file json.h.

References end_value.

Friends And Related Function Documentation

◆ operator- [1/2]

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

Definition at line 10763 of file json.h.

◆ operator- [2/2]

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

Definition at line 10763 of file json.h.

◆ operator< [1/2]

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

Definition at line 10751 of file json.h.

◆ operator< [2/2]

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

Definition at line 10751 of file json.h.

◆ operator== [1/2]

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

Definition at line 10746 of file json.h.

◆ operator== [2/2]

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

Definition at line 10746 of file json.h.

Member Data Documentation

◆ __pad0__

JSON_PRIVATE_UNLESS_TESTED nlohmann::detail::primitive_iterator_t::__pad0__
private

Definition at line 10712 of file json.h.

◆ begin_value

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

Definition at line 10709 of file json.h.

Referenced by is_begin(), and set_begin().

◆ end_value

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

Definition at line 10710 of file json.h.

Referenced by is_end(), and set_end().


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