MAiNGO
babBase::PruningScoreComparator Struct Reference

Functor for comparing pruning scores. More...

#include <babTree.h>

Public Member Functions

bool operator() (const BabNodeWithInfo &a, const BabNodeWithInfo &b) const
 () opeartor for comparing More...
 

Detailed Description

Functor for comparing pruning scores.

The default is maxHeap, we will keep this convention. The node with the highest pruning score will be ensured to be at top of _nodeVector Returns true if priority of a < b

Member Function Documentation

◆ operator()()

bool babBase::PruningScoreComparator::operator() ( const BabNodeWithInfo a,
const BabNodeWithInfo b 
) const
inline

() opeartor for comparing

Parameters
[in]ais the left object
[in]bis the right object
Returns
true if a is lesser than b

The documentation for this struct was generated from the following file: