#include <TargetPhraseCollection.h>
Public Types | |
typedef boost::shared_ptr < TargetPhraseCollectionWithSourcePhrase > | shared_ptr |
typedef boost::shared_ptr < TargetPhraseCollectionWithSourcePhrase const > | shared_const_ptr |
Public Member Functions | |
const std::vector< Phrase > & | GetSourcePhrases () const |
void | Add (TargetPhrase *targetPhrase) |
add a new entry into collection | |
void | Add (TargetPhrase *targetPhrase, const Phrase &sourcePhrase) |
Protected Attributes | |
std::vector< Phrase > | m_sourcePhrases |
Definition at line 124 of file TargetPhraseCollection.h.
typedef boost::shared_ptr<TargetPhraseCollectionWithSourcePhrase const> Moses::TargetPhraseCollectionWithSourcePhrase::shared_const_ptr |
Reimplemented from Moses::TargetPhraseCollection.
Definition at line 134 of file TargetPhraseCollection.h.
typedef boost::shared_ptr<TargetPhraseCollectionWithSourcePhrase> Moses::TargetPhraseCollectionWithSourcePhrase::shared_ptr |
Reimplemented from Moses::TargetPhraseCollection.
Definition at line 133 of file TargetPhraseCollection.h.
void Moses::TargetPhraseCollectionWithSourcePhrase::Add | ( | TargetPhrase * | targetPhrase, | |
const Phrase & | sourcePhrase | |||
) |
Definition at line 112 of file TargetPhraseCollection.cpp.
References Moses::TargetPhraseCollection::m_collection, and m_sourcePhrases.
void Moses::TargetPhraseCollectionWithSourcePhrase::Add | ( | TargetPhrase * | targetPhrase | ) |
add a new entry into collection
Reimplemented from Moses::TargetPhraseCollection.
Definition at line 107 of file TargetPhraseCollection.cpp.
References UTIL_THROW.
const std::vector<Phrase>& Moses::TargetPhraseCollectionWithSourcePhrase::GetSourcePhrases | ( | ) | const [inline] |
std::vector<Phrase> Moses::TargetPhraseCollectionWithSourcePhrase::m_sourcePhrases [protected] |
Definition at line 130 of file TargetPhraseCollection.h.
Referenced by Add(), and GetSourcePhrases().