|
OpenTTD Source 20260614-master-g1baea6b0fb
|
Iterate a range of enum values. More...
#include <enum_type.hpp>
Data Structures | |
| class | Iterator |
| Forward iterator. More... | |
Public Member Functions | |
| constexpr | EnumRange (Tenum first, Tenum last) |
| Construct an EnumRange from first to last. | |
| constexpr | EnumRange (Tenum last) |
| Construct an EnumRange from default to last. | |
| constexpr Iterator | begin () const |
| Get the begin iterator for this range. | |
| constexpr Iterator | end () const |
| Get the end iterator for this range. | |
Private Attributes | |
| Tenum | first |
| The first (inclusive) value of the range. | |
| Tenum | last |
| The last (exclusive) value of the range. | |
Iterate a range of enum values.
| Tenum | The enum type. |
Definition at line 209 of file enum_type.hpp.
|
inlineconstexpr |
Construct an EnumRange from first to last.
Definition at line 219 of file enum_type.hpp.
Referenced by EnumRange().
|
inlineconstexpr |
Construct an EnumRange from default to last.
| last | The last value. |
Definition at line 225 of file enum_type.hpp.
References EnumRange(), and last.
Get the begin iterator for this range.
Definition at line 277 of file enum_type.hpp.
References first.
Get the end iterator for this range.
Definition at line 283 of file enum_type.hpp.
References last.
|
private |
The first (inclusive) value of the range.
Definition at line 211 of file enum_type.hpp.
Referenced by begin(), and EnumRange().
|
private |
The last (exclusive) value of the range.
Definition at line 212 of file enum_type.hpp.
Referenced by end(), EnumRange(), and EnumRange().