IAllocator
Description
- Derived from
- Extended by
-
AllocatorBase abstract
Base interface for classes that allocate contiguous slot ranges in a domain with one or more dimensions.
An allocator has a fixed number of logical slots C
, which is indicated by ICapacity.Capacity. Zero-based indices are used to refer to slots, their number range is [0..C[. The number of slots along the axis of the domain dimension S
is given by Size. The allocator slots are arranged in an N-dimensional square, so that C = S^N
holds true. An IAllocator object consumes memory proportionally to the actual number of active allocations, i.e. the number of calls to Allocate for which Release has not been called yet.