You are here

public function FastPriorityQueue::rewind in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php \Zend\Stdlib\FastPriorityQueue::rewind()

Rewind the current iterator

1 call to FastPriorityQueue::rewind()
FastPriorityQueue::remove in vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php
Remove an item from the queue

File

vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php, line 234

Class

FastPriorityQueue
This is an efficient implementation of an integer priority queue in PHP

Namespace

Zend\Stdlib

Code

public function rewind() {
  $this->subPriorities = $this->priorities;
  $this->maxPriority = empty($this->priorities) ? 0 : max($this->priorities);
  $this->index = 0;
  $this->subIndex = 0;
}