MCPcopy Create free account
hub / github.com/F-Stack/f-stack / HeapValueCmp

Method HeapValueCmp

adapter/micro_thread/heap.h:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70private:
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;

Callers 2

HeapUpMethod · 0.80
HeapDownMethod · 0.80

Calls 1

HeapValueMethod · 0.45

Tested by

no test coverage detected