All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Types | Private Attributes | Static Private Attributes | Friends | List of all members
nlohmann::detail::primitive_iterator_t Class Reference

#include <json.hpp>

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
 

Private Types

using difference_type = std::ptrdiff_t
 

Private Attributes

difference_type m_it = (std::numeric_limits<std::ptrdiff_t>::min)()
 iterator as signed integer type More...
 

Static Private Attributes

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

Friends

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

Detailed Description

Definition at line 9173 of file json.hpp.

Member Typedef Documentation

Definition at line 9176 of file json.hpp.

Member Function Documentation

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

Definition at line 9184 of file json.hpp.

9185  {
9186  return m_it;
9187  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
constexpr bool nlohmann::detail::primitive_iterator_t::is_begin ( ) const
inlinenoexcept

return whether the iterator can be dereferenced

Definition at line 9202 of file json.hpp.

9203  {
9204  return m_it == begin_value;
9205  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
static constexpr difference_type begin_value
Definition: json.hpp:9177
constexpr bool nlohmann::detail::primitive_iterator_t::is_end ( ) const
inlinenoexcept

return whether the iterator is at end

Definition at line 9208 of file json.hpp.

9209  {
9210  return m_it == end_value;
9211  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
static constexpr difference_type end_value
Definition: json.hpp:9178
primitive_iterator_t nlohmann::detail::primitive_iterator_t::operator+ ( difference_type  n)
inlinenoexcept

Definition at line 9223 of file json.hpp.

9224  {
9225  auto result = *this;
9226  result += n;
9227  return result;
9228  }
primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator++ ( )
inlinenoexcept

Definition at line 9235 of file json.hpp.

9236  {
9237  ++m_it;
9238  return *this;
9239  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
primitive_iterator_t const nlohmann::detail::primitive_iterator_t::operator++ ( int  )
inlinenoexcept

Definition at line 9241 of file json.hpp.

9242  {
9243  auto result = *this;
9244  ++m_it;
9245  return result;
9246  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator+= ( difference_type  n)
inlinenoexcept

Definition at line 9261 of file json.hpp.

9262  {
9263  m_it += n;
9264  return *this;
9265  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator-- ( )
inlinenoexcept

Definition at line 9248 of file json.hpp.

9249  {
9250  --m_it;
9251  return *this;
9252  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
primitive_iterator_t const nlohmann::detail::primitive_iterator_t::operator-- ( int  )
inlinenoexcept

Definition at line 9254 of file json.hpp.

9255  {
9256  auto result = *this;
9257  --m_it;
9258  return result;
9259  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
primitive_iterator_t& nlohmann::detail::primitive_iterator_t::operator-= ( difference_type  n)
inlinenoexcept

Definition at line 9267 of file json.hpp.

9268  {
9269  m_it -= n;
9270  return *this;
9271  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
void nlohmann::detail::primitive_iterator_t::set_begin ( )
inlinenoexcept

set iterator to a defined beginning

Definition at line 9190 of file json.hpp.

9191  {
9192  m_it = begin_value;
9193  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
static constexpr difference_type begin_value
Definition: json.hpp:9177
void nlohmann::detail::primitive_iterator_t::set_end ( )
inlinenoexcept

set iterator to a defined past the end

Definition at line 9196 of file json.hpp.

9197  {
9198  m_it = end_value;
9199  }
difference_type m_it
iterator as signed integer type
Definition: json.hpp:9181
static constexpr difference_type end_value
Definition: json.hpp:9178

Friends And Related Function Documentation

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

Definition at line 9230 of file json.hpp.

9231  {
9232  return lhs.m_it - rhs.m_it;
9233  }
constexpr bool operator< ( primitive_iterator_t  lhs,
primitive_iterator_t  rhs 
)
friend

Definition at line 9218 of file json.hpp.

9219  {
9220  return lhs.m_it < rhs.m_it;
9221  }
constexpr bool operator== ( primitive_iterator_t  lhs,
primitive_iterator_t  rhs 
)
friend

Definition at line 9213 of file json.hpp.

9214  {
9215  return lhs.m_it == rhs.m_it;
9216  }

Member Data Documentation

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

Definition at line 9177 of file json.hpp.

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

Definition at line 9178 of file json.hpp.

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


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