Exemplo n.º 1
0
		internal LRU2QLongCache(int maxSize)
		{
			_maxSize = maxSize;
			_a1_threshold = _maxSize / 4;
			_am = new CircularLongBuffer4(_maxSize);
			_a1 = new CircularLongBuffer4(_maxSize);
			_slots = new Hashtable(maxSize);
		}
 public _IEnumerator_122(CircularLongBuffer4 _enclosing, int head, int tail)
 {
     this._enclosing = _enclosing;
     this.head       = head;
     this.tail       = tail;
     this._index     = head;
     this._current   = Iterators.NoElement;
 }
Exemplo n.º 3
0
		private void DiscardPageFrom(CircularLongBuffer4 list, IProcedure4 finalizer)
		{
			Discard(list.RemoveLast(), finalizer);
		}
Exemplo n.º 4
0
			public _IEnumerator_122(CircularLongBuffer4 _enclosing, int head, int tail)
			{
				this._enclosing = _enclosing;
				this.head = head;
				this.tail = tail;
				this._index = head;
				this._current = Iterators.NoElement;
			}