CountedQueueBankingTopology constructor

CountedQueueBankingTopology({
  1. required int capacity,
  2. required int laneCount,
  3. required int bankCount,
  4. MemoryBankingPolicy policy = MemoryBankingPolicy.interleaved,
})

Creates a counted-queue bank topology.

Implementation

CountedQueueBankingTopology({
  required this.capacity,
  required this.laneCount,
  required this.bankCount,
  this.policy = MemoryBankingPolicy.interleaved,
}) {
  if (capacity < 1 || laneCount < 1) {
    throw ArgumentError('Capacity and lane count must be positive.');
  }
  if (bankCount < 1 || bankCount > capacity) {
    throw ArgumentError(
        'Bank count must be positive and at most the queue capacity.');
  }
}