6 writes to _nodes
System.Collections (6)
System\Collections\Generic\PriorityQueue.cs (6)
66_nodes = Array.Empty<(TElement, TPriority)>(); 93_nodes = Array.Empty<(TElement, TPriority)>(); 113_nodes = new (TElement, TPriority)[initialCapacity]; 155_nodes = EnumerableHelpers.ToArray(items, out _size); 615Array.Resize(ref _nodes, _size); 642Array.Resize(ref _nodes, newcapacity);
35 references to _nodes
System.Collections (35)
System\Collections\Generic\PriorityQueue.cs (35)
172public int Capacity => _nodes.Length; 202if (_nodes.Length == currentSize) 231return _nodes[0].Element; 246TElement element = _nodes[0].Element; 270(TElement Element, TPriority Priority) root = _nodes[0]; 280_nodes[0] = (element, priority); 291_nodes[0] = (element, priority); 314(element, priority) = _nodes[0]; 340(element, priority) = _nodes[0]; 365(TElement Element, TPriority Priority) root = _nodes[0]; 403if (collection is not null && (count = collection.Count) > _nodes.Length - _size) 414collection.CopyTo(_nodes, 0); 420(TElement, TPriority)[] nodes = _nodes; 426nodes = _nodes; 466(count = collection.Count) > _nodes.Length - _size) 476(TElement, TPriority)[] nodes = _nodes; 482nodes = _nodes; 528(TElement Element, TPriority Priority)[] nodes = _nodes; 575Array.Clear(_nodes, 0, _size); 594if (_nodes.Length < capacity) 599return _nodes.Length; 612int threshold = (int)(_nodes.Length * 0.9); 624Debug.Assert(_nodes.Length < minCapacity); 629int newcapacity = GrowFactor * _nodes.Length; 636newcapacity = Math.Max(newcapacity, _nodes.Length + MinimumGrow); 655(TElement Element, TPriority Priority) lastNode = _nodes[lastNodeIndex]; 668_nodes[lastNodeIndex] = default; 692(TElement Element, TPriority Priority)[] nodes = _nodes; 722(TElement Element, TPriority Priority)[] nodes = _nodes; 755(TElement Element, TPriority Priority)[] nodes = _nodes; 788(TElement Element, TPriority Priority)[] nodes = _nodes; 837(TElement Element, TPriority Priority)[] nodes = _nodes; 878ReadOnlySpan<(TElement Element, TPriority Priority)> nodes = _nodes.AsSpan(0, _size); 973Array.Copy(_queue._nodes, 0, array, index, _queue._size); 1020_current = localQueue._nodes[_index];