blob: 94d8cbdffdfde7da36c796717f3399bc43b30c9f (
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
|
#ifndef ALONE_LABELED_EDGE__
#define ALONE_LABELED_EDGE__
#include "search/edge.hh"
#include <string>
#include <vector>
namespace alone {
class LabeledEdge : public search::Edge {
public:
LabeledEdge() {}
void AppendWord(const std::string *word) {
words_.push_back(word);
}
const std::vector<const std::string *> &Words() const {
return words_;
}
private:
// NULL for non-terminals.
std::vector<const std::string*> words_;
};
} // namespace alone
#endif // ALONE_LABELED_EDGE__
|