mosesdecoder/util/exception.hh File Reference

#include <exception>
#include <limits>
#include <sstream>
#include <string>
#include <stdint.h>

Go to the source code of this file.

Classes

class  util::Exception
struct  util::Exception::ExceptionTag< T >
class  util::ErrnoException
class  util::FileOpenException
class  util::OverflowException

Namespaces

namespace  util

Defines

#define UTIL_FUNC_NAME   NULL
#define UTIL_THROW_BACKEND(Condition, Exception, Arg, Modify)
#define UTIL_THROW_ARG(Exception, Arg, Modify)   UTIL_THROW_BACKEND(NULL, Exception, Arg, Modify)
#define UTIL_THROW(Exception, Modify)   UTIL_THROW_BACKEND(NULL, Exception, , Modify);
#define UTIL_THROW2(Modify)   UTIL_THROW_BACKEND(NULL, util::Exception, , Modify);
#define UTIL_UNLIKELY(x)   (x)
#define UTIL_LIKELY(x)   (x)
#define UTIL_THROW_IF_ARG(Condition, Exception, Arg, Modify)
#define UTIL_THROW_IF(Condition, Exception, Modify)   UTIL_THROW_IF_ARG(Condition, Exception, , Modify)
#define UTIL_THROW_IF2(Condition, Modify)   UTIL_THROW_IF_ARG(Condition, util::Exception, , Modify)

Functions

template<class Except , class Data >
Except::template ExceptionTag
< Except & >::Identity 
util::operator<< (Except &e, const Data &data)
template<unsigned len>
std::size_t util::CheckOverflowInternal (uint64_t value)
template<>
std::size_t util::CheckOverflowInternal< 8 > (uint64_t value)
std::size_t util::CheckOverflow (uint64_t value)


Define Documentation

#define UTIL_FUNC_NAME   NULL

Definition at line 60 of file exception.hh.

#define UTIL_LIKELY (  )     (x)

Definition at line 97 of file exception.hh.

Referenced by util::FakeOFStream::write().

#define UTIL_THROW ( Exception,
Modify   )     UTIL_THROW_BACKEND(NULL, Exception, , Modify);

Definition at line 82 of file exception.hh.

Referenced by Moses::bitext::pstats::add(), Moses::TargetPhraseCollectionWithSourcePhrase::Add(), Moses::HypothesisStackCubePruning::AddPrune(), Moses::ScoreComponentCollection::Assign(), lm::ngram::trie::BitPacked::BaseInit(), lm::ngram::trie::BitPackedMiddle< Bhiksha >::BitPackedMiddle(), util::BitPackingSanity(), lm::ngram::trie::BuildTrie(), MosesTraining::ExtractionPhrasePair::CollectAllPhraseOrientations(), MosesTraining::ScoreFeatureManager::configure(), Moses::PhraseDictionaryTreeAdaptor::CreateRuleLookupManager(), Moses::PhraseDictionaryMultiModel::CreateRuleLookupManager(), Moses::PhraseDictionaryDynSuffixArray::CreateRuleLookupManager(), Moses::PhraseDictionaryDynamicCacheBased::CreateRuleLookupManager(), Moses::TranslationOptionCollectionLattice::CreateTranslationOptionsForRange(), Moses::RDLM::EvaluateWhenApplied(), Moses::TreeStructureFeature::EvaluateWhenApplied(), Moses::CoveredReferenceFeature::EvaluateWhenApplied(), lm::ngram::trie::ArrayBhiksha::FinishedLoading(), Moses::fOpen(), Moses::GetConstraint(), MosesTuning::StatisticsBasedScorer::getReferenceLength(), Moses::AlignmentInfo::GetSortedAlignments(), Moses::PhraseDictionary::GetTargetPhraseCollectionLEGACY(), Moses::PhraseDictionary::GetTargetPhraseCollectionNonCacheLEGACY(), Moses::TrellisPath::GetTargetWordsRange(), Moses::PhraseDictionaryMultiModel::getWeights(), Moses::GlobalLexicalModelUnlimited::GlobalLexicalModelUnlimited(), go(), Moses::LanguageModel::IncrementalCallback(), Moses::PhraseDictionaryFuzzyMatch::InitializeForInput(), lm::ngram::IsBinaryFormat(), Moses::TargetNgramFeature::Load(), Moses::ConstrainedDecoding::Load(), Moses::StaticData::LoadDecodeGraphs(), Moses::StaticData::LoadDecodeGraphsNew(), Moses::Parameter::LoadParam(), lm::ngram::LoadVirtual(), main(), lm::ngram::MatchCheck(), lm::ngram::MissingSentenceMarker(), lm::ngram::MissingUnknown(), lm::common::ModelBuffer::ModelBuffer(), ugdiss::mm2dTable< OFFSET, ID, VAL, INIT >::open(), Moses::ProcessAndStripDLT(), Moses::TranslationOptionCollectionLattice::ProcessUnknownWord(), lm::ReadARPACounts(), lm::ReadBackoff(), lm::ReadEnd(), lm::ngram::ReadHeader(), lm::ReadNGramHeader(), Moses::RDLM::SetParameter(), Moses::TreeStructureFeature::SetParameter(), Moses::SparseHieroReorderingFeature::SetParameter(), Moses::SpanLength::SetParameter(), Moses::SourceGHKMTreeInputMatchFeature::SetParameter(), Moses::SoftMatchingFeature::SetParameter(), lm::ngram::SeparatelyQuantize::SetupMemory(), lm::ngram::SeparatelyQuantize::UpdateConfigFromBinary(), lm::ngram::trie::ArrayBhiksha::UpdateConfigFromBinary(), and lm::PositiveProbWarn::Warn().

#define UTIL_THROW2 ( Modify   )     UTIL_THROW_BACKEND(NULL, util::Exception, , Modify);

Definition at line 85 of file exception.hh.

Referenced by MosesTraining::PropertiesConsolidator::ActivatePartsOfSpeechProcessing(), MosesTraining::PropertiesConsolidator::ActivateSourceLabelsProcessing(), Moses::ChartHypothesisCollection::AddHypothesis(), Moses::HypothesisStackNormal::AddPrune(), Moses::BlockHashIndex::AddRange(), Moses::BlockHashIndex::CalcHash(), MosesTuning::BleuScorer::CalcReferenceLength(), Moses::LanguageModelImplementation::CalcScore(), Moses::ConstructBackwardLM(), Moses::ConstructKenLM(), Moses::ConstructOSMLM(), Moses::Parameter::ConvertWeightArgsLM(), Moses::PhraseDictionaryTree::Create(), Moses::PDTAimp::Create(), Moses::Search::CreateSearch(), Moses::RDLM::EvaluateWhenApplied(), Moses::TreeStructureFeature::EvaluateWhenApplied(), Moses::PhraseOrientationFeature::EvaluateWhenApplied(), Moses::OpSequenceModel::EvaluateWhenApplied(), Moses::LexicalReordering::EvaluateWhenApplied(), Moses::SearchNormalBatch::ExpandHypothesis(), Moses::bitext::fill_lr_vec2(), Moses::fRead(), Moses::fReadString(), Moses::fReadVector(), Moses::fSeek(), Moses::fWrite(), Moses::fWriteString(), Moses::fWriteVector(), Moses::Syntax::KBestExtractor::GetOutputPhrase(), Moses::Syntax::KBestExtractor::GetOutputTree(), Moses::ChartKBestExtractor::GetOutputTree(), Moses::ConfusionNet::GetSubString(), Moses::Mmsapt::GetTargetPhraseCollectionLEGACY(), Moses::SourceLabelsPhraseProperty::GetValueString(), Moses::OrientationPhraseProperty::GetValueString(), Moses::NonTermContextProperty::GetValueString(), Moses::CountsPhraseProperty::GetValueString(), Moses::ConfusionNet::GetWord(), Moses::ContextParameters::init(), Moses::PhraseDictionaryFuzzyMatch::InitializeForInput(), Moses::PhraseDictionaryTreeAdaptor::InitializeForInput(), Moses::PhraseOrientationFeature::LeftBoundaryL2RScoreRecursive(), Moses::LexicalReordering::LexicalReordering(), Moses::RuleTableLoaderStandard::Load(), Moses::Syntax::T2S::RuleTrieLoader::Load(), Moses::Syntax::S2T::RuleTrieLoader::Load(), Moses::Syntax::RuleTableFF::Load(), Moses::Syntax::F2S::HyperTreeLoader::Load(), Moses::SoftSourceSyntacticConstraintsFeature::LoadSourceLabelSet(), main(), Moses::Syntax::T2S::Manager< RuleMatcher >::Manager(), Moses::Syntax::F2S::Manager< RuleMatcher >::Manager(), Moses::EncodingTask::operator()(), Moses::RankingTask::operator()(), Moses::BaseManager::OutputSearchGraphAsHypergraph(), Moses::PhraseDictionaryTree::PhraseDictionaryTree(), MosesTraining::PropertiesConsolidator::ProcessSourceLabelsPropertyValue(), Moses::SourceLabelsPhraseProperty::ProcessValue(), Moses::OrientationPhraseProperty::ProcessValue(), Moses::CountsPhraseProperty::ProcessValue(), util::stream::RewindableStream::Rewind(), Moses::PhraseOrientationFeature::RightBoundaryR2LScoreRecursive(), Moses::VWTargetSentence::SetConstraints(), Moses::VW::SetParameter(), Moses::FeatureFunction::SetParameter(), Moses::BleuScoreFeature::SetParameter(), Moses::TranslationTask::SetupManager(), and Moses::PhraseOrientationFeature::ToString().

#define UTIL_THROW_ARG ( Exception,
Arg,
Modify   )     UTIL_THROW_BACKEND(NULL, Exception, Arg, Modify)

Definition at line 79 of file exception.hh.

Referenced by util::ErsatzPRead(), and util::ErsatzPWrite().

#define UTIL_THROW_BACKEND ( Condition,
Exception,
Arg,
Modify   ) 

Value:

do { \
  Exception UTIL_e Arg; \
  UTIL_e.SetLocation(__FILE__, __LINE__, UTIL_FUNC_NAME, #Exception, Condition); \
  UTIL_e << Modify; \
  throw UTIL_e; \
} while (0)

Definition at line 72 of file exception.hh.

#define UTIL_THROW_IF ( Condition,
Exception,
Modify   )     UTIL_THROW_IF_ARG(Condition, Exception, , Modify)

Definition at line 106 of file exception.hh.

Referenced by MosesTuning::AddThreshold(), util::stream::Chain::Chain(), util::ProbingHashTable< ProbingVocabularyEntry, util::IdentityHash >::CheckConsistency(), util::CheckOverflowInternal(), lm::ngram::SortedVocabulary::ComputeRenumbering(), MosesTraining::ScoreFeatureManager::configure(), Moses::FeatureRegistry::Construct(), Moses::Word::CreateFromString(), util::CreateOrThrow(), util::ErsatzPRead(), util::ErsatzPWrite(), util::ProbingHashTable< ProbingVocabularyEntry, util::IdentityHash >::FindOrInsert(), lm::ngram::GrowableVocab< NewWordAction >::FindOrInsert(), lm::ngram::detail::GenericModel< Search, VocabularyT >::GenericModel(), GrabOrDie(), util::stream::Link::Init(), lm::ngram::trie::RecordReader::Init(), MosesTuning::InitialiseWeights(), util::ProbingHashTable< ProbingVocabularyEntry, util::IdentityHash >::Insert(), lm::ngram::IsBinaryFormat(), lm::builder::JointOrder(), MosesTuning::Optimizer::LineOptimize(), Moses::LanguageModelDALM::Load(), lm::ngram::BinaryFormat::LoadBinary(), lm::ngram::ProbingVocabulary::LoadedBinary(), lm::ngram::LowerRestBuild< Model >::LowerRestBuild(), main(), util::MakeTemp(), util::MapOrThrow(), lm::ngram::MatchCheck(), util::mkstemp_and_unlink(), MosesTuning::FixedAllocator< Edge >::New(), util::OpenReadOrThrow(), MosesTuning::Point::operator+(), lm::ngram::trie::RecordReader::operator++(), MosesTuning::Point::operator+=(), lm::ngram::trie::RecordReader::Overwrite(), lm::builder::Pipeline(), Moses::PhrasePropertyFactory::ProduceProperty(), MosesTuning::Graph::Prune(), lm::ngram::Query(), MosesTuning::Point::Randomize(), lm::Read1Gram(), lm::ReadARPACounts(), lm::ReadBackoff(), MosesTuning::ReadGraph(), lm::ReadNGram(), util::ReadOrThrow(), util::stream::LineInput::Run(), util::stream::PRead::Run(), util::stream::Read::Run(), MosesTuning::sentenceLevelBackgroundBleu(), Moses::TargetPhrase::SetAlignmentInfo(), MosesTuning::smoothedSentenceBleu(), util::stream::Sort< Compare, Combine >::Sort(), split_line(), util::SyncOrThrow(), util::UnmapOrThrow(), and util::WriteOrThrow().

#define UTIL_THROW_IF2 ( Condition,
Modify   )     UTIL_THROW_IF_ARG(Condition, util::Exception, , Modify)

Definition at line 109 of file exception.hh.

Referenced by MosesTraining::PropertiesConsolidator::ActivatePartsOfSpeechProcessing(), MosesTraining::PropertiesConsolidator::ActivateSourceLabelsProcessing(), Moses::TranslationOptionList::Add(), Moses::TranslationOptionCollection::Add(), Moses::bitext::imBitext< TKN >::add(), Moses::DottedRuleStackOnDisk::Add(), Moses::DottedRuleColl::Add(), Moses::TreeInput::AddChartLabel(), Moses::FactorCollection::AddFactor(), Moses::ChartHypothesisCollection::AddHypothesis(), Moses::BitmapContainer::AddHypothesis(), Moses::HypothesisStackCubePruning::AddInitial(), Moses::Grid::addParam(), ugdiss::TSA_tree_iterator< Token >::approxOccurrenceCount(), Moses::ScoreComponentCollection::Assign(), Moses::BackwardsEdge::BackwardsEdge(), batch_run(), Moses::PDTAimp::CacheSource(), Moses::Manager::CalcLatticeSamples(), Moses::Manager::CalcNBest(), Moses::LanguageModelImplementation::CalcScore(), Moses::BackwardLanguageModel< Model >::CalcScore(), Moses::CalcTranslationScore(), Moses::ChartRuleLookupManagerOnDisk::ChartRuleLookupManagerOnDisk(), LogQtizer::code(), lm::ngram::SortedVocabulary::ComputeRenumbering(), Moses::ConfusionNet::ConfusionNet(), Moses::ConstructKenLM(), Moses::PrefixTreeMap::ConvertPhrase(), Moses::Parameter::ConvertPhrasePenalty(), Moses::Parameter::ConvertWeightArgs(), Moses::Parameter::ConvertWeightArgsDistortion(), Moses::Parameter::ConvertWeightArgsGeneration(), Moses::Parameter::ConvertWeightArgsLM(), Moses::PrefixTreeMap::ConvertWord(), Moses::LRState::CopyScores(), Moses::PhraseDictionaryTree::Create(), Moses::LexicalReorderingTableTree::Create(), Moses::Phrase::CreateFromString(), Moses::TranslationOptionCollectionLattice::CreateTranslationOptions(), Moses::TranslationOptionCollection::CreateTranslationOptionsForRange(), Moses::Parameter::CreateWeightsMap(), Moses::FeatureFactory::DefaultSetup(), Moses::NieceTerminal::DefaultWeights(), Moses::ControlRecombination::DefaultWeights(), Moses::ConstrainedDecoding::DefaultWeights(), Moses::DynamicCacheBasedLanguageModel::DynamicCacheBasedLanguageModel(), Moses::BackwardLanguageModel< Model >::Evaluate(), Moses::RuleScope::EvaluateInIsolation(), Moses::PhrasePenalty::EvaluateInIsolation(), Moses::PhraseOrientationFeature::EvaluateInIsolation(), Moses::DynamicCacheBasedLanguageModel::EvaluateInIsolation(), Moses::LanguageModelImplementation::EvaluateWhenApplied(), Moses::PhraseOrientationFeature::EvaluateWhenApplied(), Moses::SoftSourceSyntacticConstraintsFeature::EvaluateWithSourceContext(), Moses::bitext::expand_block(), Moses::TranslationOptionCollectionLattice::Extend(), Moses::PDTimp::Extend(), Moses::PrefixTreeMap::Extend(), Moses::Syntax::KBestExtractor::Extract(), Moses::ChartKBestExtractor::Extract(), Moses::FileHandler::FileHandler(), Moses::filter_arguments(), floyd_warshall(), Moses::bitext::PhraseScorer< Token >::fname(), Moses::PrefixTreeMap::GetCandidates(), Moses::ChartRuleLookupManagerOnDisk::GetChartRuleCollection(), Moses::PhraseDictionaryNodeMemory::GetChild(), Moses::Syntax::T2S::RuleTrie::Node::GetChild(), Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetChild(), PCN::getCNAlt(), Moses::TabbedSentence::GetColumn(), Moses::ConfusionNet::GetColumn(), Moses::VWFeatureBase::GetFeatures(), Moses::PhraseDictionaryOnDisk::GetImplementation(), Moses::TranslationOption::GetInputPath(), Moses::ChartParser::GetInputPath(), Moses::TranslationOptionCollectionConfusionNet::GetInputPathList(), Moses::InputPath::GetLastWord(), Moses::DecodeGraph::GetMaxChartSpan(), Moses::BilingualDynSuffixArray::GetMosesFactorIDs(), Moses::Syntax::T2S::RuleTrie::Node::GetNonTerminalChild(), Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetNonTerminalChild(), Moses::WordsRange::GetNumWordsBetween(), Moses::PhraseDictionaryNodeMemory::GetOrCreateChild(), Moses::PhraseDictionaryFuzzyMatch::GetOrCreateNode(), Moses::PhraseDictionaryMemory::GetOrCreateNode(), Moses::Syntax::T2S::RuleTrie::Node::GetOrCreateNonTerminalChild(), Moses::Syntax::S2T::RuleTrieCYKPlus::Node::GetOrCreateNonTerminalChild(), Moses::Syntax::T2S::RuleTrie::Node::GetOrCreateTargetPhraseCollection(), Moses::LRModel::GetOrientation(), Moses::ChartKBestExtractor::GetOutputPhrase(), Moses::ChartHypothesis::GetOutputPhrase(), Moses::Manager::GetPlaceholders(), Moses::Hypothesis::GetPlaceholders(), OnlineRLM< T >::getProb(), Moses::NonTermContextProperty::GetProb(), Moses::PhraseDictionaryFuzzyMatch::GetRootNode(), Moses::TranslationTask::GetScope(), Moses::LexicalReorderingTableTree::GetScore(), Moses::ScoreComponentCollection::GetScoreForProducer(), Moses::VWFeatureBase::GetSourceFeatures(), Moses::ThreadLocalByFeatureStorage< Features >::GetStored(), Moses::TrellisPath::GetSurfacePhrase(), Moses::PDTimp::GetTargetCandidates(), Moses::VWFeatureBase::GetTargetFeatures(), Moses::PhraseDictionaryTransliteration::GetTargetPhraseCollection(), Moses::RuleCube::GetTopScore(), Moses::TranslationOptionCollection::GetTranslationOptionList(), Moses::Hypothesis::GetWord(), UnivHash_linear< T >::hash(), UnivHash_tableXOR< T >::hash(), util::stream::RewindableStream::Init(), Moses::bitext::SingleRealValuedParameterPhraseScorerFamily< Token >::init(), Moses::Mmsapt::InitializeForInput(), Moses::PhraseDictionaryOnDisk::InitializeForInput(), Moses::PhraseDictionaryFuzzyMatch::InitializeForInput(), Moses::PhraseDictionaryALSuffixArray::InitializeForInput(), Moses::VWFeatureSourceExternalFeatures::InitializeForInput(), Moses::VW::InitializeForInput(), Moses::GlobalLexicalModelUnlimited::InitializeForInput(), Moses::GlobalLexicalModel::InitializeForInput(), Moses::InputFeature::InputFeature(), Moses::DynSuffixArray::Insert(), PerfectHash< T >::insert(), Moses::IOWrapper::IOWrapper(), Moses::LexicalReordering::LexicalReordering(), Moses::Mmsapt::Load(), Moses::RuleTableLoaderStandard::Load(), Moses::PhraseDictionaryMultiModelCounts::Load(), Moses::PhraseDictionaryMultiModel::Load(), Moses::Vocab::Load(), OnlineRLM< T >::load(), HashBase< T >::load(), Moses::PhraseDictionaryCompact::Load(), Moses::BilingualDynSuffixArray::Load(), Moses::Syntax::T2S::RuleTrieLoader::Load(), Moses::Syntax::S2T::RuleTrieLoader::Load(), Moses::Syntax::F2S::HyperTreeLoader::Load(), Moses::RDLM::Load(), Moses::LanguageModelRandLM::Load(), Moses::OxLM< Model >::Load(), Moses::NeuralLMWrapper::Load(), Moses::GenerationDictionary::Load(), Moses::WordTranslationFeature::Load(), Moses::TargetWordInsertionFeature::Load(), Moses::TargetBigramFeature::Load(), Moses::SourceWordDeletionFeature::Load(), Moses::SoftMatchingFeature::Load(), Moses::PhrasePairFeature::Load(), Moses::Model1LexicalTable::Load(), Moses::Model1Vocabulary::Load(), Moses::PhraseDictionaryDynamicCacheBased::Load_Single_File(), Moses::StaticData::LoadAlternateWeightSettings(), loadCountOfCounts(), Moses::StaticData::LoadDecodeGraphsNew(), Moses::StaticData::LoadNonTerminals(), Moses::Parameters::loadParams(), Moses::SoftSourceSyntacticConstraintsFeature::LoadSourceLabelSet(), Moses::StaticData::LoadSparseWeightsFromConfig(), Moses::SoftSourceSyntacticConstraintsFeature::LoadTargetSourceLeftHandSideJointCountFile(), LogQtizer::LogQtizer(), Moses::bitext::Bitext< TKN >::lookup(), main(), OnlineRLM< T >::markPrefix(), Moses::Phrase::MergeFactors(), Moses::mergescores(), lm::common::ModelBuffer::ModelBuffer(), OnlineRLM< T >::OnlineRLM(), Moses::HypothesisScoreOrdererWithDistortion::operator()(), Moses::operator<<(), Moses::bitext::SentenceBias::operator[](), Moses::bitext::DocumentBias::operator[](), Moses::Syntax::Manager::OutputBest(), Moses::Incremental::Manager::OutputNBestList(), Moses::Manager::OutputSearchGraphAsHypergraph(), Moses::BaseManager::OutputSearchGraphAsHypergraph(), Moses::Manager::OutputSurface(), Moses::Hypothesis::OutputSurface(), Moses::BaseManager::OutputSurface(), Moses::StaticData::OverrideFeatureNames(), Moses::StaticData::OverrideFeatures(), Moses::parseLine(), Moses::ScoreComponentCollection::PartialInnerProduct(), PerfectHash< T >::PerfectHash(), Moses::PhraseDictionaryDynamicCacheBased::PhraseDictionaryDynamicCacheBased(), Moses::PhraseDictionaryMultiModel::PhraseDictionaryMultiModel(), Moses::PhraseDictionaryMultiModelCounts::PhraseDictionaryMultiModelCounts(), Moses::PhraseDictionaryTransliteration::PhraseDictionaryTransliteration(), ugdiss::LexicalPhraseScorer2< TKN >::plup_bwd(), ugdiss::LexicalPhraseScorer2< TKN >::plup_fwd(), Moses::ScoreComponentCollection::PlusEquals(), Moses::ScorePair::PlusEquals(), Moses::bitext::Bitext< TKN >::prep2(), Moses::ChartParserUnknown::Process(), Moses::BitmapContainer::ProcessBestHypothesis(), processFiles(), MosesTraining::PropertiesConsolidator::ProcessPOSPropertyValue(), Counter::processSentence(), MosesTraining::PropertiesConsolidator::ProcessSourceLabelsPropertyValue(), Moses::SpanLengthPhraseProperty::ProcessValue(), Moses::PDTAimp::PruneTargetCandidates(), Moses::ChartHypothesisCollection::PruneToSize(), Moses::bitext::PScorePbwd< Token >::PScorePbwd(), Moses::bitext::PScorePfwd< Token >::PScorePfwd(), Moses::bitext::PScoreUnaligned< Token >::PScoreUnaligned(), OnlineRLM< T >::query(), Moses::bitext::query_bias_server(), Moses::PrefixTreeF< T, D >::read(), Moses::ReformateHieroScore(), Moses::ReformatHieroRule(), Moses::RuleCubeItem::ReleaseHypothesis(), Moses::TranslationOptionList::Remove(), PerfectHash< T >::remove(), Moses::Phrase::RemoveWord(), Moses::StaticData::ResetWeights(), Moses::TranslationTask::Run(), HashBase< T >::save(), Moses::SavedNodeOnDisk::SavedNodeOnDisk(), Moses::TargetPhrase::SetAlignmentInfo(), Moses::TgtCand::SetFeatures(), Moses::TranslationOption::SetInputPath(), Moses::PhraseDictionaryMultiModelCounts::SetParameter(), Moses::FeatureFunction::SetParameter(), Moses::BleuScoreFeature::SetParameter(), Moses::TargetPhrase::SetProperties(), Parameter::SetScopeSpan(), Moses::FileHandler::setStreamBuffer(), Moses::FeatureFunction::SetTuneableComponents(), Moses::ChartHypothesisCollection::SortHypotheses(), Moses::ChartCell::SortHypotheses(), ThrowingFwrite(), ugdiss::toString(), Moses::TranslationOptionCollectionConfusionNet::TranslationOptionCollectionConfusionNet(), Moses::TranslationOptionCollectionLattice::TranslationOptionCollectionLattice(), Moses::UnknownWordPenaltyProducer::UnknownWordPenaltyProducer(), Moses::Vocab::Vocab(), Moses::Parameter::WeightOverwrite(), Moses::WordLattice::WordLattice(), and Moses::WordPenaltyProducer::WordPenaltyProducer().

#define UTIL_THROW_IF_ARG ( Condition,
Exception,
Arg,
Modify   ) 

Value:

do { \
  if (UTIL_UNLIKELY(Condition)) { \
    UTIL_THROW_BACKEND(#Condition, Exception, Arg, Modify); \
  } \
} while (0)

Definition at line 100 of file exception.hh.

Referenced by util::DupOrThrow(), util::FDOpenOrThrow(), util::FDOpenReadOrThrow(), util::FSyncOrThrow(), util::PartialRead(), util::ResizeOrThrow(), util::SizeOrThrow(), and util::WriteOrThrow().

#define UTIL_UNLIKELY (  )     (x)

Definition at line 91 of file exception.hh.


Generated on Tue Jul 28 00:31:39 2015 for Moses by  doxygen 1.5.9