private void _UpdateTimeList(ViDoubleLink1 <ViTimeNodeInterface> list) { while (list.IsNotEmpty()) { ViTimeNodeInterface timeNode = list.GetHead() as ViTimeNodeInterface; ViDebuger.AssertError(timeNode); timeNode.Detach(); timeNode._Exce(this); } ViDebuger.AssertError(list.IsEmpty()); }
public static void PushBefore(ViDoubleLinkNode1 <T> after, ViDoubleLink1 <T> list) { if (after.IsAttach() == false) { return; } if (list.IsEmpty()) { return; } _PushBefore(after, list); }
public static void PushAfter(ViDoubleLinkNode1 <T> before, ViDoubleLink1 <T> list) { if (before.IsAttach() == false) { return; } if (list.IsEmpty()) { return; } _PushAfter(before, list); }
static void _PushBefore(ViDoubleLinkNode1 <T> after, ViDoubleLink1 <T> list) { if (list.IsEmpty()) { return; } ViDoubleLinkNode1 <T> first = list._root._next; ViDoubleLinkNode1 <T> back = list._root._pre; ViDoubleLinkNode1 <T> pre = after._pre; _Link(pre, first); _Link(back, after); list._Init(); }
static void _PushAfter(ViDoubleLinkNode1 <T> before, ViDoubleLink1 <T> list) { if (list.IsEmpty()) { return; } ViDoubleLinkNode1 <T> first = list._root._next; ViDoubleLinkNode1 <T> back = list._root._pre; ViDoubleLinkNode1 <T> next = before._next; _Link(before, first); _Link(back, next); list._Init(); }