Click or drag to resize
CappedQueueT Class
Represents a first-in, first-out collection of objects, optionally with a maximum threshold.
Inheritance Hierarchy
SystemObject
  Network.Sim.MiscellaneousCappedQueueT

Namespace: Network.Sim.Miscellaneous
Assembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class CappedQueue<T> : IEnumerable<T>, 
	IEnumerable

Type Parameters

T
The type of the objects stord in the queue.

The CappedQueueT type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of elements contained in the queue.
Public propertyMaxCapacity
Gets the maximum number of elements the queue can store.
Top
Methods
  NameDescription
Public methodDequeue
Removes and returns the element at the beginning of the queue.
Public methodEnqueue
Adds an object to the end of the queue.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the queue.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPeek
Returns the element at the beginning of the queue without removing it.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Unfortunately, the .Net Framework's queue does not provide a means to specify a maximum threshold.
See Also