Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.Collections.QueueViewable<T>

Summary

A queue whose queued items can be accessed by index. The item at the head of the queue has index 0 and is the next item to be dequeued.

Generic type parameters

T The type of the elements stored in the queue.

Constructors

Constructor.
QueueViewable<T>(int initialCapacity)
Constructor.
QueueViewable<T>(IEnumerable<T> items)

Instance methods

ICollection<T> Returns a read-only wrapper for this collection. Any changes to this collection will be immediately visible through the wrapper.
void
  • Implements: ICollection<T>.Clear()
Empties the queue.
bool
Contains(T item)
  • Implements: ICollection<T>.Contains(T)
Not implemented.
void
CopyTo(T[] array, int arrayIndex)
  • Implements: ICollection<T>.CopyTo(T[], int)
Copies all elements to an array, in the order in which they would be dequeued. The destination array must have enough space for all items.
TRemoves and returns the item at the head of the queue.
void
Enqueue(T item)
Adds an item at the tail of the queue.
IEnumerator<T>
  • Implements: IEnumerable<T>.GetEnumerator()
Enumerates all items in the queue in the order in which they would be dequeued.
int
IndexOf(T item)
  • Implements: IList<T>.IndexOf(T)
Not implemented.
void
Insert(int index, T item)
  • Implements: IList<T>.Insert(int, T)
Always throws a NotSupportedException.
bool
Remove(T item)
  • Implements: ICollection<T>.Remove(T)
void
RemoveAt(int index)
  • Implements: IList<T>.RemoveAt(int)

Instance properties

int Gets the current capacity of the queue (that is, the maximum number of items it can store before the internal store needs to be resized).
int
  • Implements: ICollection<T>.Count
Returns the number of elements in the queue.
bool
  • Implements: ICollection<T>.IsReadOnly
Always returns false.
T
this[int index]
  • Implements: IList<T>.this[int]
Accesses the Nth queued item. The next item to be dequeued always has the index 0. The existing items can be both read and assigned. No new items can be added using this indexer.