Class SublistEventQueue<T>
An wrapper which exposes a subset of an event queue.
Implements
IEventQueue<T>
Inherited Members
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
| Edit this page View SourceSublistEventQueue(IEventQueue<T>, int)
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. |
int | 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
| Edit this page View SourceCount
Gets the number of Events in the Queue.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
| Edit this page View SourceClear()
Clears the Event Queue.
Declaration
public override void Clear()
Overrides
| Edit this page View SourceDequeue()
Dequeues an Event from the Queue.
Declaration
public override T Dequeue()
Returns
Type | Description |
---|---|
T |
Overrides
| Edit this page View SourceEnqueue(T)
Adds an Event to the Queue.
Declaration
public override void Enqueue(T e)
Parameters
Type | Name | Description |
---|---|---|
T | e | Event. |
Overrides
| Edit this page View SourcePeek()
Gets the next Event from the Queue without removing it from the queue.
Declaration
public override T Peek()
Returns
Type | Description |
---|---|
T |