OpenTTD Source 20261112-master-gbcbec5e63f
TileAreaWrapper< Titer, Tarea >::contains_visitor Struct Reference

Visitor to call the underlying tile area's contains method. More...

Public Member Functions

bool operator() (const auto &area)
 Test if the underlying tile area contains a tile.

Data Fields

TileIndex tile
 The tile to test.

Detailed Description

template<TileIterator Titer, typename... Tarea>
struct TileAreaWrapper< Titer, Tarea >::contains_visitor

Visitor to call the underlying tile area's contains method.

Definition at line 189 of file tilearea_wrapper.h.

Member Function Documentation

◆ operator()()

template<TileIterator Titer, typename... Tarea>
bool TileAreaWrapper< Titer, Tarea >::contains_visitor::operator() ( const auto & area)
inline

Test if the underlying tile area contains a tile.

Parameters
areaThe underlying tile area.
Returns
true iff the tile area contains the tile.

Definition at line 197 of file tilearea_wrapper.h.

References TileAreaWrapper< Titer, Tarea >::area.

Field Documentation

◆ tile

template<TileIterator Titer, typename... Tarea>
TileIndex TileAreaWrapper< Titer, Tarea >::contains_visitor::tile

The tile to test.

Definition at line 190 of file tilearea_wrapper.h.


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