OpenTTD Source: CargoSpec::Iterator Struct Reference

OpenTTD Source 12.2

Public Types | Public Member Functions | Private Member Functions | Private Attributes
CargoSpec::Iterator Struct Reference

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

## Detailed Description

Iterator to iterate all valid CargoSpec.

Definition at line 130 of file cargotype.h.

The documentation for this struct was generated from the following file:

- src/cargotype.h