| 70 | private: |
| 71 | |
| 72 | inline int HeapValueCmp(HeapEntry* rhs) { |
| 73 | if (this->HeapValue() == rhs->HeapValue()) { |
| 74 | return 0; |
| 75 | } else if (this->HeapValue() > rhs->HeapValue()) { |
| 76 | return 1; |
| 77 | } else { |
| 78 | return -1; |
| 79 | } |
| 80 | }; |
| 81 | |
| 82 | inline void SetIndex(int index) { |
| 83 | _index = index; |