Scala Library
|
|
abstract
class
PriorityQueueProxy[A](implicit
ord : Ordering[A])
extends
PriorityQueue[A] with
ProxyOrdered[T]
class.Values and Variables inherited from ResizableArray | |
array, size0 |
Method Summary | |
override def
|
++=
(it : Iterator[A]) : PriorityQueueProxy[A]
Adds all elements provided by an iterator into the priority queue.
|
def
|
++=
(iter : Iterable[A]) : PriorityQueueProxy[A]
Adds all elements provided by an
Iterable object
into the priority queue. |
override def
|
+=
(elem : A) : PriorityQueueProxy[A]
Inserts a single element into the priority queue.
|
override def
|
clear
: Unit
Removes all elements from the queue. After this operation is completed,
the queue will be empty.
|
override def
|
clone
: PriorityQueue[A]
This method clones the priority queue.
|
override def
|
dequeue
: A
Returns the element with the highest priority in the queue,
and removes this element from the queue.
|
override def
|
enqueue
(elems : A*) : Unit
Adds all elements to the queue.
|
override def
|
isEmpty
: Boolean
Checks if the queue is empty.
|
override def
|
iterator
: Iterator[A]
Creates a new iterator over all elements contained in this
object.
|
override def
|
length
: Int
Returns the length of this priority queue.
|
override def
|
max
: A
Returns the element with the highest priority in the queue,
or throws an error if there is no element contained in the queue.
|
abstract def
|
self : PriorityQueue[A] |
override def
|
toQueue
: Queue[A]
Returns a regular queue containing the same elements.
|
Methods inherited from Proxy | |
hashCode, equals, toString |
Methods inherited from PriorityQueue | |
repr, foreach, fixUp, fixDown, +, +, ++, ++, toList |
Methods inherited from Growable | |
+=, ++= |
Methods inherited from ResizableArray | |
companion, initialSize, apply, update, copyToArray, reduceToSize, ensureSize, swap, copy |
Methods inherited from IndexedSeqLike | |
thisCollection, toCollection, view, view |
Methods inherited from IndexedSeqLike | |
forall, exists, find, foldLeft, foldRight, reduceLeft, reduceRight, zip, zipWithIndex, slice, head, tail, last, init, take, drop, takeRight, dropRight, splitAt, takeWhile, dropWhile, span, sameElements, lengthCompare, segmentLength, indexWhere, lastIndexWhere, reverse, reverseIterator, startsWith, endsWith |
Methods inherited from SeqLike | |
size, isDefinedAt, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reverseMap, reversedElements, startsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, removeDuplicates, patch, updated, +:, :+, padTo, sortWith, sortWith, sortBy, toSeq, indices, findLastIndexOf, equalsWith, containsSlice, projection |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from IterableLike | |
elements, toIterable, zipAll, toStream, canEqual, first, firstOption |
Methods inherited from GenericTraversableTemplate | |
newBuilder, genericBuilder, unzip, flatten, transpose |
Methods inherited from TraversableLike | |
nonEmpty, hasDefiniteSize, ++, ++, map, flatMap, filter, filterNot, partialMap, remove, partition, groupBy, count, /:, :\, reduceLeftOption, reduceRightOption, sum, product, min, max, headOption, lastOption, copyToBuffer, copyToArray, toArray, toIndexedSeq, toSet, mkString, mkString, mkString, addString, addString, addString, stringPrefix, withFilter |
Methods inherited from AnyRef | |
getClass, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
abstract
def
self : PriorityQueue[A]
override
def
length : Int
override
def
isEmpty : Boolean
override
def
+=(elem : A) : PriorityQueueProxy[A]
elem -
the element to insert
def
++=(iter : Iterable[A]) : PriorityQueueProxy[A]
Iterable
object
into the priority queue.iter -
an iterable objectoverride
def
++=(it : Iterator[A]) : PriorityQueueProxy[A]
it -
an iteratorelems -
the elements to add.override
def
dequeue : A
override
def
max : A
override
def
clear : Unit
override
def
clone : PriorityQueue[A]
Scala Library
|
|