An NDoc Documented Class Library

RotDeque Members

RotDeque overview

Public Static Fields

RotDequeDefaultSize The default size for a newly-created deque.

Public Instance Constructors

RotDequeOverloaded. Initializes a new instance of the RotDeque class.

Public Instance Properties

AtBack Non-destructive retrieval of the element at the back of the deque.
AtFront Non-destructive retrieval of the element at the head of the deque.
Capacity Get the deque's capacity.
Count Get the number of elements currently on the deque.
Empty Query whether the deque is empty.
Full Query whether the deque is full.
IsFixedSize Get a value indicating whether the deque has a fixed size.
IsReadOnly Get a value indicating whether the deque is read-only.
IsSynchronized Gets a value indicating whether access to the RotDeque is synchronized (thread-safe).
Item Retrieve an element from the deque.
SyncRoot Gets an object that may be used to synchronize access to the RotDeque.

Public Instance Methods

Add Add an element to the end of the deque.
Clear Remove all elements from the deque.
Clone Perform a shallow copy of the deque.
Contains Determine whether an element is on the deque.
CopyToOverloaded. Copies the deque's contents to an array.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetEnumerator Gets an enumerator on the deque's elements.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
IndexOf Determine the index of an element on the deque.
Insert Insert an item into the deque at a specified position.
Normalize Push the deque's elements to the left (so that head = 0).
PopBack Pop an element from the back of the deque.
PopFront Pop an element from the head of the deque.
PushBack Push an element at the end of the deque.
PushFront Push an element on the head of the deque.
Remove Remove the first occurence of an element from the deque.
RemoveAt Remove the element at a specified position on the deque.
Split Copy the deque's contents into an array of deques.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

head The element at the head of the deque.
items The items in the deque.
size The deque size.
tail The element just past the tail of the deque.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
RealIndex Get the actual position of an object in the items[] array.

See Also

RotDeque Class | Ringlet.Collections Namespace