Class BaseEventQueue<T>
Abstract base implementation of an Event Queue.
Implements
IEventQueue<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF.Parsing.Events
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseEventQueue<T> : IEventQueue<T> where T : IEvent
Type Parameters
Name | Description |
---|---|
T |
Fields
| Improve this Doc View Source_eventgen
Generator used to fill the Event Queue.
Declaration
protected IEventGenerator<T> _eventgen
Field Value
Type | Description |
---|---|
IEventGenerator<T> |
_lasteventtype
Type of Last Event dequeued.
Declaration
protected int _lasteventtype
Field Value
Type | Description |
---|---|
System.Int32 |
_tracing
Variable indicating whether Generator Tracing is enabled.
Declaration
protected bool _tracing
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceCount
Gets the number of Events in the Queue.
Declaration
public abstract int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
EventGenerator
Gets the Event Generator used by the Queue.
Declaration
public IEventGenerator<T> EventGenerator { get; }
Property Value
Type | Description |
---|---|
IEventGenerator<T> |
LastEventType
Gets the Event Type of the last Event dequeued.
Declaration
public int LastEventType { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Tracing
Gets/Sets Tracing for the Event Queue.
Declaration
public bool Tracing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceClear()
Clears the Event Queue.
Declaration
public abstract void Clear()
Dequeue()
Dequeues an Event from the Queue.
Declaration
public abstract T Dequeue()
Returns
Type | Description |
---|---|
T |
Enqueue(T)
Adds an Event to the Queue.
Declaration
public abstract void Enqueue(T e)
Parameters
Type | Name | Description |
---|---|---|
T | e | Event. |
Peek()
Gets the next Event from the Queue without removing it from the queue.
Declaration
public abstract T Peek()
Returns
Type | Description |
---|---|
T |