You are here

public function FastPriorityQueue::valid in Zircon Profile 8.0

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

Check if the current iterator is valid

Return value

boolean

2 calls to FastPriorityQueue::valid()
FastPriorityQueue::extract in vendor/zendframework/zend-stdlib/src/FastPriorityQueue.php
Extract an element in the queue according to the priority and the order of insertion
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 226

Class

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

Namespace

Zend\Stdlib

Code

public function valid() {
  return isset($this->values[$this->maxPriority]);
}