mosesdecoder/moses/FF/FFState.h
2015-10-17 20:14:24 +01:00

40 lines
577 B
C++

#ifndef moses_FFState_h
#define moses_FFState_h
#include <vector>
#include <stddef.h>
#include "util/exception.hh"
namespace Moses
{
class FFState
{
public:
virtual ~FFState();
virtual size_t hash() const = 0;
virtual bool operator==(const FFState& other) const = 0;
virtual bool operator!=(const FFState& other) const {
return !(*this == other);
}
};
class DummyState : public FFState
{
public:
DummyState() {}
virtual size_t hash() const {
return 0;
}
virtual bool operator==(const FFState& other) const {
return true;
}
};
}
#endif