public LinkedListStruct(SparseLinkedListManager <T> listManager)
 {
     ListManager   = listManager;
     HeadNode      = ListManager.GetGapNode();
     TailNode      = ListManager.GetGapNode();
     HeadNode.Next = TailNode;
     TailNode.Prev = HeadNode;
     LongCount     = 0;
 }
示例#2
0
        protected SparseLinkedListBase(int count, SparseLinkedListManager <T> manager)
        {
            Manager = manager;

            HeadNode = Manager.GetGapNode();
            TailNode = Manager.GetGapNode();

            LongCount = count;

            InitHeadTail();
        }