#include <EnumIterator.h>
Public Types | |
using | iterator_category = std::bidirectional_iterator_tag |
using | value_type = EnumType |
using | difference_type = std::ptrdiff_t |
using | pointer = EnumType * |
using | reference = EnumType & |
Public Member Functions | |
EnumIteratorBase (EnumType e) | |
bool | operator== (const EnumIteratorBase &i) const |
bool | operator!= (const EnumIteratorBase &i) const |
EnumType | operator* () const |
Protected Types | |
typedef std::underlying_type< EnumType >::type | iterator_type |
Protected Attributes | |
iterator_type | current |
Detailed Description
class EnumIteratorBase< EnumType >
Shared functionality between forward and reverse enum iterators
This class is not very useful by itself, it contains code shared by EnumIterator and ReverseEnumIterator.
- See also
- EnumIterator, ReverseEnumIterator
Definition at line 23 of file EnumIterator.h.
Member Typedef Documentation
◆ difference_type
using EnumIteratorBase< EnumType >::difference_type = std::ptrdiff_t |
Definition at line 31 of file EnumIterator.h.
◆ iterator_category
using EnumIteratorBase< EnumType >::iterator_category = std::bidirectional_iterator_tag |
Definition at line 29 of file EnumIterator.h.
◆ iterator_type
|
protected |
Definition at line 26 of file EnumIterator.h.
◆ pointer
using EnumIteratorBase< EnumType >::pointer = EnumType * |
Definition at line 32 of file EnumIterator.h.
◆ reference
using EnumIteratorBase< EnumType >::reference = EnumType & |
Definition at line 33 of file EnumIterator.h.
◆ value_type
using EnumIteratorBase< EnumType >::value_type = EnumType |
Definition at line 30 of file EnumIterator.h.
Constructor & Destructor Documentation
◆ EnumIteratorBase()
|
inlineexplicit |
Definition at line 35 of file EnumIterator.h.
Member Function Documentation
◆ operator!=()
|
inline |
Definition at line 41 of file EnumIterator.h.
References EnumIteratorBase< EnumType >::current.
◆ operator*()
|
inline |
Definition at line 45 of file EnumIterator.h.
References EnumIteratorBase< EnumType >::current.
◆ operator==()
|
inline |
Definition at line 37 of file EnumIterator.h.
References EnumIteratorBase< EnumType >::current.
Member Data Documentation
◆ current
|
protected |
Definition at line 49 of file EnumIterator.h.
Referenced by EnumIteratorBase< EnumType >::operator!=(), EnumIteratorBase< EnumType >::operator*(), and EnumIteratorBase< EnumType >::operator==().
The documentation for this class was generated from the following file:
- src/base/EnumIterator.h