Class CircularQueue<T>
Inheritance
System.Object
CircularQueue<T>
Implements
IQueue<T>
IStack<T>
System.IFormattable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Support.C5
Assembly: Lucene.Net.dll
Syntax
public class CircularQueue<T> : SequencedBase<T>, IQueue<T>, IStack<T>, IDirectedCollectionValue<T>, ICollectionValue<T>, IShowable, IFormattable, IDirectedEnumerable<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc View SourceCircularQueue(MemoryType)
Declaration
public CircularQueue(MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
MemoryType | memoryType |
CircularQueue(Int32, MemoryType)
Declaration
public CircularQueue(int capacity, MemoryType memoryType = MemoryType.Normal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity | |
MemoryType | memoryType | The memory type strategy of the internal enumerator used to iterate over the collection |
Properties
| Improve this Doc View SourceAllowsDuplicates
Declaration
public virtual bool AllowsDuplicates { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Get the i'th item in the queue. The front of the queue is at index 0.
Declaration
public virtual T this[int i] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | i |
Property Value
Type | Description |
---|---|
T |
ListenableEvents
Declaration
public override EventTypeEnum ListenableEvents { get; }
Property Value
Type | Description |
---|---|
EventTypeEnum |
Overrides
Lucene.Net.Support.C5.CollectionValueBase<T>.ListenableEvents
Methods
| Improve this Doc View SourceBackwards()
Declaration
public override IDirectedCollectionValue<T> Backwards()
Returns
Type | Description |
---|---|
IDirectedCollectionValue<T> |
Overrides
Lucene.Net.Support.C5.DirectedCollectionBase<T>.Backwards()
|
Improve this Doc
View Source
Check()
Declaration
public virtual bool Check()
Returns
Type | Description |
---|---|
System.Boolean |
Choose()
Declaration
public override T Choose()
Returns
Type | Description |
---|---|
T |
Overrides
Lucene.Net.Support.C5.CollectionValueBase<T>.Choose()
|
Improve this Doc
View Source
Dequeue()
Declaration
public virtual T Dequeue()
Returns
Type | Description |
---|---|
T |
Enqueue(T)
Declaration
public virtual void Enqueue(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
GetEnumerator()
Declaration
public override IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> |
Overrides
Lucene.Net.Support.C5.EnumerableBase<T>.GetEnumerator()
|
Improve this Doc
View Source
Pop()
Declaration
public T Pop()
Returns
Type | Description |
---|---|
T |
Push(T)
Declaration
public void Push(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Explicit Interface Implementations
| Improve this Doc View SourceIDirectedEnumerable<T>.Backwards()
Declaration
IDirectedEnumerable<T> IDirectedEnumerable<T>.Backwards()
Returns
Type | Description |
---|---|
IDirectedEnumerable<T> |
Implements
System.IFormattable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable