MAiNGO
babBase::NodePriorityComparator Struct Reference

Functor for comparing node priorities. More...

#include <babTree.h>

Public Member Functions

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

Detailed Description

Functor for comparing node priorities.

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

Member Function Documentation

◆ operator()()

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

() operator 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: