private static void _PushBefore(DoubleLinkNode2 <T> after, DoubleLinkNode2 <T> node) { DoubleLinkNode2 <T> ptr = after._pre; UnityEngine.Debug.Assert(ptr != null); DoubleLink2 <T> ._Link(ptr, node); DoubleLink2 <T> ._Link(node, after); }
private static void _PushAfter(DoubleLinkNode2 <T> before, DoubleLinkNode2 <T> node) { DoubleLinkNode2 <T> ptr = before._next; UnityEngine.Debug.Assert(ptr != null); DoubleLink2 <T> ._Link(before, node); DoubleLink2 <T> ._Link(node, ptr); }
private static void _PushBefore(DoubleLinkNode2 <T> after, DoubleLink2 <T> list) { if (!list.IsEmpty()) { DoubleLinkNode2 <T> next = list._root._next; DoubleLinkNode2 <T> pre = list._root._pre; DoubleLink2 <T> ._Link(after._pre, next); DoubleLink2 <T> ._Link(pre, after); list._Init(); } }
private static void _PushAfter(DoubleLinkNode2 <T> before, DoubleLink2 <T> list) { if (!list.IsEmpty()) { DoubleLinkNode2 <T> next = list._root._next; DoubleLinkNode2 <T> pre = list._root._pre; DoubleLinkNode2 <T> node3 = before._next; DoubleLink2 <T> ._Link(before, next); DoubleLink2 <T> ._Link(pre, node3); list._Init(); } }
private void _Init() { DoubleLink2 <T> ._Link(this._root, this._root); }