#include <MappedContainer.h>
Public Types | |
Traits | |
using | value_type = std::remove_cv_t< typename Container_t::value_type > |
using | difference_type = typename Container_t::difference_type |
using | size_type = typename Container_t::size_type |
using | reference = Reference_t |
using | pointer = decltype(&std::declval< reference >()) |
using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
IteratorBase ()=default | |
Constructor: an invalid iterator. More... | |
IteratorBase (Container_t &cont, MappingIndex_t index) | |
Constructor: iterator pointing to element index of cont . More... | |
IteratorBase (Iterator_t const &)=default | |
Copy constructor. More... | |
template<typename OC , typename OR > | |
IteratorBase (IteratorBase< OC, OR > const &from) | |
Copy constructor: from a different container type. More... | |
Iterator_t & | operator= (Iterator_t const &)=default |
Copy assignment. More... | |
template<typename OC , typename OR > | |
Iterator_t & | operator= (IteratorBase< OC, OR > const &from) |
Assignment from a different container type. More... | |
Dereferencing | |
Returns the mapped item the iterator currently points to. | |
reference | operator* () const |
reference | operator-> () const |
Returns a member of the mapped item the iterator currently points to. More... | |
reference | operator[] (difference_type n) const |
Transformation | |
Increments this iterator and returns it incremented. | |
Iterator_t & | operator++ () |
Iterator_t | operator++ (int) |
Increments this iterator and returns its old value. More... | |
Iterator_t & | operator-- () |
Decrements this iterator and returns it decremented. More... | |
Iterator_t | operator-- (int) |
Decrements this iterator and returns its old value. More... | |
Iterator_t & | operator+= (difference_type n) |
Increments this iterator by n steps and returns it incremented. More... | |
Iterator_t & | operator-= (difference_type n) |
Decrements this iterator by n steps and returns it decremented. More... | |
Iterator_t | operator+ (difference_type n) const |
Returns an iterator pointing n steps ahead of this one. More... | |
Iterator_t | operator- (difference_type n) const |
Returns an iterator pointing n steps behind this one. More... | |
difference_type | operator- (Iterator_t &other) const |
Returns the number of steps this iterator is ahead of other . More... | |
Comparisons | |
Returns whether this iterator is equal to | |
template<typename OC , typename OR > | |
bool | operator== (IteratorBase< OC, OR > const &other) const |
template<typename OC , typename OR > | |
bool | operator!= (IteratorBase< OC, OR > const &other) const |
Returns whether this iterator is not equal to other . More... | |
template<typename OC , typename OR > | |
bool | operator<= (IteratorBase< OC, OR > const &other) const |
Returns whether this iterator is behind of or equal to other . More... | |
template<typename OC , typename OR > | |
bool | operator< (IteratorBase< OC, OR > const &other) const |
Returns whether this iterator is strictly behind of other . More... | |
template<typename OC , typename OR > | |
bool | operator>= (IteratorBase< OC, OR > const &other) const |
Returns whether this iterator is ahead of or equal to other . More... | |
template<typename OC , typename OR > | |
bool | operator> (IteratorBase< OC, OR > const &other) const |
Returns whether this iterator is strictly ahead of other . More... | |
Private Types | |
using | Container_t = Container |
using | Reference_t = Reference |
using | Iterator_t = IteratorBase< Container_t, Reference_t > |
This type. More... | |
Private Attributes | |
Container_t * | fCont = nullptr |
Pointer to the container. More... | |
MappingIndex_t | fIndex = InvalidIndex |
Current index in container. More... | |
Definition at line 148 of file MappedContainer.h.
|
private |
Definition at line 550 of file MappedContainer.h.
using util::MappedContainer< Cont, Mapping >::IteratorBase< Container, Reference >::difference_type = typename Container_t::difference_type |
Definition at line 566 of file MappedContainer.h.
using util::MappedContainer< Cont, Mapping >::IteratorBase< Container, Reference >::iterator_category = std::input_iterator_tag |
Definition at line 570 of file MappedContainer.h.
|
private |
This type.
Definition at line 554 of file MappedContainer.h.
using util::MappedContainer< Cont, Mapping >::IteratorBase< Container, Reference >::pointer = decltype(&std::declval<reference>()) |
Definition at line 569 of file MappedContainer.h.
using util::MappedContainer< Cont, Mapping >::IteratorBase< Container, Reference >::reference = Reference_t |
Definition at line 568 of file MappedContainer.h.
|
private |
Definition at line 551 of file MappedContainer.h.
using util::MappedContainer< Cont, Mapping >::IteratorBase< Container, Reference >::size_type = typename Container_t::size_type |
Definition at line 567 of file MappedContainer.h.
using util::MappedContainer< Cont, Mapping >::IteratorBase< Container, Reference >::value_type = std::remove_cv_t<typename Container_t::value_type> |
Definition at line 565 of file MappedContainer.h.
|
default |
Constructor: an invalid iterator.
|
inline |
Constructor: iterator pointing to element index
of cont
.
Definition at line 580 of file MappedContainer.h.
|
default |
Copy constructor.
|
inline |
Copy constructor: from a different container type.
Definition at line 589 of file MappedContainer.h.
|
inline |
Returns whether this iterator is not equal to other
.
Definition at line 667 of file MappedContainer.h.
|
inline |
Definition at line 606 of file MappedContainer.h.
|
inline |
Returns an iterator pointing n
steps ahead of this one.
Definition at line 642 of file MappedContainer.h.
|
inline |
Definition at line 624 of file MappedContainer.h.
|
inline |
Increments this iterator and returns its old value.
Definition at line 627 of file MappedContainer.h.
|
inline |
Increments this iterator by n
steps and returns it incremented.
Definition at line 636 of file MappedContainer.h.
|
inline |
Returns an iterator pointing n
steps behind this one.
Definition at line 646 of file MappedContainer.h.
|
inline |
Returns the number of steps this iterator is ahead of other
.
Definition at line 650 of file MappedContainer.h.
|
inline |
Decrements this iterator and returns it decremented.
Definition at line 630 of file MappedContainer.h.
|
inline |
Decrements this iterator and returns its old value.
Definition at line 633 of file MappedContainer.h.
|
inline |
Decrements this iterator by n
steps and returns it decremented.
Definition at line 639 of file MappedContainer.h.
|
inline |
Returns a member of the mapped item the iterator currently points to.
Definition at line 609 of file MappedContainer.h.
|
inline |
Returns whether this iterator is strictly behind of other
.
Definition at line 677 of file MappedContainer.h.
|
inline |
Returns whether this iterator is behind of or equal to other
.
Definition at line 672 of file MappedContainer.h.
|
default |
Copy assignment.
|
inline |
Assignment from a different container type.
Definition at line 598 of file MappedContainer.h.
|
inline |
Definition at line 662 of file MappedContainer.h.
|
inline |
Returns whether this iterator is strictly ahead of other
.
Definition at line 687 of file MappedContainer.h.
|
inline |
Returns whether this iterator is ahead of or equal to other
.
Definition at line 682 of file MappedContainer.h.
|
inline |
Returns the mapped item n
steps ahead of what the iterator currentlt points to.
Definition at line 613 of file MappedContainer.h.
|
private |
Pointer to the container.
Definition at line 556 of file MappedContainer.h.
|
private |
Current index in container.
Definition at line 557 of file MappedContainer.h.