#include <BitmapContainer.h>

Public Member Functions | |
| BitmapContainer (const WordsBitmap &bitmap, HypothesisStackCubePruning &stack) | |
| ~BitmapContainer () | |
| void | Enqueue (int hypothesis_pos, int translation_pos, Hypothesis *hypothesis, BackwardsEdge *edge) |
| HypothesisQueueItem * | Dequeue (bool keepValue=false) |
| HypothesisQueueItem * | Top () const |
| size_t | Size () |
| bool | Empty () const |
| const WordsBitmap & | GetWordsBitmap () |
| const HypothesisSet & | GetHypotheses () const |
| size_t | GetHypothesesSize () const |
| const BackwardsEdgeSet & | GetBackwardsEdges () |
| void | InitializeEdges () |
| void | ProcessBestHypothesis () |
| void | EnsureMinStackHyps (const size_t minNumHyps) |
| void | AddHypothesis (Hypothesis *hypothesis) |
| void | AddBackwardsEdge (BackwardsEdge *edge) |
| void | SortHypotheses () |
Definition at line 201 of file BitmapContainer.h.
| Moses::BitmapContainer::BitmapContainer | ( | const WordsBitmap & | bitmap, | |
| HypothesisStackCubePruning & | stack | |||
| ) |
Definition at line 251 of file BitmapContainer.cpp.
| Moses::BitmapContainer::~BitmapContainer | ( | ) |
Definition at line 262 of file BitmapContainer.cpp.
References FREEHYPO, Moses::HypothesisQueueItem::GetHypothesis(), NULL, and Moses::RemoveAllInColl().

| void Moses::BitmapContainer::AddBackwardsEdge | ( | BackwardsEdge * | edge | ) |
Definition at line 375 of file BitmapContainer.cpp.
Referenced by Moses::HypothesisStackCubePruning::SetBitmapAccessor().

| void Moses::BitmapContainer::AddHypothesis | ( | Hypothesis * | hypothesis | ) |
Definition at line 355 of file BitmapContainer.cpp.
References CHECK.
Referenced by Moses::HypothesisStackCubePruning::AddHypothesesToBitmapContainers().

| HypothesisQueueItem * Moses::BitmapContainer::Dequeue | ( | bool | keepValue = false |
) |
Definition at line 296 of file BitmapContainer.cpp.
References NULL.
Referenced by ProcessBestHypothesis().

| bool Moses::BitmapContainer::Empty | ( | ) | const |
Definition at line 324 of file BitmapContainer.cpp.
Referenced by EnsureMinStackHyps(), Moses::BitmapContainerOrderer::operator()(), ProcessBestHypothesis(), and Moses::SearchCubePruning::ProcessSentence().

| void Moses::BitmapContainer::Enqueue | ( | int | hypothesis_pos, | |
| int | translation_pos, | |||
| Hypothesis * | hypothesis, | |||
| BackwardsEdge * | edge | |||
| ) |
Definition at line 283 of file BitmapContainer.cpp.
Referenced by Moses::BackwardsEdge::Initialize(), and Moses::BackwardsEdge::PushSuccessors().

| void Moses::BitmapContainer::EnsureMinStackHyps | ( | const size_t | minNumHyps | ) |
Definition at line 395 of file BitmapContainer.cpp.
References Empty(), and ProcessBestHypothesis().

| const BackwardsEdgeSet & Moses::BitmapContainer::GetBackwardsEdges | ( | ) |
Definition at line 349 of file BitmapContainer.cpp.
| const HypothesisSet & Moses::BitmapContainer::GetHypotheses | ( | ) | const |
Definition at line 337 of file BitmapContainer.cpp.
Referenced by Moses::BackwardsEdge::BackwardsEdge().

| size_t Moses::BitmapContainer::GetHypothesesSize | ( | ) | const |
Definition at line 343 of file BitmapContainer.cpp.
Referenced by Moses::SearchCubePruning::CreateForwardTodos().

| const WordsBitmap & Moses::BitmapContainer::GetWordsBitmap | ( | ) |
Definition at line 331 of file BitmapContainer.cpp.
| void Moses::BitmapContainer::InitializeEdges | ( | ) |
Definition at line 381 of file BitmapContainer.cpp.
References Moses::BackwardsEdge::Initialize().

| void Moses::BitmapContainer::ProcessBestHypothesis | ( | ) |
Definition at line 403 of file BitmapContainer.cpp.
References Moses::HypothesisStackCubePruning::AddPrune(), CHECK, Dequeue(), Empty(), Moses::HypothesisQueueItem::GetBackwardsEdge(), Moses::HypothesisQueueItem::GetHypothesis(), Moses::HypothesisQueueItem::GetHypothesisPos(), Moses::Hypothesis::GetTotalScore(), Moses::HypothesisQueueItem::GetTranslationPos(), IFVERBOSE, NULL, Moses::Hypothesis::PrintHypothesis(), Moses::BackwardsEdge::PushSuccessors(), and TRACE_ERR.
Referenced by EnsureMinStackHyps(), and Moses::SearchCubePruning::ProcessSentence().


| size_t Moses::BitmapContainer::Size | ( | ) |
Definition at line 318 of file BitmapContainer.cpp.
| void Moses::BitmapContainer::SortHypotheses | ( | ) |
Definition at line 444 of file BitmapContainer.cpp.
Referenced by Moses::SearchCubePruning::CreateForwardTodos().

| HypothesisQueueItem * Moses::BitmapContainer::Top | ( | ) | const |
Definition at line 312 of file BitmapContainer.cpp.
Referenced by Moses::BitmapContainerOrderer::operator()().

1.5.9