|
jaulib v1.4.1
Jau Support Library (C++, Java, ..)
|
Enumeration iterator, see enum_info. More...
#include <enum_util.hpp>
Public Types | |
| typedef enum_info_t::difference_type | difference_type |
| typedef enum_info< EnumType, Vargs... > | enum_info_t |
| typedef enum_info_t::iterator_base_t | iterator_type |
| enum_iterator to iterate over all enum values (const enum values) | |
| typedef enum_info_t::pointer | pointer |
| pointer to value_type | |
| typedef enum_info_t::reference | reference |
| reference to value_type | |
| typedef enum_info_t::size_type | size_type |
| typedef enum_info_t::value_type | value_type |
| enum value type, i.e. the enum type itself | |
Public Member Functions | |
| constexpr | enum_iterator (const enum_iterator &o) noexcept=default |
| C++ named requirements: LegacyIterator: CopyConstructible. | |
| constexpr | enum_iterator (enum_iterator &&o) noexcept=default |
| C++ named requirements: LegacyIterator: MoveConstructable. | |
| constexpr iterator_type | base () const noexcept |
| Returns a copy of the underlying storage iterator. | |
| constexpr int | compare (const enum_iterator &rhs) const noexcept |
| Returns signum or three-way comparison value. | |
| const enum_info_t & | description () const noexcept |
| constexpr difference_type | dist_begin () const noexcept |
| Returns the distance to_begin() using zero as first index. | |
| constexpr difference_type | dist_end () const noexcept |
| Returns the distance to_end() using zero as first index. | |
| constexpr bool | is_begin () const noexcept |
| Returns true, if this iterator points to begin(). | |
| constexpr bool | is_end () const noexcept |
| Returns true, if this iterator points to end(). | |
| constexpr value_type | operator* () const noexcept |
| Dereferencing iterator to value_type reference. | |
| constexpr enum_iterator | operator+ (difference_type rhs) const noexcept |
| Binary 'iterator + element_count'. | |
| constexpr enum_iterator & | operator++ () noexcept |
| Pre-increment; Well performing, return *this. | |
| constexpr enum_iterator | operator++ (int) noexcept |
| Post-increment. | |
| constexpr enum_iterator & | operator+= (difference_type i) noexcept |
| Addition-assignment of 'element_count'; Returns *this. | |
| constexpr difference_type | operator- (const enum_iterator &rhs) const noexcept |
| Binary 'iterator - iterator -> element_count'; Returns element_count of type difference_type. | |
| constexpr enum_iterator | operator- (difference_type rhs) const noexcept |
| Binary 'iterator - element_count'. | |
| constexpr enum_iterator & | operator-- () noexcept |
| Pre-decrement; Well performing, return *this. | |
| constexpr enum_iterator | operator-- (int) noexcept |
| Post-decrement. | |
| constexpr enum_iterator & | operator-= (difference_type i) noexcept |
| Subtraction-assignment of 'element_count'; Returns *this. | |
| constexpr const pointer | operator-> () const noexcept |
| Pointer to member access. | |
| std::strong_ordering | operator<=> (const enum_iterator &rhs) const noexcept |
| Three way std::strong_ordering comparison operator, C++20. | |
| constexpr enum_iterator & | operator= (const enum_iterator &o) noexcept=default |
| Assigns content of other mutable iterator to this one, if they are not identical. | |
| constexpr enum_iterator & | operator= (enum_iterator &&o) noexcept=default |
| Assigns identity of given mutable iterator, if they are not identical. | |
| constexpr bool | operator== (const enum_iterator &rhs) const noexcept |
Two way comparison operator, != is implicit, C++20. | |
| constexpr value_type | operator[] (difference_type i) const noexcept |
| Subscript of 'element_index', returning immutable value_type. | |
| void | swap (enum_iterator &o) noexcept |
| C++ named requirements: LegacyIterator: Swappable. | |
| constexpr enum_iterator & | to_begin () noexcept |
| This iterator is set to the first element, begin(). | |
| constexpr enum_iterator & | to_end () noexcept |
| This iterator is set to the last element, end(). | |
Friends | |
| class | enum_info< EnumType, Vargs... > |
Enumeration iterator, see enum_info.
Definition at line 356 of file enum_util.hpp.
| typedef enum_info<EnumType, Vargs...> jau::enums::enum_iterator< EnumType, Vargs >::enum_info_t |
Definition at line 358 of file enum_util.hpp.
| typedef enum_info_t::size_type jau::enums::enum_iterator< EnumType, Vargs >::size_type |
Definition at line 360 of file enum_util.hpp.
| typedef enum_info_t::difference_type jau::enums::enum_iterator< EnumType, Vargs >::difference_type |
Definition at line 361 of file enum_util.hpp.
| typedef enum_info_t::value_type jau::enums::enum_iterator< EnumType, Vargs >::value_type |
enum value type, i.e. the enum type itself
Definition at line 364 of file enum_util.hpp.
| typedef enum_info_t::pointer jau::enums::enum_iterator< EnumType, Vargs >::pointer |
pointer to value_type
Definition at line 367 of file enum_util.hpp.
| typedef enum_info_t::reference jau::enums::enum_iterator< EnumType, Vargs >::reference |
reference to value_type
Definition at line 370 of file enum_util.hpp.
| typedef enum_info_t::iterator_base_t jau::enums::enum_iterator< EnumType, Vargs >::iterator_type |
enum_iterator to iterate over all enum values (const enum values)
Definition at line 373 of file enum_util.hpp.
|
constexprdefaultnoexcept |
C++ named requirements: LegacyIterator: CopyConstructible.
|
constexprdefaultnoexcept |
C++ named requirements: LegacyIterator: MoveConstructable.
|
constexprdefaultnoexcept |
Assigns content of other mutable iterator to this one, if they are not identical.
C++ named requirements: LegacyIterator: CopyAssignable
| o | the new identity value to be copied into this iterator |
|
constexprdefaultnoexcept |
Assigns identity of given mutable iterator, if they are not identical.
C++ named requirements: LegacyIterator: MoveAssignable
| o | the new identity to be taken |
|
inlinenoexcept |
Definition at line 418 of file enum_util.hpp.
|
inlinenoexcept |
C++ named requirements: LegacyIterator: Swappable.
Definition at line 423 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Returns the distance to_end() using zero as first index.
A.k.a the remaining elements iterable.
Definition at line 431 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Returns true, if this iterator points to end().
Definition at line 436 of file enum_util.hpp.
|
inlineconstexprnoexcept |
This iterator is set to the last element, end().
Returns *this;
Definition at line 441 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Returns the distance to_begin() using zero as first index.
A.k.a the index from start.
Definition at line 447 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Returns true, if this iterator points to begin().
Definition at line 452 of file enum_util.hpp.
|
inlineconstexprnoexcept |
This iterator is set to the first element, begin().
Returns *this;
Definition at line 457 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Returns a copy of the underlying storage iterator.
Definition at line 463 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Returns signum or three-way comparison value.
0 if equal (both, store and iteratore), -1 if this->iterator_ < rhs_iter and 1 if this->iterator_ > rhs_iter (otherwise)
| rhs_store | right-hand side store |
| rhs_iter | right-hand side iterator |
Definition at line 477 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Two way comparison operator, != is implicit, C++20.
Definition at line 483 of file enum_util.hpp.
|
inlinenoexcept |
Three way std::strong_ordering comparison operator, C++20.
Definition at line 487 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Dereferencing iterator to value_type reference.
Definition at line 498 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Pointer to member access.
Definition at line 506 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Pre-increment; Well performing, return *this.
Definition at line 511 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Post-increment.
Definition at line 517 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Pre-decrement; Well performing, return *this.
Definition at line 523 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Post-decrement.
Definition at line 529 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Subscript of 'element_index', returning immutable value_type.
Definition at line 535 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Addition-assignment of 'element_count'; Returns *this.
Definition at line 539 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Binary 'iterator + element_count'.
Definition at line 543 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Subtraction-assignment of 'element_count'; Returns *this.
Definition at line 547 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Binary 'iterator - element_count'.
Definition at line 551 of file enum_util.hpp.
|
inlineconstexprnoexcept |
Binary 'iterator - iterator -> element_count'; Returns element_count of type difference_type.
Definition at line 557 of file enum_util.hpp.
|
friend |
Definition at line 377 of file enum_util.hpp.