A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 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

constexpr bool is_begin ( ) const
inlinenoexcept

Definition at line 167 of file iterator.hpp.

constexpr bool is_end ( ) const
inlinenoexcept

Definition at line 173 of file iterator.hpp.

constexpr operator difference_type ( ) const
inlinenoexcept

Definition at line 185 of file iterator.hpp.

operator difference_type & ( )
inlinenoexcept

Definition at line 179 of file iterator.hpp.

void set_begin ( )
inlinenoexcept

Definition at line 155 of file iterator.hpp.

void set_end ( )
inlinenoexcept

Definition at line 161 of file iterator.hpp.


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