|
jbson
C++11/1y BSON library
|
View on GitHub
Forward traversal iterator type for traversing basic_document and basic_array. More...
#include <document.hpp>
Inheritance diagram for jbson::detail::document_iter< Value, BaseIterator >:Public Types | |
| using | element_type = Value |
| Alias to Value. | |
Public Member Functions | |
| document_iter ()=default | |
| Default constructor. Results in an invalid iterator. | |
| document_iter (BaseIterator it1, BaseIterator it2) | |
Construct document_iter from pair of BaseIterators. More... | |
| template<class OtherValue , typename OtherIt > | |
| document_iter (const document_iter< OtherValue, OtherIt > &other, std::enable_if_t< std::is_convertible< OtherValue, element_type >::value &&std::is_convertible< OtherIt, BaseIterator >::value > *=nullptr) | |
| Copy constructor. More... | |
| element_type & | dereference () const |
| Dereferences currently held basic_element. More... | |
| template<typename OtherValue , typename OtherIterator > | |
| bool | equal (const document_iter< OtherValue, OtherIterator > &other) const |
| void | increment () |
Forward traversal iterator type for traversing basic_document and basic_array.
The current basic_element is constructed and cached on increment() or document_iter construction. This is required for iteration as the basic_element's size is not known in advance.
Definition at line 45 of file document.hpp.
|
inline |
Construct document_iter from pair of BaseIterators.
| it1 | iterator to first item of data. |
| it2 | iterator past the end of data. |
Definition at line 60 of file document.hpp.
|
inline |
Copy constructor.
Enables construction from document_iter with different, but compatible type signature.
Definition at line 72 of file document.hpp.
|
inline |
Dereferences currently held basic_element.
Asserts that currently cached element is valid in debug mode.
Definition at line 112 of file document.hpp.
1.8.6