diff options
author | Paul Baltescu <pauldb89@gmail.com> | 2013-03-07 22:49:46 +0000 |
---|---|---|
committer | Paul Baltescu <pauldb89@gmail.com> | 2013-03-07 22:49:46 +0000 |
commit | e362788ec318f0d9a349eeb2459cf72747502919 (patch) | |
tree | 474f8bccf1f88a0a358094fd4d855ebc6278a2b2 /extractor/matchings_trie.h | |
parent | b34c347cd7f4f8965e4d943543a31f9a4e886f54 (diff) |
Parallelized grammar extraction.
Diffstat (limited to 'extractor/matchings_trie.h')
-rw-r--r-- | extractor/matchings_trie.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/extractor/matchings_trie.h b/extractor/matchings_trie.h index a54671d2..f3dcc075 100644 --- a/extractor/matchings_trie.h +++ b/extractor/matchings_trie.h @@ -37,11 +37,14 @@ struct TrieNode { class MatchingsTrie { public: - void Reset(); + MatchingsTrie(); + + virtual ~MatchingsTrie(); + shared_ptr<TrieNode> GetRoot() const; private: - void ResetTree(shared_ptr<TrieNode> root); + void DeleteTree(shared_ptr<TrieNode> root); shared_ptr<TrieNode> root; }; |