Lines Matching defs:MergeGainT
181 struct MergeGainT {
182 explicit MergeGainT() = default;
183 explicit MergeGainT(double Score, size_t MergeOffset, MergeTypeT MergeType)
195 bool operator<(const MergeGainT &Other) const {
200 void updateIfLessThan(const MergeGainT &Other) {
406 MergeGainT getCachedMergeGain(ChainT *Src, ChainT *Dst) const {
410 void setCachedMergeGain(ChainT *Src, ChainT *Dst, MergeGainT MergeGain) {
425 void setMergeGain(MergeGainT Gain) { CachedGain = Gain; }
427 MergeGainT getMergeGain() const { return CachedGain; }
439 MergeGainT CachedGain;
445 MergeGainT CachedGainForward;
446 MergeGainT CachedGainBackward;
751 MergeGainT BestGain;
778 MergeGainT CurGain = getBestMergeGain(ChainPred, ChainSucc, Edge);
851 MergeGainT getBestMergeGain(ChainT *ChainPred, ChainT *ChainSucc,
862 MergeGainT Gain = MergeGainT();
931 MergeGainT computeMergeGain(const ChainT *ChainPred, const ChainT *ChainSucc,
940 return MergeGainT();
945 return MergeGainT(NewScore - CurScore, MergeOffset, MergeType);
1152 MergeGainT Gain = getBestMergeGain(Edge);
1175 MergeGainT BestGain = BestEdge->getMergeGain();
1190 MergeGainT Gain = getBestMergeGain(Edge);
1209 MergeGainT getBestMergeGain(ChainEdge *Edge) const {
1217 MergeGainT Gain = MergeGainT();
1225 MergeGainT NewGain =
1250 MergeGainT computeMergeGain(ChainT *ChainPred, ChainT *ChainSucc,
1267 return MergeGainT(GainScore, MergeOffset, MergeType);