Moses::BitmapContainer Class Reference

#include <BitmapContainer.h>

Collaboration diagram for Moses::BitmapContainer:

Collaboration graph
[legend]

List of all members.

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)
HypothesisQueueItemDequeue (bool keepValue=false)
HypothesisQueueItemTop () const
size_t Size ()
bool Empty () const
const BitmapGetWordsBitmap () const
const HypothesisSetGetHypotheses () const
size_t GetHypothesesSize () const
const BackwardsEdgeSetGetBackwardsEdges ()
void InitializeEdges ()
void ProcessBestHypothesis ()
void EnsureMinStackHyps (const size_t minNumHyps)
void AddHypothesis (Hypothesis *hypothesis)
void AddBackwardsEdge (BackwardsEdge *edge)
void SortHypotheses ()


Detailed Description

Definition at line 228 of file BitmapContainer.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:


Member Function Documentation

void Moses::BitmapContainer::AddBackwardsEdge ( BackwardsEdge edge  ) 

Definition at line 421 of file BitmapContainer.cpp.

Referenced by Moses::HypothesisStackCubePruning::SetBitmapAccessor().

Here is the caller graph for this function:

void Moses::BitmapContainer::AddHypothesis ( Hypothesis hypothesis  ) 

Definition at line 401 of file BitmapContainer.cpp.

References UTIL_THROW_IF2.

Referenced by Moses::HypothesisStackCubePruning::AddHypothesesToBitmapContainers().

Here is the caller graph for this function:

HypothesisQueueItem * Moses::BitmapContainer::Dequeue ( bool  keepValue = false  ) 

Definition at line 349 of file BitmapContainer.cpp.

References NULL.

Referenced by ProcessBestHypothesis().

Here is the caller graph for this function:

bool Moses::BitmapContainer::Empty (  )  const

Definition at line 377 of file BitmapContainer.cpp.

Referenced by Moses::SearchCubePruning::Decode(), EnsureMinStackHyps(), Moses::BitmapContainerOrderer::operator()(), and ProcessBestHypothesis().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void Moses::BitmapContainer::EnsureMinStackHyps ( const size_t  minNumHyps  ) 

Definition at line 441 of file BitmapContainer.cpp.

References Empty(), and ProcessBestHypothesis().

Here is the call graph for this function:

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().

Here is the caller graph for this function:

size_t Moses::BitmapContainer::GetHypothesesSize (  )  const

Definition at line 389 of file BitmapContainer.cpp.

Referenced by Moses::SearchCubePruning::CreateForwardTodos().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

void Moses::BitmapContainer::ProcessBestHypothesis (  ) 

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().

Here is the call graph for this function:

Here is the caller graph for this function:

HypothesisQueueItem * Moses::BitmapContainer::Top (  )  const

Definition at line 365 of file BitmapContainer.cpp.

Referenced by Moses::BitmapContainerOrderer::operator()().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on Thu Jul 6 00:32:52 2017 for Moses by  doxygen 1.5.9