Esempio n. 1
0
 public virtual void Clear()
 {
     _queue.Clear();
     _lastDequeued = null;
 }
Esempio n. 2
0
 public int Compare(QueueEntry <T, Q> x, QueueEntry <T, Q> y)
 {
     return(x.CompareTo(y));
 }
Esempio n. 3
0
 public virtual T Dequeue()
 {
     _lastDequeued = _queue[0];
     _queue.RemoveAt(0);
     return(_lastDequeued.Entry);
 }