#include <ChartCellLabelSet.h>
Public Types | |
typedef MapType::const_iterator | const_iterator |
typedef MapType::iterator | iterator |
Public Member Functions | |
ChartCellLabelSet (const Range &coverage) | |
~ChartCellLabelSet () | |
const_iterator | begin () const |
const_iterator | end () const |
iterator | mutable_begin () |
iterator | mutable_end () |
void | AddWord (const Word &w) |
void | AddConstituent (const Word &w, const HypoList *stack) |
bool | ChartCellExists (size_t idx) |
bool | Empty () const |
size_t | GetSize () const |
const ChartCellLabel * | Find (const Word &w) const |
const ChartCellLabel * | Find (size_t idx) const |
ChartCellLabel::Stack & | FindOrInsert (const Word &w) |
Definition at line 37 of file ChartCellLabelSet.h.
typedef MapType::const_iterator Moses::ChartCellLabelSet::const_iterator |
Definition at line 44 of file ChartCellLabelSet.h.
typedef MapType::iterator Moses::ChartCellLabelSet::iterator |
Definition at line 45 of file ChartCellLabelSet.h.
Moses::ChartCellLabelSet::ChartCellLabelSet | ( | const Range & | coverage | ) | [inline] |
Definition at line 47 of file ChartCellLabelSet.h.
Moses::ChartCellLabelSet::~ChartCellLabelSet | ( | ) | [inline] |
Definition at line 52 of file ChartCellLabelSet.h.
References Moses::RemoveAllInColl().
Definition at line 82 of file ChartCellLabelSet.h.
References ChartCellExists(), and Moses::ChartCellLabel::Stack::cube.
Referenced by Moses::ChartCell::SortHypotheses().
void Moses::ChartCellLabelSet::AddWord | ( | const Word & | w | ) | [inline] |
Definition at line 71 of file ChartCellLabelSet.h.
References ChartCellExists().
const_iterator Moses::ChartCellLabelSet::begin | ( | ) | const [inline] |
Definition at line 57 of file ChartCellLabelSet.h.
Referenced by Moses::ChartRuleLookupManagerOnDisk::GetChartRuleCollection().
bool Moses::ChartCellLabelSet::ChartCellExists | ( | size_t | idx | ) | [inline] |
Definition at line 96 of file ChartCellLabelSet.h.
References Moses::FactorCollection::Instance(), and NULL.
Referenced by AddConstituent(), AddWord(), and FindOrInsert().
bool Moses::ChartCellLabelSet::Empty | ( | ) | const [inline] |
Definition at line 107 of file ChartCellLabelSet.h.
Referenced by Moses::ChartCell::SortHypotheses().
const_iterator Moses::ChartCellLabelSet::end | ( | ) | const [inline] |
Definition at line 60 of file ChartCellLabelSet.h.
Referenced by Moses::ChartRuleLookupManagerOnDisk::GetChartRuleCollection().
const ChartCellLabel* Moses::ChartCellLabelSet::Find | ( | size_t | idx | ) | const [inline] |
const ChartCellLabel* Moses::ChartCellLabelSet::Find | ( | const Word & | w | ) | const [inline] |
Definition at line 115 of file ChartCellLabelSet.h.
References NULL.
Referenced by Moses::StackLatticeBuilder::Build().
ChartCellLabel::Stack& Moses::ChartCellLabelSet::FindOrInsert | ( | const Word & | w | ) | [inline] |
Definition at line 132 of file ChartCellLabelSet.h.
References ChartCellExists().
size_t Moses::ChartCellLabelSet::GetSize | ( | ) | const [inline] |
Definition at line 111 of file ChartCellLabelSet.h.
iterator Moses::ChartCellLabelSet::mutable_begin | ( | ) | [inline] |
Definition at line 64 of file ChartCellLabelSet.h.
iterator Moses::ChartCellLabelSet::mutable_end | ( | ) | [inline] |
Definition at line 67 of file ChartCellLabelSet.h.