#include <BitmapContainer.h>

Public Member Functions | |
| BitmapContainer (const Bitmap &bitmap, HypothesisStackCubePruning &stack, bool deterministic=false) | |
| ~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 Bitmap & | GetWordsBitmap () const |
| 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 228 of file BitmapContainer.h.
| Moses::BitmapContainer::BitmapContainer | ( | const Bitmap & | bitmap, | |
| HypothesisStackCubePruning & | stack, | |||
| bool | deterministic = false | |||
| ) |
Definition at line 293 of file BitmapContainer.cpp.
| Moses::BitmapContainer::~BitmapContainer | ( | ) |
Definition at line 306 of file BitmapContainer.cpp.
References Moses::HypothesisQueueItem::GetHypothesis(), and Moses::RemoveAllInColl().

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

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

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

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

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


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

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

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

| const Bitmap& Moses::BitmapContainer::GetWordsBitmap | ( | ) | const [inline] |
Definition at line 257 of file BitmapContainer.h.
| void Moses::BitmapContainer::InitializeEdges | ( | ) |
Definition at line 427 of file BitmapContainer.cpp.
References Moses::BackwardsEdge::Initialize().

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


| size_t Moses::BitmapContainer::Size | ( | ) |
Definition at line 371 of file BitmapContainer.cpp.
| void Moses::BitmapContainer::SortHypotheses | ( | ) |
Definition at line 492 of file BitmapContainer.cpp.
References sort().
Referenced by Moses::SearchCubePruning::CreateForwardTodos().


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

1.5.9