A library for working with phylogenetic and population genetic data.
JsonIterator< U >::PrimitiveIterator Class Reference

#include <genesis/utils/formats/json/iterator.hpp>

Detailed Description

template<typename U>
class genesis::utils::JsonIterator< U >::PrimitiveIterator

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.

Definition at line 150 of file formats/json/iterator.hpp.

Public Member Functions

constexpr bool is_begin () const noexcept
constexpr bool is_end () const noexcept
constexpr operator difference_type () const noexcept
 operator difference_type & () noexcept
void set_begin () noexcept
void set_end () noexcept

Member Function Documentation

◆ is_begin()

constexpr bool is_begin ( ) const

Definition at line 167 of file formats/json/iterator.hpp.

◆ is_end()

constexpr bool is_end ( ) const

Definition at line 173 of file formats/json/iterator.hpp.

◆ operator difference_type()

constexpr operator difference_type ( ) const

Definition at line 185 of file formats/json/iterator.hpp.

◆ operator difference_type &()

operator difference_type & ( )

Definition at line 179 of file formats/json/iterator.hpp.

◆ set_begin()

void set_begin ( )

Definition at line 155 of file formats/json/iterator.hpp.

◆ set_end()

void set_end ( )

Definition at line 161 of file formats/json/iterator.hpp.

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