Crossfire Server, Trunk
nlohmann::detail::primitive_iterator_t Class Reference

#include <json.hpp>

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

Public Member Functions

constexpr difference_type get_value () const noexcept
 
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
 
const primitive_iterator_t operator++ (int) noexcept
 
primitive_iterator_toperator+= (difference_type n) noexcept
 
primitive_iterator_toperator-- () noexcept
 
const primitive_iterator_t operator-- (int) noexcept
 
primitive_iterator_toperator-= (difference_type n) 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...
 

Private Types

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 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 11333 of file json.hpp.

Member Typedef Documentation

◆ difference_type

Definition at line 11336 of file json.hpp.

Member Function Documentation

◆ get_value()

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

Definition at line 11345 of file json.hpp.

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

+ Here is the caller graph for this function:

◆ is_begin()

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

return whether the iterator can be dereferenced

Definition at line 11363 of file json.hpp.

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_end()

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

return whether the iterator is at end

Definition at line 11369 of file json.hpp.

References end_value.

◆ operator+()

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

Definition at line 11384 of file json.hpp.

References rotate-tower::result.

◆ operator++() [1/2]

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

Definition at line 11396 of file json.hpp.

◆ operator++() [2/2]

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

Definition at line 11402 of file json.hpp.

References rotate-tower::result.

◆ operator+=()

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

Definition at line 11422 of file json.hpp.

◆ operator--() [1/2]

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

Definition at line 11409 of file json.hpp.

◆ operator--() [2/2]

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

Definition at line 11415 of file json.hpp.

References rotate-tower::result.

◆ operator-=()

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

Definition at line 11428 of file json.hpp.

◆ set_begin()

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

set iterator to a defined beginning

Definition at line 11351 of file json.hpp.

References begin_value.

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

+ Here is the caller graph for this function:

◆ set_end()

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

set iterator to a defined past the end

Definition at line 11357 of file json.hpp.

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:

Friends And Related Function Documentation

◆ operator-

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

Definition at line 11391 of file json.hpp.

◆ operator<

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

Definition at line 11379 of file json.hpp.

◆ operator==

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

Definition at line 11374 of file json.hpp.

Field Documentation

◆ __pad0__

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

Definition at line 11342 of file json.hpp.

◆ begin_value

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

Definition at line 11337 of file json.hpp.

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 11338 of file json.hpp.

Referenced by is_end(), and set_end().


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