#include <userver/formats/bson/iterator.hpp>
Iterator for BSON values.
Definition at line 24 of file iterator.hpp.
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | difference_type = ptrdiff_t |
using | value_type = std::remove_const_t<ValueType> |
using | reference = ValueType& |
using | pointer = ValueType* |
Public Member Functions | |
Iterator (const Iterator &) | |
Iterator (Iterator &&) noexcept | |
Iterator & | operator= (const Iterator &) |
Iterator & | operator= (Iterator &&) noexcept |
template<typename T = void> | |
std::string | GetName () const |
Returns name of currently selected document field. | |
uint32_t | GetIndex () const |
Returns index of currently selected array element. | |
Forward iterator requirements | |
Iterator | operator++ (int) |
Iterator & | operator++ () |
reference | operator* () const |
pointer | operator-> () const |
bool | operator== (const Iterator &) const |
bool | operator!= (const Iterator &) const |
using formats::bson::Iterator< ValueType, Direction >::difference_type = ptrdiff_t |
Definition at line 27 of file iterator.hpp.
using formats::bson::Iterator< ValueType, Direction >::iterator_category = std::forward_iterator_tag |
Definition at line 26 of file iterator.hpp.
using formats::bson::Iterator< ValueType, Direction >::pointer = ValueType* |
Definition at line 30 of file iterator.hpp.
using formats::bson::Iterator< ValueType, Direction >::reference = ValueType& |
Definition at line 29 of file iterator.hpp.
using formats::bson::Iterator< ValueType, Direction >::value_type = std::remove_const_t<ValueType> |
Definition at line 28 of file iterator.hpp.
uint32_t formats::bson::Iterator< ValueType, Direction >::GetIndex | ( | ) | const |
Returns index of currently selected array element.
TypeMismatchException | if iterated value is not an array |
|
inline |
Returns name of currently selected document field.
TypeMismatchException | if iterated value is not a document |
Definition at line 59 of file iterator.hpp.