Cambridge SMT System
ucam::hifst::PosIndexCompare Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

ucam::hifst::PosIndexCompare::PosIndexCompare ( std::string *  c,
CompareTool myct 
)
inline

Definition at line 74 of file data.grammar.comparetool.hpp.

Member Function Documentation

bool ucam::hifst::PosIndexCompare::operator() ( const posindex lhs,
const posindex rhs 
) const
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.

Here is the call graph for this function:


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