Class GuardedQueue<T>

A read-only wrapper for a generic indexable queue (allows indexing).

Suitable for wrapping a CircularQueue<T>

Type parameters:
TThe item type.

Implements

IEnumerable<T>, System.Collections.IEnumerable, System.IFormattable, ICollectionValue<T>, IDirectedCollectionValue<T>, IDirectedEnumerable<T>, IQueue<T>, IShowable

Bases

object, GuardedEnumerable<T>, GuardedCollectionValue<T>, GuardedDirectedCollectionValue<T>

Event overview

CollectionChanged, Inherited from GuardedCollectionValue<T> ,
CollectionCleared, Inherited from GuardedCollectionValue<T> ,
ItemInserted, Inherited from GuardedCollectionValue<T> ,
ItemRemovedAt, Inherited from GuardedCollectionValue<T> ,
ItemsAdded, Inherited from GuardedCollectionValue<T> ,
ItemsRemoved, Inherited from GuardedCollectionValue<T>

Property overview

ActiveEvents, Inherited from GuardedCollectionValue<T> ,
AllowsDuplicates ,
Count, Inherited from GuardedCollectionValue<T> ,
CountSpeed, Inherited from GuardedCollectionValue<T> ,
Direction, Inherited from GuardedDirectedCollectionValue<T> ,
IsEmpty, Inherited from GuardedCollectionValue<T> ,
this[int i] ,
ListenableEvents, Inherited from GuardedCollectionValue<T>

Constructor overview

GuardedQueue<T>(IQueue<T> queue)

Method overview

All(Fun<T,bool> filter), Inherited from GuardedCollectionValue<T> ,
Apply(Act<T> a), Inherited from GuardedCollectionValue<T> ,
Backwards(), Inherited from GuardedDirectedCollectionValue<T> ,
Choose(), Inherited from GuardedCollectionValue<T> ,
CopyTo(T[] a, int i), Inherited from GuardedCollectionValue<T> ,
Dequeue() ,
Enqueue(T item) ,
Equals(object obj), Inherited from object ,
Exists(Fun<T,bool> filter), Inherited from GuardedCollectionValue<T> ,
Filter(Fun<T,bool> filter), Inherited from GuardedCollectionValue<T> ,
Finalize(), Inherited from object ,
Find(Fun<T,bool> filter, out T item), Inherited from GuardedCollectionValue<T> ,
FindLast(Fun<T,bool> predicate, out T item), Inherited from GuardedDirectedCollectionValue<T> ,
GetEnumerator(), Inherited from GuardedEnumerable<T> ,
GetHashCode(), Inherited from object ,
GetType(), Inherited from object ,
MemberwiseClone(), Inherited from object ,
Show(System.Text.StringBuilder stringbuilder, ref int rest, System.IFormatProvider formatProvider), Inherited from GuardedCollectionValue<T> ,
ToArray(), Inherited from GuardedCollectionValue<T> ,
ToString(string format, System.IFormatProvider formatProvider), Inherited from GuardedCollectionValue<T> ,
ToString(), Inherited from object

Property details

F bool AllowsDuplicatesAccess: Read-Only

Value:

F T this[int i]Access: Read-Only
Index into the wrapped queue
Parameters:
i:

Constructor details

GuardedQueue<T>(IQueue<T> queue) Wrap a queue in a read-only wrapper
Parameters:
queue:The queue

Method details

F T Dequeue()
Throws
ReadOnlyCollectionException since this is a read-only wrappper
Returns:-
F void Enqueue(T item)
Throws
ReadOnlyCollectionException since this is a read-only wrappper