00001 #pragma once 00002 00003 #include "moses/FF/FFState.h" 00004 00005 #include "SVertex.h" 00006 00007 namespace Moses 00008 { 00009 namespace Syntax 00010 { 00011 00012 00013 class SVertexRecombinationUnordered 00014 { 00015 public: 00016 size_t operator()(const SVertex* hypo) const { 00017 return hypo->hash(); 00018 } 00019 00020 bool operator()(const SVertex* hypoA, const SVertex* hypoB) const { 00021 return (*hypoA) == (*hypoB); 00022 } 00023 00024 }; 00025 00026 } // Syntax 00027 } // Moses