mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-10 10:59:21 +03:00
22 lines
421 B
C++
22 lines
421 B
C++
#pragma once
|
|
|
|
#include "moses/FF/FFState.h"
|
|
|
|
namespace Moses
|
|
{
|
|
|
|
struct PointerState : public FFState {
|
|
const void* lmstate;
|
|
PointerState(const void* lms) {
|
|
lmstate = lms;
|
|
}
|
|
int Compare(const FFState& o) const {
|
|
const PointerState& other = static_cast<const PointerState&>(o);
|
|
if (other.lmstate > lmstate) return 1;
|
|
else if (other.lmstate < lmstate) return -1;
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
} // namespace
|