SyntaxTree Class Reference

#include <SyntaxTree.h>

List of all members.

Public Types

typedef std::pair< int, int > Range
typedef std::vector< std::string > Labels
typedef std::map< Range, LabelsColl

Public Member Functions

void Add (int startPos, int endPos, const std::string &label, const Parameter &params)
void AddToAll (const std::string &label)
const LabelsFind (int startPos, int endPos) const
void SetHieroLabel (const std::string &label)

Protected Attributes

Coll m_coll
Labels m_defaultLabels


Detailed Description

Definition at line 9 of file SyntaxTree.h.


Member Typedef Documentation

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.


Member Function Documentation

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().

Here is the caller graph for this function:

void SyntaxTree::AddToAll ( const std::string &  label  ) 

Definition at line 32 of file SyntaxTree.cpp.

References m_coll.

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().

Here is the caller graph for this function:

void SyntaxTree::SetHieroLabel ( const std::string &  label  )  [inline]

Definition at line 21 of file SyntaxTree.h.

References m_defaultLabels.


Member Data Documentation

Coll SyntaxTree::m_coll [protected]

Definition at line 28 of file SyntaxTree.h.

Referenced by Add(), AddToAll(), and Find().

Definition at line 29 of file SyntaxTree.h.

Referenced by Find(), and SetHieroLabel().


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:32:02 2017 for Moses by  doxygen 1.5.9