10#ifndef TILEAREA_AIRPORT_HPP
11#define TILEAREA_AIRPORT_HPP
35 if (*this->iter !=
INVALID_TILE && !
st->TileBelongsToAirport(*this->iter)) ++this->iter;
45 return this->st == other.
st && this->iter == other.
iter;
74 }
while (*this->iter !=
INVALID_TILE && !
st->TileBelongsToAirport(*this->iter));
OrthogonalTileArea::iterator iter
The underlying tile area iterator.
void reference
reference iterator trait
AirportTileIterator & operator++()
Increment the iterator and set it to the next position.
bool operator==(const std::default_sentinel_t &) const
Compare with end sentinel.
void pointer
pointer iterator trait
const Station * st
The station the airport is a part of.
AirportTileIterator(const Station *st)
Construct the iterator.
bool operator==(const AirportTileIterator &other) const
Compare with other iterator.
std::ptrdiff_t difference_type
difference_type iterator trait
std::forward_iterator_tag iterator_category
iterator_category iterator trait
TileIndex operator*() const
Get the current tile.
TileIndex value_type
value_type iterator trait
Iterator to iterate over a tile area (rectangle) of the map.
Base classes/functions for stations.
StrongType::Typedef< uint32_t, struct TileIndexTag, StrongType::Compare, StrongType::Integer, StrongType::Compatible< int32_t >, StrongType::Compatible< int64_t > > TileIndex
The index/ID of a Tile.
constexpr TileIndex INVALID_TILE
The very nice invalid tile marker.
Type for storing and iterating orthogonal tile areas.