//--------------------------------------------------------------------- public EbDoubleLinkNode2 <T> New() { if (mListNode.IsEmpty()) { return(new EbDoubleLinkNode2 <T>(new T())); } else { EbDoubleLinkNode2 <T> node = mListNode.GetHead(); node.Detach(); return(node); } }
//------------------------------------------------------------------------- public static void PushBefore(EbDoubleLinkNode2 <T> after, EbDoubleLinkNode2 <T> node) { node.Detach(); _PushBefore(after, node); }
//------------------------------------------------------------------------- public static void PushAfter(EbDoubleLinkNode2 <T> before, EbDoubleLinkNode2 <T> node) { node.Detach(); _PushAfter(before, node); }
//------------------------------------------------------------------------- public void PushFront(EbDoubleLinkNode2 <T> node) { node.Detach(); _PushAfter(_root, node); }
//------------------------------------------------------------------------- public void PushBack(EbDoubleLinkNode2 <T> node) { node.Detach(); _PushBefore(_root, node); }