#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 | Empty () const |
std::size_t | Size () const |
I | Insert (const T &) |
I | Lookup (const T &) const |
const T & | Lookup (I) const |
void | Clear () |
Static Public Member Functions | |
static I | NullId () |
Definition at line 41 of file numbered_set.h.
typedef IdToElementMap::const_iterator Moses::PCFG::NumberedSet< T, I >::const_iterator |
Definition at line 49 of file numbered_set.h.
typedef I Moses::PCFG::NumberedSet< T, I >::IdType |
Definition at line 48 of file numbered_set.h.
Moses::PCFG::NumberedSet< T, I >::NumberedSet | ( | ) | [inline] |
Definition at line 51 of file numbered_set.h.
const_iterator Moses::PCFG::NumberedSet< T, I >::begin | ( | ) | const [inline] |
Definition at line 53 of file numbered_set.h.
void Moses::PCFG::NumberedSet< T, I >::Clear | ( | ) | [inline] |
Definition at line 117 of file numbered_set.h.
bool Moses::PCFG::NumberedSet< T, I >::Empty | ( | ) | const [inline] |
Definition at line 65 of file numbered_set.h.
const_iterator Moses::PCFG::NumberedSet< T, I >::end | ( | ) | const [inline] |
Definition at line 56 of file numbered_set.h.
I Moses::PCFG::NumberedSet< T, I >::Insert | ( | const T & | x | ) | [inline] |
Definition at line 104 of file numbered_set.h.
References value.
Referenced by Moses::PCFG::RuleExtractor::Extract(), and Moses::PCFG::Pcfg::Read().
const T & Moses::PCFG::NumberedSet< T, I >::Lookup | ( | I | id | ) | const [inline] |
Definition at line 93 of file numbered_set.h.
I Moses::PCFG::NumberedSet< T, I >::Lookup | ( | const T & | s | ) | const [inline] |
Definition at line 86 of file numbered_set.h.
References Moses::PCFG::NumberedSet< T, I >::NullId().
Referenced by Moses::PCFG::TreeScorer::Score(), and Moses::PCFG::Pcfg::Write().
static I Moses::PCFG::NumberedSet< T, I >::NullId | ( | ) | [inline, static] |
Definition at line 61 of file numbered_set.h.
Referenced by Moses::PCFG::NumberedSet< T, I >::Lookup().
std::size_t Moses::PCFG::NumberedSet< T, I >::Size | ( | ) | const [inline] |
Definition at line 68 of file numbered_set.h.