#include <SyntaxTree.h>
Public Types | |
| typedef std::pair< int, int > | Range |
| typedef std::vector< std::string > | Labels |
| typedef std::map< Range, Labels > | Coll |
Public Member Functions | |
| void | Add (int startPos, int endPos, const std::string &label, const Parameter ¶ms) |
| void | AddToAll (const std::string &label) |
| const Labels & | Find (int startPos, int endPos) const |
| void | SetHieroLabel (const std::string &label) |
Protected Attributes | |
| Coll | m_coll |
| Labels | m_defaultLabels |
Definition at line 9 of file SyntaxTree.h.
| typedef std::map<Range, Labels> SyntaxTree::Coll |
Definition at line 14 of file SyntaxTree.h.
| typedef std::vector<std::string> SyntaxTree::Labels |
Definition at line 13 of file SyntaxTree.h.
| typedef std::pair<int, int> SyntaxTree::Range |
Definition at line 12 of file SyntaxTree.h.
| void SyntaxTree::Add | ( | int | startPos, | |
| int | endPos, | |||
| const std::string & | label, | |||
| const Parameter & | params | |||
| ) |
Definition at line 8 of file SyntaxTree.cpp.
References m_coll, Parameter::multiLabel, and range.
Referenced by AlignedSentenceSyntax::XMLParse().

| void SyntaxTree::AddToAll | ( | const std::string & | label | ) |
| const SyntaxTree::Labels & SyntaxTree::Find | ( | int | startPos, | |
| int | endPos | |||
| ) | const |
Definition at line 41 of file SyntaxTree.cpp.
References m_coll, and m_defaultLabels.
Referenced by AlignedSentenceSyntax::CreateNonTerms().

| void SyntaxTree::SetHieroLabel | ( | const std::string & | label | ) | [inline] |
Coll SyntaxTree::m_coll [protected] |
Labels SyntaxTree::m_defaultLabels [protected] |
1.5.9