|
tfel
|
an adaptator to random access iterator More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/General/StridedRandomAccessIterator.hxx>
Classes | |
| struct | proxy |
| a proxy class More... | |
Public Types | |
| using | traits = std::iterator_traits<iterator_base> |
| a simple alias | |
| using | value_type = typename traits::value_type |
| STL requirements https://www.sgi.com/tech/stl/trivial.html. | |
| using | reference = typename traits::reference |
| STL requirement. | |
| using | pointer = typename traits::pointer |
| STL requirement. | |
| using | iterator_category = typename traits::iterator_category |
| STL requirement. | |
| using | difference_type = typename traits::difference_type |
| STL requirement. | |
Public Member Functions | |
| StridedRandomAccessIterator (const iterator_base c, const difference_type s) | |
| constructor | |
| StridedRandomAccessIterator () | |
| default constructor | |
| StridedRandomAccessIterator (StridedRandomAccessIterator &&)=default | |
| move constructor | |
| StridedRandomAccessIterator (const StridedRandomAccessIterator &)=default | |
| copy constructor | |
| StridedRandomAccessIterator & | operator= (StridedRandomAccessIterator &&)=default |
| move assignement | |
| StridedRandomAccessIterator & | operator= (const StridedRandomAccessIterator &)=default |
| standard assignement | |
| auto | operator* () const |
| dereference operator | |
| auto | operator[] (const difference_type n) const |
| access operator | |
| StridedRandomAccessIterator | operator++ () |
| StridedRandomAccessIterator | operator++ (int) |
| StridedRandomAccessIterator | operator+ (const difference_type n) const |
| StridedRandomAccessIterator | operator- (const difference_type n) const |
| StridedRandomAccessIterator | operator-- () |
| StridedRandomAccessIterator | operator+= (const difference_type n) |
| bool | operator== (const StridedRandomAccessIterator &o) const |
| bool | operator!= (const StridedRandomAccessIterator &o) const |
| bool | operator<= (const StridedRandomAccessIterator &o) const |
| bool | operator< (const StridedRandomAccessIterator &o) const |
| bool | operator>= (const StridedRandomAccessIterator &o) const |
| bool | operator> (const StridedRandomAccessIterator &o) const |
| difference_type | operator- (const StridedRandomAccessIterator &s) const |
Additional Inherited Members | |
| Static Public Member Functions inherited from tfel::math::StridedRandomAccessIteratorBase | |
| static void | throwNullStrideException () |
| static void | throwUmatchedStrideException () |
an adaptator to random access iterator
| iterator_base |
| using tfel::math::StridedRandomAccessIterator< iterator_base >::value_type = typename traits::value_type |
STL requirements https://www.sgi.com/tech/stl/trivial.html.
The requirement for the return type of *x is specified as "convertible to T", rather than simply T, because it sometimes makes sense for an iterator to return some sort of proxy object instead of the object that the iterator conceptually points to. Proxy objects are implementation details rather than part of an interface (one use of them, for example, is to allow an iterator to behave differently depending on whether its value is being read or written), so the value type of an iterator that returns a proxy is still T.
|
inlineexplicit |
constructor
| [in] | c | current position |
| [in] | s | stride |