2 writes to _rgv
Microsoft.ML.Core (2)
Utilities\Heap.cs (2)
31_rgv = new List<T>(); 49_rgv = new List<T>(capacity);
28 references to _rgv
Microsoft.ML.Core (28)
Utilities\Heap.cs (28)
32_rgv.Add(default(T)); 50_rgv.Add(default(T)); 60Contracts.AssertValue(_rgv); 61Contracts.Assert(_rgv.Count > 0); 83return _rgv.Count - 1; 105_rgv[iv] = v; 114_rgv.RemoveRange(1, _rgv.Count - 1); 126if (_rgv.Count <= 1) 128return _rgv[1]; 140int cv = _rgv.Count; 143T vRes = _rgv[1]; 144_rgv[1] = _rgv[--cv]; 145_rgv.RemoveAt(cv); 161int iv = _rgv.Count; 162_rgv.Add(item); 170Contracts.Assert(0 < iv && iv < _rgv.Count); 172T v = _rgv[iv]; 174for (; (ivPar = Parent(iv)) > 0 && _fnReverse(_rgv[ivPar], v); iv = ivPar) 175MoveTo(_rgv[ivPar], iv); 181Contracts.Assert(0 < iv && iv < _rgv.Count); 183int cv = _rgv.Count; 184T v = _rgv[iv]; 188if (ivChild + 1 < cv && _fnReverse(_rgv[ivChild], _rgv[ivChild + 1])) 190if (!_fnReverse(v, _rgv[ivChild])) 192MoveTo(_rgv[ivChild], iv);