Class SublistEventQueue<T>
An wrapper which exposes a subset of an event queue.
Implements
IEventQueue<T>
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)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Events
Assembly: dotNetRDF.dll
Syntax
public class SublistEventQueue<T> : BaseEventQueue<T>, IEventQueue<T> where T : IEvent
Type Parameters
Name | Description |
---|---|
T | The type of event queued. |
Constructors
| Improve this Doc View SourceSublistEventQueue(IEventQueue<T>, Int32)
Create a new wrapper that exposes a subset of specific event queue.
Declaration
public SublistEventQueue(IEventQueue<T> events, int threshold)
Parameters
Type | Name | Description |
---|---|---|
IEventQueue<T> | events | The event queue to be wrapper. |
System.Int32 | threshold | The number of events to leave in the wrapped queue. When the wrapped event queue contains this number of events or fewer, this wrapper will treat it as an empty queue. |
Properties
| Improve this Doc View SourceCount
Gets the number of Events in the Queue.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
VDS.RDF.Parsing.Events.BaseEventQueue<T>.Count
Methods
| Improve this Doc View SourceClear()
Clears the Event Queue.
Declaration
public override void Clear()
Overrides
VDS.RDF.Parsing.Events.BaseEventQueue<T>.Clear()
|
Improve this Doc
View Source
Dequeue()
Dequeues an Event from the Queue.
Declaration
public override T Dequeue()
Returns
Type | Description |
---|---|
T |
Overrides
VDS.RDF.Parsing.Events.BaseEventQueue<T>.Dequeue()
|
Improve this Doc
View Source
Enqueue(T)
Adds an Event to the Queue.
Declaration
public override void Enqueue(T e)
Parameters
Type | Name | Description |
---|---|---|
T | e | Event. |
Overrides
VDS.RDF.Parsing.Events.BaseEventQueue<T>.Enqueue(T)
|
Improve this Doc
View Source
Peek()
Gets the next Event from the Queue without removing it from the queue.
Declaration
public override T Peek()
Returns
Type | Description |
---|---|
T |
Overrides
VDS.RDF.Parsing.Events.BaseEventQueue<T>.Peek()