#include <numbered_set.h>
Public Types | |
typedef I | IdType |
typedef IdToElementMap::const_iterator | const_iterator |
Public Member Functions | |
NumberedSet () | |
const_iterator | begin () const |
const_iterator | end () const |
bool | IsEmpty () const |
size_t | Size () const |
I | Insert (const T &) |
I | Lookup (const T &) const |
template<typename CompatibleKey , typename CompatibleHash , typename CompatiblePredicate > | |
I | Lookup (const CompatibleKey &, const CompatibleHash &, const CompatiblePredicate &) const |
const T & | Lookup (I) const |
void | Clear () |
Static Public Member Functions | |
static I | NullId () |
Definition at line 18 of file numbered_set.h.
typedef IdToElementMap::const_iterator MosesTraining::Syntax::NumberedSet< T, I >::const_iterator |
Definition at line 25 of file numbered_set.h.
typedef I MosesTraining::Syntax::NumberedSet< T, I >::IdType |
Definition at line 24 of file numbered_set.h.
MosesTraining::Syntax::NumberedSet< T, I >::NumberedSet | ( | ) | [inline] |
Definition at line 27 of file numbered_set.h.
const_iterator MosesTraining::Syntax::NumberedSet< T, I >::begin | ( | ) | const [inline] |
Definition at line 29 of file numbered_set.h.
void MosesTraining::Syntax::NumberedSet< T, I >::Clear | ( | ) | [inline] |
Definition at line 104 of file numbered_set.h.
const_iterator MosesTraining::Syntax::NumberedSet< T, I >::end | ( | ) | const [inline] |
Definition at line 30 of file numbered_set.h.
I MosesTraining::Syntax::NumberedSet< T, I >::Insert | ( | const T & | x | ) | [inline] |
Definition at line 92 of file numbered_set.h.
Referenced by MosesTraining::Syntax::PCFG::RuleExtractor::Extract(), MosesTraining::Syntax::ScoreStsg::LexicalTable::Load(), MosesTraining::Syntax::Pcfg::Read(), and MosesTraining::Syntax::FilterRuleTable::StringCfgFilter::StringCfgFilter().
bool MosesTraining::Syntax::NumberedSet< T, I >::IsEmpty | ( | ) | const [inline] |
Definition at line 35 of file numbered_set.h.
const T & MosesTraining::Syntax::NumberedSet< T, I >::Lookup | ( | I | id | ) | const [inline] |
Definition at line 80 of file numbered_set.h.
I MosesTraining::Syntax::NumberedSet< T, I >::Lookup | ( | const CompatibleKey & | key, | |
const CompatibleHash & | hash, | |||
const CompatiblePredicate & | pred | |||
) | const [inline] |
Definition at line 71 of file numbered_set.h.
References MosesTraining::Syntax::NumberedSet< T, I >::NullId().
I MosesTraining::Syntax::NumberedSet< T, I >::Lookup | ( | const T & | s | ) | const [inline] |
Definition at line 63 of file numbered_set.h.
References MosesTraining::Syntax::NumberedSet< T, I >::NullId().
Referenced by MosesTraining::Syntax::FilterRuleTable::TsgFilter::BuildTree(), and MosesTraining::Syntax::Pcfg::Write().
static I MosesTraining::Syntax::NumberedSet< T, I >::NullId | ( | ) | [inline, static] |
Definition at line 33 of file numbered_set.h.
Referenced by MosesTraining::Syntax::NumberedSet< T, I >::Lookup().
size_t MosesTraining::Syntax::NumberedSet< T, I >::Size | ( | ) | const [inline] |
Definition at line 36 of file numbered_set.h.
Referenced by MosesTraining::Syntax::FilterRuleTable::ForestTsgFilter::ForestTsgFilter(), and MosesTraining::Syntax::FilterRuleTable::TreeTsgFilter::TreeTsgFilter().