Lines Matching refs:h_idx
57 void DebugDump(int h_idx = 0, int level = 0);
60 inline int Par(int h_idx) const in Par() argument
62 return (h_idx+1) / 2 - 1; in Par()
65 inline int Left(int h_idx) const in Left() argument
67 return (h_idx+1) * 2 - 1; in Left()
70 inline int Right(int h_idx) const in Right() argument
72 return (h_idx+1) * 2; in Right()
75 inline bool HasLeft(int h_idx) const in HasLeft() argument
77 return Left(h_idx) < heap_size; in HasLeft()
80 inline bool HasRight(int h_idx) const in HasRight() argument
82 return Right(h_idx) < heap_size; in HasRight()
85 void Adjust(int h_idx);
88 void Validate(int h_idx);
114 inline int ScoreAt(int h_idx) { return Score(heap[h_idx]); } in ScoreAt() argument