public Logic(MyBuffer <T> buffer, int n, float selectionFactor) : base(buffer.Shape) { _buffer = buffer; _queue = new TreeBag <T>(); _size = n; _selectionfactor = selectionFactor; SetHandler(buffer.In, OnPush, OnUpstreamFinish); SetHandler(buffer.Out, OnPull); }
/// <summary> /// Wrap an indexed sorted collection in a read-only wrapper /// </summary> /// <param name="list">the indexed sorted collection</param> public GuardedIndexedSorted(IIndexedSorted <T> list) : base(list) { indexedsorted = list; }
private static void DoWork <T>(IIndexedSorted <T> gcoll) { // Use gcoll ... }