OpenTTD Source 20241224-master-gee860a5c8e
|
Iterator to iterate all valid T of a pool. More...
#include <pool_type.hpp>
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef T & | reference |
typedef size_t | difference_type |
typedef std::forward_iterator_tag | iterator_category |
Public Member Functions | |
PoolIteratorFiltered (size_t index, F filter) | |
bool | operator== (const PoolIteratorFiltered &other) const |
bool | operator!= (const PoolIteratorFiltered &other) const |
T * | operator* () const |
PoolIteratorFiltered & | operator++ () |
Private Member Functions | |
void | ValidateIndex () |
Private Attributes | |
size_t | index |
F | filter |
Iterator to iterate all valid T of a pool.
T | Type of the class/struct that is going to be iterated |
Definition at line 191 of file pool_type.hpp.
typedef size_t Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolIteratorFiltered< T, F >::difference_type |
Definition at line 195 of file pool_type.hpp.
typedef std::forward_iterator_tag Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolIteratorFiltered< T, F >::iterator_category |
Definition at line 196 of file pool_type.hpp.
typedef T* Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolIteratorFiltered< T, F >::pointer |
Definition at line 193 of file pool_type.hpp.
typedef T& Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolIteratorFiltered< T, F >::reference |
Definition at line 194 of file pool_type.hpp.
typedef T Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolIteratorFiltered< T, F >::value_type |
Definition at line 192 of file pool_type.hpp.
|
inlineexplicit |
Definition at line 198 of file pool_type.hpp.
|
inline |
Definition at line 204 of file pool_type.hpp.
|
inline |
Definition at line 205 of file pool_type.hpp.
|
inline |
Definition at line 206 of file pool_type.hpp.
|
inline |
Definition at line 203 of file pool_type.hpp.
|
inlineprivate |
Definition at line 211 of file pool_type.hpp.
|
private |
Definition at line 210 of file pool_type.hpp.
|
private |
Definition at line 209 of file pool_type.hpp.