[Add] Comparison method for the cost two nodes.
This commit is contained in:
parent
f2f4c43545
commit
f7bc3fbae5
@ -40,4 +40,15 @@ public:
|
|||||||
|
|
||||||
UserState _UserState;
|
UserState _UserState;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Compare the f values of the two nodes.
|
||||||
|
class HeapCompare_f {
|
||||||
|
public:
|
||||||
|
bool operator()(const Node* x, const Node* y) const {
|
||||||
|
return x->f > y->f;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
public:
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user