![]() |
|
This is a simple "iterator filter" that erases the type and traits of the container used by VdfIndexedData<T> to store its indices and data. More...
#include <indexedDataIterator.h>
Public Types | |
| using | BaseIterator = typename std::vector< IteratedType >::const_iterator |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = typename BaseIterator::value_type |
| using | reference = typename BaseIterator::reference |
| using | pointer = typename BaseIterator::pointer |
| using | difference_type = typename BaseIterator::difference_type |
Public Member Functions | |
| reference | operator* () const |
| pointer | operator-> () const |
| VdfIndexedDataIterator & | operator++ () |
| VdfIndexedDataIterator | operator++ (int) |
| bool | operator== (const VdfIndexedDataIterator &rhs) const |
| bool | operator!= (const VdfIndexedDataIterator &rhs) const |
Friends | |
| template<typename T > | |
| class | VdfIndexedData |
This is a simple "iterator filter" that erases the type and traits of the container used by VdfIndexedData<T> to store its indices and data.
It allows VdfIndexedData to supply a simple iterator with few guarantees or inferences, which client code can use with e.g. STL algorithms, while still preserving most of VdfIndexedData's ability to change container implementations without disrupting clients.
This models a const_iterator with forward traversal capability (only).
Definition at line 29 of file indexedDataIterator.h.
| using BaseIterator = typename std::vector<IteratedType>::const_iterator |
Definition at line 32 of file indexedDataIterator.h.
| using difference_type = typename BaseIterator::difference_type |
Definition at line 38 of file indexedDataIterator.h.
| using iterator_category = std::forward_iterator_tag |
Definition at line 34 of file indexedDataIterator.h.
| using pointer = typename BaseIterator::pointer |
Definition at line 37 of file indexedDataIterator.h.
| using reference = typename BaseIterator::reference |
Definition at line 36 of file indexedDataIterator.h.
| using value_type = typename BaseIterator::value_type |
Definition at line 35 of file indexedDataIterator.h.
|
inline |
Definition at line 62 of file indexedDataIterator.h.
|
inline |
Definition at line 44 of file indexedDataIterator.h.
|
inline |
Definition at line 47 of file indexedDataIterator.h.
|
inline |
Definition at line 52 of file indexedDataIterator.h.
|
inline |
Definition at line 45 of file indexedDataIterator.h.
|
inline |
Definition at line 58 of file indexedDataIterator.h.
|
friend |
Definition at line 69 of file indexedDataIterator.h.