OpenTTD Source
20241108-master-g80f628063a
|
Iterator to iterate all valid CargoSpec. More...
#include <cargotype.h>
Public Types | |
typedef CargoSpec | value_type |
typedef CargoSpec * | pointer |
typedef CargoSpec & | reference |
typedef size_t | difference_type |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
Iterator (size_t index) | |
bool | operator== (const Iterator &other) const |
bool | operator!= (const Iterator &other) const |
CargoSpec * | operator* () const |
Iterator & | operator++ () |
Private Member Functions | |
void | ValidateIndex () |
Private Attributes | |
size_t | index |
Iterator to iterate all valid CargoSpec.
Definition at line 152 of file cargotype.h.