00001 #pragma once
00002
00003 #include <vector>
00004
00005 #include <boost/shared_ptr.hpp>
00006
00007 #include "SHyperedge.h"
00008 #include "SVertex.h"
00009
00010 namespace Moses
00011 {
00012 namespace Syntax
00013 {
00014
00015 typedef std::vector<boost::shared_ptr<SVertex> > SVertexStack;
00016
00017 struct SVertexStackContentOrderer {
00018 public:
00019 bool operator()(const boost::shared_ptr<SVertex> &x,
00020 const boost::shared_ptr<SVertex> &y) {
00021 return x->best->label.futureScore > y->best->label.futureScore;
00022 }
00023 };
00024
00025 }
00026 }