Show / Hide Table of Contents

Class SublistEventQueue<T>

An wrapper which exposes a subset of an event queue.

Inheritance
object
BaseEventQueue<T>
SublistEventQueue<T>
Implements
IEventQueue<T>
Inherited Members
BaseEventQueue<T>._eventgen
BaseEventQueue<T>._tracing
BaseEventQueue<T>._lasteventtype
BaseEventQueue<T>.EventGenerator
BaseEventQueue<T>.Tracing
BaseEventQueue<T>.LastEventType
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

| Edit this page View Source

SublistEventQueue(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

| Edit this page View Source

Count

Gets the number of Events in the Queue.

Declaration
public override int Count { get; }
Property Value
Type Description
int
Overrides
BaseEventQueue<T>.Count

Methods

| Edit this page View Source

Clear()

Clears the Event Queue.

Declaration
public override void Clear()
Overrides
BaseEventQueue<T>.Clear()
| Edit this page View Source

Dequeue()

Dequeues an Event from the Queue.

Declaration
public override T Dequeue()
Returns
Type Description
T
Overrides
BaseEventQueue<T>.Dequeue()
| Edit this page 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
BaseEventQueue<T>.Enqueue(T)
| Edit this page 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
BaseEventQueue<T>.Peek()

Implements

IEventQueue<T>

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SublistEventQueue(IEventQueue<T>, int)
  • Properties
    • Count
  • Methods
    • Clear()
    • Dequeue()
    • Enqueue(T)
    • Peek()
  • Implements
  • Extension Methods
Back to top Generated by DocFX