Class EventQueue<T>
Represents a Queue of events for use by event based parsers.
Implements
IEventQueue<T>
Inherited Members
Namespace: VDS.RDF.Parsing.Events
Assembly: dotNetRdf.dll
Syntax
public class EventQueue<T> : BaseEventQueue<T>, IEventQueue<T> where T : IEvent
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Edit this page View SourceEventQueue()
Creates a new Event Queue.
Declaration
public EventQueue()
EventQueue(IEventGenerator<T>)
Creates a new Event Queue with the given Event Generator.
Declaration
public EventQueue(IEventGenerator<T> generator)
Parameters
Type | Name | Description |
---|---|---|
IEventGenerator<T> | generator | Event Generator. |
Fields
| Edit this page View Source_events
Queue of Events.
Declaration
protected Queue<T> _events
Field Value
Type | Description |
---|---|
Queue<T> |
Properties
| Edit this page View SourceCount
Gets the number of events currently in the Queue.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
| Edit this page View SourceClear()
Clears the Queue.
Declaration
public override void Clear()
Overrides
| Edit this page View SourceDequeue()
Dequeues and returns the next event in the Queue.
Declaration
public override T Dequeue()
Returns
Type | Description |
---|---|
T |
Overrides
| Edit this page View SourceEnqueue(T)
Adds an event to the end of the Queue.
Declaration
public override void Enqueue(T e)
Parameters
Type | Name | Description |
---|---|---|
T | e | Event. |
Overrides
| Edit this page View SourcePeek()
Peeks and returns the next event in the Queue.
Declaration
public override T Peek()
Returns
Type | Description |
---|---|
T |