2014-11-04 16:13:56 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "moses/Word.h"
|
2015-10-25 16:37:59 +03:00
|
|
|
#include "moses/Range.h"
|
2014-11-04 16:13:56 +03:00
|
|
|
|
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
namespace Syntax
|
|
|
|
{
|
|
|
|
|
2015-01-14 14:07:42 +03:00
|
|
|
struct PVertex {
|
|
|
|
public:
|
2015-10-25 16:37:59 +03:00
|
|
|
PVertex(const Range &wr, const Word &w) : span(wr), symbol(w) {}
|
2014-11-04 16:13:56 +03:00
|
|
|
|
2015-10-25 16:37:59 +03:00
|
|
|
Range span;
|
2014-11-04 16:13:56 +03:00
|
|
|
Word symbol;
|
|
|
|
};
|
|
|
|
|
2015-02-02 19:34:17 +03:00
|
|
|
inline bool operator==(const PVertex &v, const PVertex &w)
|
|
|
|
{
|
|
|
|
return v.span == w.span && v.symbol == w.symbol;
|
|
|
|
}
|
|
|
|
|
2014-11-04 16:13:56 +03:00
|
|
|
} // Syntax
|
|
|
|
} // Moses
|