OpenTTD Source  20241121-master-g67a0fccfad
CargoSpec::Iterator Struct Reference

Iterator to iterate all valid CargoSpec. More...

#include <cargotype.h>

Public Types

typedef CargoSpec value_type
 
typedef CargoSpecpointer
 
typedef CargoSpecreference
 
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
 
CargoSpecoperator* () const
 
Iteratoroperator++ ()
 

Private Member Functions

void ValidateIndex ()
 

Private Attributes

size_t index
 

Detailed Description

Iterator to iterate all valid CargoSpec.

Definition at line 152 of file cargotype.h.


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