|
Sharpility
|
Default IQueue implementation using System.Collections.Generic.Queue. More...
Public Member Functions | |
| DefaultQueue () | |
| Creates new queue. | |
| DefaultQueue (int capacity) | |
| Creates queue with given capacity. | |
| IEnumerator< T > | GetEnumerator () |
| bool | Offer (T item) |
| Offers item to queue. | |
| T | Peek () |
| Returns first item in queue. | |
| T | Poll () |
| Removes and return first item in queue. | |
| void | Clear () |
| Clears queue. | |
| bool | Contains (T item) |
| Checks is queue contains item. | |
| override bool | Equals (object obj) |
| override int | GetHashCode () |
| override string | ToString () |
Properties | |
| int | Count [get] |
| Returns number of queue items. | |
Default IQueue implementation using System.Collections.Generic.Queue.
| T | Type of queue item |
| void Sharpility.Collections.DefaultQueue< T >.Clear | ( | ) | [inline] |
Clears queue.
Implements Sharpility.Collections.IQueue< T >.
| bool Sharpility.Collections.DefaultQueue< T >.Contains | ( | T | item | ) | [inline] |
Checks is queue contains item.
| item | checkd item |
Implements Sharpility.Collections.IQueue< T >.
| Sharpility.Collections.DefaultQueue< T >.DefaultQueue | ( | ) | [inline] |
Creates new queue.
| Sharpility.Collections.DefaultQueue< T >.DefaultQueue | ( | int | capacity | ) | [inline] |
Creates queue with given capacity.
| capacity | Queue capacity |
| bool Sharpility.Collections.DefaultQueue< T >.Offer | ( | T | item | ) | [inline] |
Offers item to queue.
| item | offered item |
Implements Sharpility.Collections.IQueue< T >.
| T Sharpility.Collections.DefaultQueue< T >.Peek | ( | ) | [inline] |
Returns first item in queue.
Implements Sharpility.Collections.IQueue< T >.
| T Sharpility.Collections.DefaultQueue< T >.Poll | ( | ) | [inline] |
Removes and return first item in queue.
Implements Sharpility.Collections.IQueue< T >.
int Sharpility.Collections.DefaultQueue< T >.Count [get] |
Returns number of queue items.
Implements Sharpility.Collections.IQueue< T >.