[Add] Comparison method for the cost two nodes.

This commit is contained in:
Rtch90 2012-02-02 22:37:46 +00:00
parent f2f4c43545
commit f7bc3fbae5

View File

@ -40,4 +40,15 @@ public:
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:
};