Esempio n. 1
0
 internal Enumerator(ClusteredQueue <T> q)
 {
     _q              = q;
     _version        = _q._version;
     _index          = -1;
     _currentElement = default(T);
 }
Esempio n. 2
0
        public virtual object Clone()
        {
            ClusteredQueue <T> newMap = new ClusteredQueue <T>();

            newMap._array      = (ClusteredArray <T>)_array.Clone();
            newMap._GrowFactor = _GrowFactor;
            newMap._head       = _head;
            newMap._size       = _size;
            newMap._version    = _version;
            return(newMap);
        }
Esempio n. 3
0
 public ClearRollbackOperation(ClusteredQueue <T> parent, ClusteredArray <T> items)
 {
     _items  = items;
     _parent = parent;
 }
Esempio n. 4
0
 public DequeueRollbackOperation(ClusteredQueue <T> parent, int index, T item)
 {
     _index  = index;
     _parent = parent;
     _item   = item;
 }
Esempio n. 5
0
 public EnqueueRollbackOperation(ClusteredQueue <T> parent, int index)
 {
     _index  = index;
     _parent = parent;
 }
Esempio n. 6
0
 internal SynchronizedQueueMap(ClusteredQueue <T> q)
 {
     this._q = q;
     root    = _q._syncRoot;
 }
Esempio n. 7
0
 public static ClusteredQueue <T> Synchronized(ClusteredQueue <T> map)
 {
     return(new SynchronizedQueueMap <T>(map));
 }