OpenTTD Source: VehiclesOnTile Class Reference

OpenTTD Source 15.3

Data Structures | Public Member Functions | Private Attributes
VehiclesOnTile Class Reference

Iterate over all vehicles on a tile. More...

`#include <vehicle_func.h>`

## Data Structures
class | Iterator
| Forward iterator. More...

## Public Member Functions
| VehiclesOnTile (TileIndex tile)
Iterator | begin () const
std::default_sentinel_t | end () const

## Private Attributes
Iterator | start

## Detailed Description

Iterate over all vehicles on a tile.

Warning
  The order is non-deterministic. You have to make sure, that your processing is not order dependant.

Definition at line 53 of file vehicle_func.h.

## Constructor & Destructor Documentation

## ◆ VehiclesOnTile()

VehiclesOnTile::VehiclesOnTile | ( | TileIndex | tile | ) |
| inlineexplicit

Definition at line 94 of file vehicle_func.h.

## Member Function Documentation

## ◆ begin()

Iterator VehiclesOnTile::begin | ( |  | ) | const
| inline

Definition at line 95 of file vehicle_func.h.

## ◆ end()

std::default_sentinel_t VehiclesOnTile::end | ( |  | ) | const
| inline

Definition at line 96 of file vehicle_func.h.

## Field Documentation

## ◆ start

Iterator VehiclesOnTile::start
| private

Definition at line 98 of file vehicle_func.h.

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

- src/vehicle_func.h