コード例 #1
0
 public CircularDoublyLinkedList<T> Prepend(CircularDoublyLinkedList<T> elt)
 {
     elt.Next = this; elt.Prev = Prev; Prev.Next = elt; Prev = elt;
     return elt;
 }
コード例 #2
0
 public CircularDoublyLinkedList<T> Append(CircularDoublyLinkedList<T> elt)
 {
     elt.Prev = this; elt.Next = Next; Next.Prev = elt; Next = elt;
     return elt;
 }
コード例 #3
0
 /// <summary>
 /// Adjust the remaining elements, make this one point nowhere
 /// </summary>
 public void Delete()
 {
     Next.Prev = Prev; Prev.Next = Next;
     Next = Prev = null;
 }