IAggregatePool.IItemsIterator

Base class for pool 'foreach' iterators. The constructor receives a slice of the items to be iterated over.

Note that the iterators pass the pool items as type T to the foreach delegate, not as type ItemType. This is because, when ref iterating over a pool of structs, we want the references to be to the structs in the pool themselves, not the pointer to the structs in the pool.

Constructors

this
this(Item[] iteration_items)

Constructor

Members

Functions

opApply
int opApply(int delegate(ref size_t i, ref T item) dg)

'foreach' iteration over items[start .. end], with index (0-based)

opApply
int opApply(int delegate(ref T item) dg)

'foreach' iteration over items[start .. end]

Variables

iteration_items
Item[] iteration_items;
Undocumented in source.

Meta