A const_iterator for iterating an Enum list. More...
#include <Enum.H>
Public Member Functions | |
| const_iterator (const Enum *eptr=nullptr, const label idx=0) noexcept | |
| Default construct, construct at given position. | |
| bool | good () const noexcept |
| True if iterator points to an entry. | |
| const word & | key () const |
| The name at the current index. | |
| EnumType | val () const |
| Enumeration value at the current index. | |
| operator bool () const noexcept | |
| True if iterator points to an entry. | |
| const word & | operator* () const |
| De-referencing returns the name (key). | |
| const_iterator & | operator++ () noexcept |
| Move to the next index. | |
| bool | operator== (const const_iterator &iter) const noexcept |
| bool | operator!= (const const_iterator &iter) const noexcept |
A const_iterator for iterating an Enum list.
|
inlineexplicitnoexcept |
Default construct, construct at given position.
Definition at line 156 of file EnumI.H.
References Enum< EnumType >::Enum(), and Foam::noexcept.
Referenced by operator!=(), and operator==().


|
inlinenoexcept |
True if iterator points to an entry.
Definition at line 183 of file EnumI.H.
References Foam::noexcept, and Enum< EnumType >::size().
Referenced by operator bool().


|
inline |
The name at the current index.
Definition at line 169 of file EnumI.H.
Referenced by Enum< EnumType >::find(), Enum< EnumType >::found(), Enum< EnumType >::get(), Enum< EnumType >::lookup(), Enum< EnumType >::lookupOrDefault(), Enum< EnumType >::operator()(), and operator*().

|
inline |
|
inlineexplicitnoexcept |
True if iterator points to an entry.
Definition at line 360 of file Enum.H.
References good(), and Foam::noexcept.

|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 199 of file EnumI.H.
References const_iterator().

|
inlinenoexcept |
Definition at line 209 of file EnumI.H.
References const_iterator().
