C5  2.4
The C5 Generic Collection Library for C# and CLI is a comprehensive collection library supporting lists, sets, bags, dictionaries, priority queues, (FIFO) queues, and (LIFO) stacks. C5 runs on .NET 3.5+, Silverlight 5, Windows Phone 8, Xamarin.iOS, Xamarin.Android, and Mono.
C5.IQueue< T > Interface Template Reference

The interface describing the operations of a FIFO queue data structure. More...

Inheritance diagram for C5.IQueue< T >:
C5.IDirectedCollectionValue< T > C5.ICollectionValue< T > C5.IDirectedEnumerable< T > C5.IShowable C5.ArrayList< T > C5.CircularQueue< T > C5.GuardedQueue< T > C5.LinkedList< T >

Public Member Functions

void Enqueue (T item)
 Enqueue an item at the back of the queue. More...
 
Dequeue ()
 Dequeue an item from the front of the queue. More...
 
- Public Member Functions inherited from C5.IDirectedCollectionValue< T >
new IDirectedCollectionValue< T > Backwards ()
 Create a collection containing the same items as this collection, but whose enumerator will enumerate the items backwards. The new collection will become invalid if the original is modified. Method typically used as in More...
 
bool FindLast (Func< T, bool > predicate, out T item)
 Check if there exists an item that satisfies a specific predicate in this collection and return the first one in enumeration order. More...
 
- Public Member Functions inherited from C5.ICollectionValue< T >
void CopyTo (T[] array, int index)
 Copy the items of this collection to a contiguous part of an array. More...
 
T[] ToArray ()
 Create an array with the items of this collection (in the same order as an enumerator would output them). More...
 
void Apply (Action< T > action)
 Apply a delegate to all items of this collection. More...
 
bool Exists (Func< T, bool > predicate)
 Check if there exists an item that satisfies a specific predicate in this collection. More...
 
bool Find (Func< T, bool > predicate, out T item)
 Check if there exists an item that satisfies a specific predicate in this collection and return the first one in enumeration order. More...
 
bool All (Func< T, bool > predicate)
 Check if all items in this collection satisfies a specific predicate. More...
 
Choose ()
 Choose some item of this collection. More...
 
SCG.IEnumerable< T > Filter (Func< T, bool > filter)
 Create an enumerable, enumerating the items of this collection that satisfies a certain condition. More...
 
- Public Member Functions inherited from C5.IShowable
bool Show (StringBuilder stringbuilder, ref int rest, IFormatProvider formatProvider)
 Format More...
 

Properties

bool AllowsDuplicates [get]
 
this[int index] [get]
 Get the More...
 
- Properties inherited from C5.ICollectionValue< T >
EventTypeEnum ListenableEvents [get]
 A flag bitmap of the events subscribable to by this collection. More...
 
EventTypeEnum ActiveEvents [get]
 A flag bitmap of the events currently subscribed to by this collection. More...
 
bool IsEmpty [get]
 
int Count [get]
 
Speed CountSpeed [get]
 The value is symbolic indicating the type of asymptotic complexity in terms of the size of this collection (worst-case or amortized as relevant). More...
 
- Properties inherited from C5.IDirectedEnumerable< T >
EnumerationDirection Direction [get]
 

Additional Inherited Members

- Events inherited from C5.ICollectionValue< T >
CollectionChangedHandler< T > CollectionChanged
 The change event. Will be raised for every change operation on the collection. More...
 
CollectionClearedHandler< T > CollectionCleared
 The change event. Will be raised for every clear operation on the collection. More...
 
ItemsAddedHandler< T > ItemsAdded
 The item added event. Will be raised for every individual addition to the collection. More...
 
ItemInsertedHandler< T > ItemInserted
 The item inserted event. Will be raised for every individual insertion to the collection. More...
 
ItemsRemovedHandler< T > ItemsRemoved
 The item removed event. Will be raised for every individual removal from the collection. More...
 
ItemRemovedAtHandler< T > ItemRemovedAt
 The item removed at event. Will be raised for every individual removal at from the collection. More...
 

Detailed Description

The interface describing the operations of a FIFO queue data structure.

Template Parameters
TThe item type

Member Function Documentation

T C5.IQueue< T >.Dequeue ( )

Dequeue an item from the front of the queue.

Returns
The item

Implemented in C5.LinkedList< T >, C5.ArrayList< T >, C5.GuardedQueue< T >, and C5.CircularQueue< T >.

void C5.IQueue< T >.Enqueue ( item)

Enqueue an item at the back of the queue.

Parameters
itemThe item

Implemented in C5.LinkedList< T >, C5.ArrayList< T >, C5.GuardedQueue< T >, and C5.CircularQueue< T >.

Property Documentation

bool C5.IQueue< T >.AllowsDuplicates
get

T C5.IQueue< T >.this[int index]
get

Get the

index'th element of the queue. The front of the queue has index 0.

Parameters
index
Returns

The documentation for this interface was generated from the following file: