File size: 468 Bytes
fd49381 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#pragma once
#include <vector>
namespace Moses
{
class FFState;
namespace Syntax
{
struct PVertex;
struct SHyperedge;
// A vertex in the search hypergraph.
//
// Important: a SVertex owns its incoming SHyperedge objects and its FFState
// objects and will delete them on destruction.
struct SVertex {
~SVertex();
SHyperedge *best;
std::vector<SHyperedge*> recombined;
const PVertex *pvertex;
std::vector<FFState*> states;
};
} // Syntax
} // Moses
|