Templated implementation of std::iterator_traits. Will be exposed by derived class's definitions LocalIterator and ConstLocalIterator.
As the name of the class indicates, this iterator satisfies the C++ standard library concept ForwardIterator .
| TConstOrMutable | A constant or mutable version of template parameter T. |
Definition at line 428 of file hashtablebase.inl.
Public Method Index: | |
| TLocalIterator () | |
| Default constructor. | |
| TLocalIterator (const TLocalIterator &other)=default | |
| template<typename TMutable> requires std::same_as<TMutable, TLocalIterator<T>> | |
| TLocalIterator (const TMutable &mutableIt) | |
| TLocalIterator (uinteger pBucketIdx, Element *pElement) | |
| const TKey & | Key () const |
| TMapped & | Mapped () const |
| bool | operator!= (TLocalIterator other) const |
| TConstOrMutable & | operator* () const |
| TLocalIterator & | operator++ () |
| TLocalIterator | operator++ (int) |
| TConstOrMutable * | operator-> () const |
| TLocalIterator & | operator= (const TLocalIterator &other)=default |
| bool | operator== (TLocalIterator other) const |
| TConstOrMutable & | Value () const |
Protected Field Index: | |
| uinteger | bucketIdx |
| The index of the bucket that this iterator works on. | |
| Element * | element |
| The pointer to the actual element. | |
Private Type Index: | |
| using | difference_type = integer |
Implementation of std::iterator_traits. | |
| using | iterator_category = std::forward_iterator_tag |
Implementation of std::iterator_traits. | |
| using | pointer = TConstOrMutable* |
Implementation of std::iterator_traits. | |
| using | reference = TConstOrMutable& |
Implementation of std::iterator_traits. | |
| using | value_type = TConstOrMutable |
Implementation of std::iterator_traits. | |
|
private |
Implementation of std::iterator_traits.
Definition at line 437 of file hashtablebase.inl.
|
private |
Implementation of std::iterator_traits.
Definition at line 435 of file hashtablebase.inl.
|
private |
Implementation of std::iterator_traits.
Definition at line 438 of file hashtablebase.inl.
|
private |
Implementation of std::iterator_traits.
Definition at line 439 of file hashtablebase.inl.
|
private |
Implementation of std::iterator_traits.
Definition at line 436 of file hashtablebase.inl.
|
protected |
The index of the bucket that this iterator works on.
Definition at line 446 of file hashtablebase.inl.
|
protected |
The pointer to the actual element.
Definition at line 443 of file hashtablebase.inl.
|
inline |
Default constructor.
Definition at line 450 of file hashtablebase.inl.
|
default |
Copy constructor (default).
| other | The iterator to assign from. |
|
inline |
Copy constructor accepting a mutable iterator. Available only for the constant version of this iterator.
| TMutable | The type of this constructor's argument. |
| mutableIt | Mutable iterator to copy from. |
Definition at line 463 of file hashtablebase.inl.
|
inlineexplicit |
Constructor.
| pBucketIdx | Index of the bucket this iterator works on. |
| pElement | Pointer to current element. |
Definition at line 470 of file hashtablebase.inl.
|
inline |
Retrieves the key-portion of the stored object that this iterator references.
Definition at line 546 of file hashtablebase.inl.
|
inline |
Retrieves the stored object that this iterator references.
This method is an alias to operator*
Definition at line 555 of file hashtablebase.inl.
|
inline |
Comparison operator.
| other | The iterator to compare ourselves to. |
true if this and given iterator are not equal, false otherwise. Definition at line 513 of file hashtablebase.inl.
|
inline |
Retrieves the stored object that this iterator references.
Definition at line 522 of file hashtablebase.inl.
|
inline |
Prefix increment operator.
Definition at line 484 of file hashtablebase.inl.
|
inline |
Postfix increment operator.
Definition at line 493 of file hashtablebase.inl.
|
inline |
Retrieves a pointer to the stored object that this iterator references.
Definition at line 530 of file hashtablebase.inl.
|
default |
Copy assignment (default).
| other | The iterator to assign from. |
|
inline |
Comparison operator.
| other | The iterator to compare ourselves to. |
true if this and the given iterator are pointing to the same element, false otherwise. Definition at line 504 of file hashtablebase.inl.
|
inline |
Retrieves the stored object that this iterator references.
Definition at line 538 of file hashtablebase.inl.