MLIB
Loading...
Searching...
No Matches
json::node::iterator_type< C_ > Class Template Reference

node iterator More...

#include <json.h>

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = node
 
using reference = typename std::conditional_t<C_, node const&, node&>
 
using pointer = typename std::conditional_t<C_, const node*, node*>
 
using obj_iter
 
using arr_iter
 
using iterator_category = std::bidirectional_iterator_tag
 

Public Member Functions

 iterator_type (const iterator_type &other)
 
reference operator* ()
 Dereference value.
 
pointer operator-> ()
 Value pointer.
 
const std::string & name () const
 Object name.
 
iterator_type< C_ > operator++ (int)
 Increment operator (postfix)
 
iterator_type< C_ > & operator++ ()
 Increment operator (prefix)
 
iterator_type< C_ > operator-- (int)
 Decrement operator (postfix)
 
iterator_type< C_ > operator-- ()
 Decrement operator (prefix)
 
bool operator== (const iterator_type< C_ > &other) const
 Equality operator.
 
bool operator!= (const iterator_type< C_ > &other) const
 Inequality operator.
 

Friends

class node
 

Detailed Description

template<bool C_>
class json::node::iterator_type< C_ >

node iterator

Member Typedef Documentation

◆ arr_iter

template<bool C_>
using json::node::iterator_type< C_ >::arr_iter
Initial value:
typename std::conditional_t<C_, nodes_array::const_iterator, nodes_array::iterator>

◆ obj_iter

template<bool C_>
using json::node::iterator_type< C_ >::obj_iter
Initial value:
typename std::conditional_t<C_, nodes_map::const_iterator, nodes_map::iterator>

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