Cambridge SMT System
|
Functor Class that provides comparison accross the posindex structure. This is typically used e.g. with a priority queue. It can use CompareTool or any inherited class. More...
#include <data.grammar.comparetool.hpp>
Public Member Functions | |
PosIndexCompare (std::string *c, CompareTool *myct) | |
bool | operator() (const posindex &lhs, const posindex &rhs) const |
Functor Class that provides comparison accross the posindex structure. This is typically used e.g. with a priority queue. It can use CompareTool or any inherited class.
Definition at line 68 of file data.grammar.comparetool.hpp.
|
inline |
Definition at line 74 of file data.grammar.comparetool.hpp.
|
inline |
e.g. priority queue will decide how to reorder according to what is returned here.
Definition at line 76 of file data.grammar.comparetool.hpp.