Moses::Syntax::BoundedPriorityContainer< T > Class Template Reference

#include <BoundedPriorityContainer.h>

Inheritance diagram for Moses::Syntax::BoundedPriorityContainer< T >:

Inheritance graph
[legend]

List of all members.

Classes

class  PriorityIndexPairOrderer

Public Types

typedef std::vector< T >::iterator Iterator
typedef std::vector< T >
::const_iterator 
ConstIterator

Public Member Functions

 BoundedPriorityContainer (std::size_t)
Iterator Begin ()
Iterator End ()
ConstIterator Begin () const
ConstIterator End () const
std::size_t Size () const
void LazyClear ()
bool Insert (const T &, float)
bool SwapIn (T &, float)
bool WouldAccept (float priority)


Detailed Description

template<typename T>
class Moses::Syntax::BoundedPriorityContainer< T >

Definition at line 25 of file BoundedPriorityContainer.h.


Member Typedef Documentation

template<typename T>
typedef std::vector<T>::const_iterator Moses::Syntax::BoundedPriorityContainer< T >::ConstIterator

Definition at line 29 of file BoundedPriorityContainer.h.

template<typename T>
typedef std::vector<T>::iterator Moses::Syntax::BoundedPriorityContainer< T >::Iterator

Definition at line 28 of file BoundedPriorityContainer.h.


Constructor & Destructor Documentation

template<typename T >
Moses::Syntax::BoundedPriorityContainer< T >::BoundedPriorityContainer ( std::size_t  limit  )  [inline]

Definition at line 122 of file BoundedPriorityContainer.h.


Member Function Documentation

template<typename T>
ConstIterator Moses::Syntax::BoundedPriorityContainer< T >::Begin (  )  const [inline]

Definition at line 40 of file BoundedPriorityContainer.h.

template<typename T>
Iterator Moses::Syntax::BoundedPriorityContainer< T >::Begin (  )  [inline]

template<typename T>
ConstIterator Moses::Syntax::BoundedPriorityContainer< T >::End (  )  const [inline]

Definition at line 43 of file BoundedPriorityContainer.h.

template<typename T>
Iterator Moses::Syntax::BoundedPriorityContainer< T >::End (  )  [inline]

template<typename T>
bool Moses::Syntax::BoundedPriorityContainer< T >::Insert ( const T t,
float  priority 
) [inline]

Definition at line 130 of file BoundedPriorityContainer.h.

template<typename T>
void Moses::Syntax::BoundedPriorityContainer< T >::LazyClear (  )  [inline]

Definition at line 59 of file BoundedPriorityContainer.h.

Referenced by Moses::Syntax::F2S::RuleMatcherCallback::ClearContainer(), and Moses::Syntax::S2T::StandardParserCallback::InitForRange().

Here is the caller graph for this function:

template<typename T>
std::size_t Moses::Syntax::BoundedPriorityContainer< T >::Size (  )  const [inline]

Definition at line 48 of file BoundedPriorityContainer.h.

Referenced by Moses::Syntax::T2S::Manager< RuleMatcher >::Decode(), and Moses::Syntax::F2S::Manager< RuleMatcher >::Decode().

Here is the caller graph for this function:

template<typename T>
bool Moses::Syntax::BoundedPriorityContainer< T >::SwapIn ( T t,
float  priority 
) [inline]

Definition at line 154 of file BoundedPriorityContainer.h.

References Moses::swap().

Referenced by Moses::Syntax::S2T::StandardParserCallback::operator()(), and Moses::Syntax::F2S::RuleMatcherCallback::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T>
bool Moses::Syntax::BoundedPriorityContainer< T >::WouldAccept ( float  priority  )  [inline]

Definition at line 85 of file BoundedPriorityContainer.h.


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

Generated on Thu Jul 6 00:33:59 2017 for Moses by  doxygen 1.5.9