A random-access, integer-like, input iterator for integral values. More...
#include <IndexIterator.H>
Public Types | |
| typedef std::random_access_iterator_tag | iterator_category |
| typedef IntType | value_type |
| typedef IntType | difference_type |
| typedef const IntType * | pointer |
| typedef IntType | reference |
Public Member Functions | |
| constexpr | IndexIterator () noexcept |
| Default construct as zero. | |
| constexpr | IndexIterator (value_type val) noexcept |
| Construct with specified value. | |
| constexpr value_type | operator* () const noexcept |
| Return the value. | |
| constexpr value_type | operator[] (value_type n) const noexcept |
| Offset dereference operator. | |
| IndexIterator & | operator++ () noexcept |
| Prefix increment. | |
| IndexIterator | operator++ (int) noexcept |
| Postfix increment. | |
| IndexIterator & | operator-- () noexcept |
| Prefix decrement. | |
| IndexIterator | operator-- (int) noexcept |
| Postfix decrement. | |
| IndexIterator & | operator+= (value_type n) noexcept |
| Arbitrary increment. | |
| IndexIterator & | operator-= (value_type n) noexcept |
| Arbitrary decrement. | |
| constexpr IndexIterator | operator+ (value_type n) const noexcept |
| Return iterator with offset. | |
| IndexIterator | operator- (value_type n) const noexcept |
| Return iterator with offset. | |
| constexpr value_type | operator- (const IndexIterator &iter) const noexcept |
| Difference operator. | |
| constexpr bool | operator== (const IndexIterator &iter) const noexcept |
| Test for equality of values. | |
| constexpr bool | operator< (const IndexIterator &iter) const noexcept |
| Compare less-than. | |
| constexpr bool | operator!= (const IndexIterator &iter) const noexcept |
| constexpr bool | operator<= (const IndexIterator &iter) const noexcept |
| constexpr bool | operator> (const IndexIterator &iter) const noexcept |
| constexpr bool | operator>= (const IndexIterator &iter) const noexcept |
A random-access, integer-like, input iterator for integral values.
operator+(value_type, iterator) is defined since this provokes misleading resolution errors Definition at line 58 of file IndexIterator.H.
| typedef std::random_access_iterator_tag iterator_category |
Definition at line 72 of file IndexIterator.H.
| typedef IntType value_type |
Definition at line 73 of file IndexIterator.H.
| typedef IntType difference_type |
Definition at line 74 of file IndexIterator.H.
| typedef const IntType* pointer |
Definition at line 75 of file IndexIterator.H.
| typedef IntType reference |
Definition at line 76 of file IndexIterator.H.
|
inlineconstexprnoexcept |
Default construct as zero.
Definition at line 84 of file IndexIterator.H.
References Foam::noexcept.
Referenced by operator!=(), operator++(), operator++(), operator+=(), operator-(), operator--(), operator--(), operator-=(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

|
inlineconstexprnoexcept |
Construct with specified value.
Definition at line 89 of file IndexIterator.H.
References Foam::noexcept.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |
Prefix increment.
Definition at line 110 of file IndexIterator.H.
References IndexIterator(), and Foam::noexcept.

|
inlinenoexcept |
Postfix increment.
Definition at line 119 of file IndexIterator.H.
References IndexIterator().

|
inlinenoexcept |
Prefix decrement.
Definition at line 129 of file IndexIterator.H.
References IndexIterator(), and Foam::noexcept.

|
inlinenoexcept |
Postfix decrement.
Definition at line 138 of file IndexIterator.H.
References IndexIterator().

|
inlinenoexcept |
Arbitrary increment.
Definition at line 148 of file IndexIterator.H.
References IndexIterator(), and n.

|
inlinenoexcept |
Arbitrary decrement.
Definition at line 157 of file IndexIterator.H.
References IndexIterator(), and n.

|
inlineconstexprnoexcept |
|
inlinenoexcept |
|
inlineconstexprnoexcept |
Difference operator.
Definition at line 179 of file IndexIterator.H.
References IndexIterator().

|
inlineconstexprnoexcept |
Test for equality of values.
Definition at line 191 of file IndexIterator.H.
References IndexIterator().

|
inlineconstexprnoexcept |
Compare less-than.
Definition at line 199 of file IndexIterator.H.
References IndexIterator().

|
inlineconstexprnoexcept |
Definition at line 209 of file IndexIterator.H.
References IndexIterator().

|
inlineconstexprnoexcept |
Definition at line 214 of file IndexIterator.H.
References IndexIterator().

|
inlineconstexprnoexcept |
Definition at line 221 of file IndexIterator.H.
References IndexIterator().

|
inlineconstexprnoexcept |
Definition at line 227 of file IndexIterator.H.
References IndexIterator().
