A const_iterator for iterating an Enum list. More...
Public Member Functions | |
const_iterator (const Enum *eptr=nullptr, const label idx=0) noexcept | |
Default construct, construct at given position. More... | |
bool | good () const noexcept |
True if iterator points to an entry. More... | |
const word & | key () const |
The name at the current index. More... | |
EnumType | val () const |
Enumeration value at the current index. More... | |
const word & | operator* () const |
De-referencing returns the name (key) More... | |
const_iterator & | operator++ () noexcept |
Move to the next index. More... | |
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 |
|
inlinenoexcept |
True if iterator points to an entry.
Definition at line 183 of file EnumI.H.
References Enum< EnumType >::size().
|
inline |
The name at the current index.
Definition at line 169 of file EnumI.H.
References Enum< EnumType >::names().
|
inline |
|
inline |
De-referencing returns the name (key)
This is similar to HashSet (not HashTable!) and allows convenient output and traversing of the names
Definition at line 370 of file Enum.H.
References Foam::glTF::key().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |