ROOT 6.16/01 Reference Guide |
an iterator for primitive JSON types
This class models an iterator for primitive JSON types (boolean, number, string). It's only purpose is to allow the iterator/const_iterator classes to "iterate" over primitive values. Internally, the iterator is modeled by a difference_type
variable. Value begin_value (0
) models the begin, end_value (1
) models past the end.
Public Member Functions | |
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 i) |
primitive_iterator_t & | operator++ () |
primitive_iterator_t | operator++ (int) |
primitive_iterator_t & | operator+= (difference_type n) |
primitive_iterator_t & | operator-- () |
primitive_iterator_t | operator-- (int) |
primitive_iterator_t & | operator-= (difference_type n) |
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 Attributes | |
difference_type | m_it = std::numeric_limits<std::ptrdiff_t>::denorm_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 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 |
constexpr friend bool | operator< (primitive_iterator_t lhs, primitive_iterator_t rhs) noexcept |
std::ostream & | operator<< (std::ostream &os, primitive_iterator_t it) |
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 |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
staticconstexprprivate |
|
staticconstexprprivate |
|
private |