|
OpenTTD Source 20261112-master-gbcbec5e63f
|
#include <tilearea_wrapper.h>
Data Structures | |
| struct | begin_visitor |
| Visitor to call the underlying tile area's begin method. More... | |
| struct | contains_visitor |
| Visitor to call the underlying tile area's contains method. More... | |
Public Types | |
| using | iterator = Titer |
| The iterator type. | |
Public Member Functions | |
| template<typename T> | |
| TileAreaWrapper (const T &area) | |
| Construct a new tile area wrapper. | |
| template<typename T> | |
| TileAreaWrapper (T &&area) | |
| Construct a new tile area wrapper. | |
| iterator | begin () const |
| Returns an iterator to the start of the tile area. | |
| std::default_sentinel_t | end () const |
| Returns an iterator to the end of the tile area. | |
| bool | Contains (TileIndex tile) const |
| Test if a tile is part of the tile area. | |
Private Attributes | |
| std::variant< Tarea... > | area |
| The underlying tile area. | |
Tile area wrapper.
| Titer | Tile iterator types this wrapper supports. |
| Tarea | Tile area types this wrapper supports. |
Definition at line 122 of file tilearea_wrapper.h.
| using TileAreaWrapper< Titer, Tarea >::iterator = Titer |
The iterator type.
Definition at line 124 of file tilearea_wrapper.h.
|
inline |
Construct a new tile area wrapper.
| area | The underlying tile area. |
Definition at line 131 of file tilearea_wrapper.h.
|
inline |
Construct a new tile area wrapper.
| area | The underlying tile area. |
Definition at line 140 of file tilearea_wrapper.h.
|
inline |
Returns an iterator to the start of the tile area.
Definition at line 148 of file tilearea_wrapper.h.
|
inline |
Test if a tile is part of the tile area.
| tile | Tile to check. |
true iff the tile is in this area. Definition at line 167 of file tilearea_wrapper.h.
|
inline |
Returns an iterator to the end of the tile area.
Definition at line 157 of file tilearea_wrapper.h.
|
private |
The underlying tile area.
Definition at line 173 of file tilearea_wrapper.h.
Referenced by TileAreaWrapper< Titer, Tarea >::begin_visitor::operator()(), and TileAreaWrapper< Titer, Tarea >::contains_visitor::operator()().