Beispiel #1
0
 public IndexedMulitListEnumerator(MultipleChainsInSingleArray <T> list, int continuationId)
 {
     _chain            = list._chain;
     Number            = continuationId;
     CurrentChainIndex = list._firstChainElementOfChainNumber[continuationId];
     CurrentElement    = default(T);
     _isFirst          = true;
 }
Beispiel #2
0
        public MultipleChainsInSingleArray()
        {
            _firstChainElementOfChainNumber = new AutoResizeVector <int>
            {
                DefaultValue = -1
            };
            _lastChainElementOfChainNumber = new AutoResizeVector <int>
            {
                DefaultValue = -1
            };
            _chain = new AutoResizeVector <ListChainElement>();

            _freedChainIndexes = new Stack <int>();
        }