FixedQueueT Class

Represents a QueueT with a fixed capacity.

Definition

Namespace: DevCase.Runtime.Collections
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[SerializableAttribute]
[XmlRootAttribute("FixedQueue")]
public sealed class FixedQueue<T> : Queue<T>
Inheritance
Object    QueueT    FixedQueueT

Type Parameters

T
The type of the queue items.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

FixedQueueT Initializes a new instance of the FixedQueueT class.

Properties

Count Gets the number of elements contained in the QueueT.
(Inherited from QueueT)
FreeSlots Gets the amount of free slots onto this FixedQueueT.
IsEmpty Gets a value indicating whether this FixedQueueT is empty.
IsFull Gets a value indicating whether this FixedQueueT is full.
MaxCapacity Gets the maximum capacity of this FixedQueueT, bottom items beyond the specified capacity are discarded when a new item is pushed.

Methods

Clear Removes all objects from the QueueT.
(Inherited from QueueT)
Contains Determines whether an element is in the QueueT.
(Inherited from QueueT)
CopyTo Copies the QueueT elements to an existing one-dimensional Array, starting at the specified array index.
(Inherited from QueueT)
Dequeue Removes and returns the object at the beginning of the QueueT.
(Inherited from QueueT)
Enqueue(T) Adds an object to the end of the QueueT.
(Inherited from QueueT)
Enqueue(T, Boolean) Adds an object to the end of this FixedQueueT.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumerator Returns an enumerator that iterates through the QueueT.
(Inherited from QueueT)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
Peek Returns the object at the beginning of the QueueT without removing it.
(Inherited from QueueT)
ToArray Copies the QueueT elements to a new array.
(Inherited from QueueT)
TrimExcess Sets the capacity to the actual number of elements in the QueueT, if that number is less than 90 percent of current capacity.
(Inherited from QueueT)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

DequeueT Removes and returns the specified amount of objects from the beginning of the QueueT.
(Defined by QueueExtensions)
IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
PeekT Returns the specified amount of objects from the beginning of the QueueT.
(Defined by QueueExtensions)
ReverseT Inverts the order of the elements of the source QueueT.
(Defined by QueueExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also