Interface IEventQueue<T>
Interface for implementing Event Queues which provide Bufferable wrappers to Event Generators.
Namespace: VDS.RDF.Parsing.Events
Assembly: dotNetRDF.dll
Syntax
public interface IEventQueue<T>
where T : IEvent
Type Parameters
Name | Description |
---|---|
T |
Properties
| Improve this Doc View SourceCount
Gets the number of Events in the Queue.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
EventGenerator
Gets the Event Generator that this Queue uses.
Declaration
IEventGenerator<T> EventGenerator { get; }
Property Value
Type | Description |
---|---|
IEventGenerator<T> |
LastEventType
Gets the Event Type of the last Event dequeued.
Declaration
int LastEventType { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Tracing
Gets/Sets whether Generator Tracing should be used.
Declaration
bool Tracing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClear()
Clears the Event Queue.
Declaration
void Clear()
Dequeue()
Removes the first Event from the Queue.
Declaration
T Dequeue()
Returns
Type | Description |
---|---|
T |
Enqueue(T)
Adds an Event to the end of the Queue.
Declaration
void Enqueue(T e)
Parameters
Type | Name | Description |
---|---|---|
T | e | Event to add. |
Peek()
Gets the first Event from the Queue without removing it.
Declaration
T Peek()
Returns
Type | Description |
---|---|
T |