|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
STL-compatible const iterator adapter for Aleph containers. More...
#include <ah-iterator.H>
Public Types | |
| using | T = typename SetType::Item_Type |
| using | Itor = typename SetType::Iterator |
| using | iterator_category = std::forward_iterator_tag |
| using | iterator_concept = std::forward_iterator_tag |
| using | difference_type = std::ptrdiff_t |
| using | pointer = const T * |
| using | reference = const T & |
| using | value_type = T |
Public Member Functions | |
| StlConstIterator () noexcept=default | |
| Default constructor creates an "end" iterator (no current element). | |
| StlConstIterator & | operator++ () |
| Pre-increment: advance to the next element. | |
| StlConstIterator | operator++ (int) |
| Post-increment: advance to the next element and return the old iterator. | |
| bool | operator== (const StlConstIterator &it) const |
| Equality compares positions when both iterators are valid; otherwise both must be in the end state. | |
| bool | operator!= (const StlConstIterator &it) const |
| Inequality. | |
| const T & | operator* () const |
| Dereference: return the current element. | |
| const T * | operator-> () const |
| Member access to the current element. | |
Static Public Member Functions | |
| static StlConstIterator | cbegin (const SetType &s) |
| Create a const iterator positioned at the first element of the container. | |
| static StlConstIterator | cend (const SetType &s) |
| Create a const end iterator for the container. | |
STL-compatible const iterator adapter for Aleph containers.
This adapter provides a read-only view over the underlying Aleph iterator.
| SetType | Aleph container type. |
Definition at line 161 of file ah-iterator.H.
| using StlConstIterator< SetType >::difference_type = std::ptrdiff_t |
Definition at line 168 of file ah-iterator.H.
| using StlConstIterator< SetType >::iterator_category = std::forward_iterator_tag |
Definition at line 165 of file ah-iterator.H.
| using StlConstIterator< SetType >::iterator_concept = std::forward_iterator_tag |
Definition at line 166 of file ah-iterator.H.
| using StlConstIterator< SetType >::Itor = typename SetType::Iterator |
Definition at line 164 of file ah-iterator.H.
| using StlConstIterator< SetType >::pointer = const T* |
Definition at line 170 of file ah-iterator.H.
| using StlConstIterator< SetType >::reference = const T& |
Definition at line 172 of file ah-iterator.H.
| using StlConstIterator< SetType >::T = typename SetType::Item_Type |
Definition at line 163 of file ah-iterator.H.
| using StlConstIterator< SetType >::value_type = T |
Definition at line 174 of file ah-iterator.H.
|
defaultnoexcept |
Default constructor creates an "end" iterator (no current element).
Referenced by StlConstIterator< SetType >::cbegin().
|
inlinestatic |
Create a const iterator positioned at the first element of the container.
Definition at line 228 of file ah-iterator.H.
References StlConstIterator< SetType >::StlConstIterator().
Referenced by StlAlephIterator< SetName >::begin(), and StlAlephIterator< SetName >::cbegin().
|
inlinestatic |
Create a const end iterator for the container.
Definition at line 234 of file ah-iterator.H.
Referenced by StlAlephIterator< SetName >::cend(), and StlAlephIterator< SetName >::end().
|
inline |
Inequality.
Definition at line 216 of file ah-iterator.H.
|
inline |
Dereference: return the current element.
Definition at line 222 of file ah-iterator.H.
|
inline |
Pre-increment: advance to the next element.
Definition at line 182 of file ah-iterator.H.
|
inline |
Post-increment: advance to the next element and return the old iterator.
Definition at line 189 of file ah-iterator.H.
|
inline |
Member access to the current element.
Definition at line 225 of file ah-iterator.H.
|
inline |
Equality compares positions when both iterators are valid; otherwise both must be in the end state.
Definition at line 198 of file ah-iterator.H.