IAggregatePool.SafeItemsIterator

Provides 'foreach' iteration over items[start .. end]. During iteration all methods of PoolCore may be called except limit_().

The iteration is actually over a copy of the items in the pool which are specified in the constructor. Thus the pool may be modified while iterating. However, the list of items iterated over is not updated to changes made by get(), clear() and recycle().

During iteration all Pool methods may be called except the limit setter. However, as indicated, the list of items iterated over is not updated to changes made by get(), recycle() and clear().

class IAggregatePool(T)
protected abstract
class SafeItemsIterator : IItemsIterator {}

Constructors

this
this(size_t start, size_t end)

Constructor

Destructor

~this
~this()

Destructor

Inherited Members

From IItemsIterator

iteration_items
Item[] iteration_items;
Undocumented in source.
opApply
int opApply(int delegate(ref T item) dg)

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

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

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

Meta