Class EventQueue<T>
Represents a Queue of events for use by event based parsers.
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 EventQueue<T> : BaseEventQueue<T>, IEventQueue<T> where T : IEvent
Type Parameters
Name | Description |
---|---|
T |
Constructors
| Improve this Doc 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
| Improve this Doc View Source_events
Queue of Events.
Declaration
protected Queue<T> _events
Field Value
Type | Description |
---|---|
System.Collections.Generic.Queue<T><T> |
Properties
| Improve this Doc View SourceCount
Gets the number of events currently 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 Queue.
Declaration
public override void Clear()
Overrides
VDS.RDF.Parsing.Events.BaseEventQueue<T>.Clear()
|
Improve this Doc
View Source
Dequeue()
Dequeues and returns the next event in 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 end of 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()
Peeks and returns the next event in the Queue.
Declaration
public override T Peek()
Returns
Type | Description |
---|---|
T |
Overrides
VDS.RDF.Parsing.Events.BaseEventQueue<T>.Peek()