Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SVertex.h « Syntax « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 047b9874232e80af0ccf62980aff6527c78108bd (plain)
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
#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