proxygen
|
#include <Iterators.h>
Public Types | |
using | value_type = V |
using | reference = value_type & |
using | pointer = value_type * |
using | difference_type = ssize_t |
using | iterator_category = Tag |
Public Member Functions | |
bool | operator== (D const &rhs) const |
bool | operator!= (D const &rhs) const |
template<class D2 > | |
std::enable_if< std::is_convertible< D, D2 >::value, bool >::type | operator== (D2 const &rhs) const |
template<class D2 > | |
bool | operator!= (D2 const &rhs) const |
V & | operator* () const |
V * | operator-> () const |
D & | operator++ () |
D | operator++ (int) |
D & | operator-- () |
D | operator-- (int) |
Private Member Functions | |
D & | asDerived () |
D const & | asDerivedConst () const |
Currently this only supports forward and bidirectional iteration. The derived class must must have definitions for these methods:
void increment(); void decrement(); // optional, to be used with bidirectional reference dereference() const; bool equal([appropriate iterator type] const& rhs) const;
These names are consistent with those used by the Boost iterator facade / adaptor classes to ease migration classes in this file.
Template parameters: D: the deriving class (CRTP) V: value type Tag: the iterator category, one of: std::forward_iterator_tag std::bidirectional_iterator_tag
Definition at line 72 of file Iterators.h.
using folly::detail::IteratorFacade< D, V, Tag >::difference_type = ssize_t |
Definition at line 77 of file Iterators.h.
using folly::detail::IteratorFacade< D, V, Tag >::iterator_category = Tag |
Definition at line 78 of file Iterators.h.
using folly::detail::IteratorFacade< D, V, Tag >::pointer = value_type* |
Definition at line 76 of file Iterators.h.
using folly::detail::IteratorFacade< D, V, Tag >::reference = value_type& |
Definition at line 75 of file Iterators.h.
using folly::detail::IteratorFacade< D, V, Tag >::value_type = V |
Definition at line 74 of file Iterators.h.
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 84 of file Iterators.h.
|
inline |
Definition at line 103 of file Iterators.h.
|
inline |
Definition at line 107 of file Iterators.h.
|
inline |
Definition at line 115 of file Iterators.h.
|
inline |
Definition at line 120 of file Iterators.h.
|
inline |
Definition at line 126 of file Iterators.h.
|
inline |
Definition at line 131 of file Iterators.h.
|
inline |
Definition at line 111 of file Iterators.h.
|
inline |
Definition at line 80 of file Iterators.h.
Referenced by folly::detail::IteratorFacade< dynamic::const_key_iterator, dynamic const , std::forward_iterator_tag >::operator!=().
|
inline |
Definition at line 98 of file Iterators.h.