Class SublistEventQueue<T>
An wrapper which exposes a subset of an event queue.
Implements
IEventQueue<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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>, 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
| Improve this Doc View SourceCount
Gets the number of Events in the Queue.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
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()