00001 #pragma once 00002 00003 #include "moses/Word.h" 00004 #include "moses/Range.h" 00005 00006 namespace Moses 00007 { 00008 namespace Syntax 00009 { 00010 00011 struct PVertex { 00012 public: 00013 PVertex(const Range &wr, const Word &w) : span(wr), symbol(w) {} 00014 00015 Range span; 00016 Word symbol; 00017 }; 00018 00019 inline bool operator==(const PVertex &v, const PVertex &w) 00020 { 00021 return v.span == w.span && v.symbol == w.symbol; 00022 } 00023 00024 } // Syntax 00025 } // Moses