NonTerm Class Reference

#include <NonTerm.h>

Inheritance diagram for NonTerm:

Inheritance graph
[legend]
Collaboration diagram for NonTerm:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 NonTerm (const ConsistentPhrase &consistentPhrase, const std::string &source, const std::string &target)
virtual ~NonTerm ()
const ConsistentPhraseGetConsistentPhrase () const
int GetWidth (Moses::FactorDirection direction) const
virtual bool IsNonTerm () const
std::string GetString () const
virtual std::string Debug () const
virtual void Output (std::ostream &out) const
void Output (std::ostream &out, Moses::FactorDirection direction) const
const std::string & GetLabel (Moses::FactorDirection direction) const
bool IsHiero (Moses::FactorDirection direction, const Parameter &params) const
bool IsHiero (const Parameter &params) const

Protected Attributes

const ConsistentPhrasem_consistentPhrase
std::string m_source
std::string m_target


Detailed Description

Definition at line 15 of file NonTerm.h.


Constructor & Destructor Documentation

NonTerm::NonTerm ( const ConsistentPhrase consistentPhrase,
const std::string &  source,
const std::string &  target 
)

Definition at line 16 of file NonTerm.cpp.

NonTerm::~NonTerm (  )  [virtual]

Definition at line 27 of file NonTerm.cpp.


Member Function Documentation

std::string NonTerm::Debug (  )  const [virtual]

Implements RuleSymbol.

Definition at line 32 of file NonTerm.cpp.

References ConsistentPhrase::Debug(), m_consistentPhrase, m_source, and m_target.

Referenced by Rule::Debug().

Here is the call graph for this function:

Here is the caller graph for this function:

const ConsistentPhrase& NonTerm::GetConsistentPhrase (  )  const [inline]

const std::string & NonTerm::GetLabel ( Moses::FactorDirection  direction  )  const

Definition at line 50 of file NonTerm.cpp.

References Moses::Input, m_source, and m_target.

Referenced by ConsistentPhrase::Debug(), IsHiero(), and Output().

Here is the caller graph for this function:

std::string NonTerm::GetString (  )  const [inline, virtual]

Implements RuleSymbol.

Definition at line 34 of file NonTerm.h.

References m_source, and m_target.

Referenced by CompareRules::operator()().

Here is the caller graph for this function:

int NonTerm::GetWidth ( Moses::FactorDirection  direction  )  const

Definition at line 66 of file NonTerm.cpp.

References GetConsistentPhrase(), and ConsistentPhrase::GetWidth().

Referenced by Rule::Prevalidate().

Here is the call graph for this function:

Here is the caller graph for this function:

bool NonTerm::IsHiero ( const Parameter params  )  const

Definition at line 61 of file NonTerm.cpp.

References Moses::Input, IsHiero(), and Moses::Output.

Here is the call graph for this function:

bool NonTerm::IsHiero ( Moses::FactorDirection  direction,
const Parameter params 
) const

Definition at line 55 of file NonTerm.cpp.

References GetLabel(), and Parameter::hieroNonTerm.

Referenced by Rule::GetScope(), IsHiero(), and Rule::Prevalidate().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool NonTerm::IsNonTerm (  )  const [inline, virtual]

Implements RuleSymbol.

Definition at line 30 of file NonTerm.h.

void NonTerm::Output ( std::ostream &  out,
Moses::FactorDirection  direction 
) const

Definition at line 45 of file NonTerm.cpp.

References GetLabel().

Here is the call graph for this function:

void NonTerm::Output ( std::ostream &  out  )  const [virtual]

Implements RuleSymbol.

Definition at line 40 of file NonTerm.cpp.

References m_source, and m_target.

Referenced by Rule::Output().

Here is the caller graph for this function:


Member Data Documentation

Definition at line 47 of file NonTerm.h.

Referenced by Debug(), and GetConsistentPhrase().

std::string NonTerm::m_source [protected]

Definition at line 48 of file NonTerm.h.

Referenced by Debug(), GetLabel(), GetString(), and Output().

std::string NonTerm::m_target [protected]

Definition at line 48 of file NonTerm.h.

Referenced by Debug(), GetLabel(), GetString(), and Output().


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

Generated on Thu Jul 6 00:31:55 2017 for Moses by  doxygen 1.5.9