in scala.collection.mutable
class QueueProxy

mixin abstract `class` QueueProxy [ A ]
  `extends` scala.collection.mutable.Queue[A]
  `with` scala.SeqProxy[A]
  `with` scala.ScalaObject

  `Queue` objects implement data structures that allow to insert and retrieve elements in a first-in-first-out (FIFO) manner.

author:
  Matthias Zenger
version:
  1.1, 03/05/2004

Def Summary
`override` | `def` ++= ( it : scala.Iterator[A] ) : scala.Unit Adds all elements provided by an iterator at the end of the queue. The elements are prepended in the order they are given out by the iterator.
`override` | `def` ++= ( iter : scala.Iterable[A] ) : scala.Unit Adds all elements provided by an `Iterable` object at the end of the queue. The elements are prepended in the order they are given out by the iterator.
`override` | `def` += ( elem : A ) : scala.Unit Inserts a single element at the end of the queue.
`override` | `def` apply ( n : scala.Int ) : A Access element number `n`.
`override` | `def` clear : scala.Unit Removes all elements from the queue. After this operation is completed, the queue will be empty.
`override` | `def` clone : scala.collection.mutable.Queue[A] This method clones the queue.
`override` | `def` dequeue : A Returns the first element in the queue, and removes this element from the queue.
`override` | `def` elements : scala.Iterator[A] Returns an iterator over all elements on the queue.
`override` | `def` enqueue ( elems : A* ) : scala.Unit Adds all elements to the queue.
`override` | `def` front : A Returns the first element in the queue, or throws an error if there is no element contained in the queue.
`override` | `def` isEmpty : scala.Boolean Checks if the queue is empty.
`override` | `def` length : scala.Int Returns the length of this queue.
| `def` self : scala.collection.mutable.Queue[A]

Def Detail

override `def` ++= ( it : scala.Iterator[A] ) : scala.Unit

  Adds all elements provided by an iterator at the end of the queue. The elements are prepended in the order they are given out by the iterator.

param:
  iter an iterator

override `def` ++= ( iter : scala.Iterable[A] ) : scala.Unit

  Adds all elements provided by an `Iterable` object at the end of the queue. The elements are prepended in the order they are given out by the iterator.

param:
  iter an iterable object

override `def` += ( elem : A ) : scala.Unit

  Inserts a single element at the end of the queue.

param:
  elem the element to insert

override `def` apply ( n : scala.Int ) : A

  Access element number `n`.

return:
  the element at index `n`.

override `def` clear : scala.Unit

  Removes all elements from the queue. After this operation is completed, the queue will be empty.

override `def` clone : scala.collection.mutable.Queue[A]

  This method clones the queue.

return:
  a queue with the same elements.

override `def` dequeue : A

  Returns the first element in the queue, and removes this element from the queue.

return:
  the first element of the queue.

override `def` elements : scala.Iterator[A]

  Returns an iterator over all elements on the queue.

return:
  an iterator over all queue elements.

override `def` enqueue ( elems : A* ) : scala.Unit

  Adds all elements to the queue.

param:
  elems the elements to add.

override `def` front : A

  Returns the first element in the queue, or throws an error if there is no element contained in the queue.

return:
  the first element.

override `def` isEmpty : scala.Boolean

  Checks if the queue is empty.

return:
  true, iff there is no element in the queue.

override `def` length : scala.Int

  Returns the length of this queue.

`def` self : scala.collection.mutable.Queue[A]