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... | |
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 |
|
inline |
The name at the current index.
Definition at line 182 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 376 of file Enum.H.
References Foam::glTF::key().
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.