blob: b55f97fe684675a6da87f093d80b397b60624828 (
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
|
#include "SVertex.h"
#include "moses/FF/FFState.h"
#include "SHyperedge.h"
namespace Moses
{
namespace Syntax
{
SVertex::~SVertex()
{
// Delete incoming SHyperedge objects.
delete best;
for (std::vector<SHyperedge*>::iterator p = recombined.begin();
p != recombined.end(); ++p) {
delete *p;
}
// Delete FFState objects.
for (std::vector<FFState*>::iterator p = states.begin();
p != states.end(); ++p) {
delete *p;
}
}
} // Syntax
} // Moses
|