Example #1
0
 internal IntrusiveIterator(IntrusiveCollection <E> _enclosing)
 {
     this._enclosing = _enclosing;
     // + IntrusiveCollection.this + "]";
     this.cur  = this._enclosing.root;
     this.next = null;
 }
Example #2
0
 public void SetNext <_T0>(IntrusiveCollection <_T0> list, IntrusiveCollection.Element
                           next)
     where _T0 : IntrusiveCollection.Element
 {
     Preconditions.CheckState(list == this._enclosing._enclosing);
     this.first = next;
 }
Example #3
0
 public void SetPrev <_T0>(IntrusiveCollection <_T0> list, IntrusiveCollection.Element
                           prev)
     where _T0 : IntrusiveCollection.Element
 {
     Preconditions.CheckState(list == this._enclosing._enclosing);
     this.last = prev;
 }
Example #4
0
 // We keep references to the first and last elements for easy access.
 public void InsertInternal <_T0>(IntrusiveCollection <_T0> list, IntrusiveCollection.Element
                                  prev, IntrusiveCollection.Element next)
     where _T0 : IntrusiveCollection.Element
 {
     throw new RuntimeException("Can't insert root element");
 }
Example #5
0
 public _Element_89(IntrusiveCollection <E> _enclosing)
 {
     this._enclosing = _enclosing;
     this.first      = this;
     this.last       = this;
 }
Example #6
0
 public bool IsInList <_T0>(IntrusiveCollection <_T0> list)
     where _T0 : IntrusiveCollection.Element
 {
     return(list == this._enclosing._enclosing);
 }
Example #7
0
 public IntrusiveCollection.Element GetPrev <_T0>(IntrusiveCollection <_T0> list)
     where _T0 : IntrusiveCollection.Element
 {
     Preconditions.CheckState(list == this._enclosing._enclosing);
     return(this.last);
 }
Example #8
0
 public void RemoveInternal <_T0>(IntrusiveCollection <_T0> list)
     where _T0 : IntrusiveCollection.Element
 {
     throw new RuntimeException("Can't remove root element");
 }