userver: yaml_config::Iterator< IterTraits > Class Template Reference
Loading...
Searching...
No Matches
yaml_config::Iterator< IterTraits > Class Template Referencefinal

Detailed Description

template<typename IterTraits>
class yaml_config::Iterator< IterTraits >

Definition at line 12 of file iterator.hpp.

Public Types

using YamlIterator = formats::yaml::Value::const_iterator
 
using iterator_category = std::forward_iterator_tag
 
using difference_type = std::ptrdiff_t
 
using value_type = typename IterTraits::value_type
 
using reference = typename IterTraits::reference
 
using pointer = typename IterTraits::pointer
 

Public Member Functions

 Iterator (const value_type &container, YamlIterator it)
 
 Iterator (const Iterator &other)
 
 Iterator (Iterator &&other) noexcept
 
Iteratoroperator= (const Iterator &)
 
Iteratoroperator= (Iterator &&) noexcept
 
Iterator operator++ (int)
 
Iteratoroperator++ ()
 
reference operator* () const
 
pointer operator-> () const
 
formats::common::Type GetIteratorType () const
 
std::string GetName () const
 
bool operator== (const Iterator &other) const
 
bool operator!= (const Iterator &other) const
 

Member Typedef Documentation

◆ difference_type

template<typename IterTraits >
using yaml_config::Iterator< IterTraits >::difference_type = std::ptrdiff_t

Definition at line 16 of file iterator.hpp.

◆ iterator_category

template<typename IterTraits >
using yaml_config::Iterator< IterTraits >::iterator_category = std::forward_iterator_tag

Definition at line 15 of file iterator.hpp.

◆ pointer

template<typename IterTraits >
using yaml_config::Iterator< IterTraits >::pointer = typename IterTraits::pointer

Definition at line 19 of file iterator.hpp.

◆ reference

template<typename IterTraits >
using yaml_config::Iterator< IterTraits >::reference = typename IterTraits::reference

Definition at line 18 of file iterator.hpp.

◆ value_type

template<typename IterTraits >
using yaml_config::Iterator< IterTraits >::value_type = typename IterTraits::value_type

Definition at line 17 of file iterator.hpp.

◆ YamlIterator

template<typename IterTraits >
using yaml_config::Iterator< IterTraits >::YamlIterator = formats::yaml::Value::const_iterator

Definition at line 14 of file iterator.hpp.

Constructor & Destructor Documentation

◆ Iterator()

template<typename IterTraits >
yaml_config::Iterator< IterTraits >::Iterator ( const value_type &  container,
YamlIterator< IterTraits >  it 
)
inline

Definition at line 21 of file iterator.hpp.

Member Function Documentation

◆ GetIteratorType()

template<typename IterTraits >
formats::common::Type yaml_config::Iterator< IterTraits >::GetIteratorType ( ) const
inline

Return whether this is iterator over object or over array

Returns
formats::common::kArray or formats::common::kObject

Definition at line 42 of file iterator.hpp.

◆ operator!=()

template<typename IterTraits >
bool yaml_config::Iterator< IterTraits >::operator!= ( const Iterator< IterTraits > &  other) const
inline

Definition at line 48 of file iterator.hpp.

◆ operator*()

template<typename IterTraits >
reference yaml_config::Iterator< IterTraits >::operator* ( ) const
inline

Definition at line 31 of file iterator.hpp.

◆ operator->()

template<typename IterTraits >
pointer yaml_config::Iterator< IterTraits >::operator-> ( ) const
inline

Definition at line 35 of file iterator.hpp.

◆ operator==()

template<typename IterTraits >
bool yaml_config::Iterator< IterTraits >::operator== ( const Iterator< IterTraits > &  other) const
inline

Definition at line 47 of file iterator.hpp.


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