MosesTraining::Syntax::NumberedSet< T, I > Class Template Reference

#include <numbered_set.h>

Inheritance diagram for MosesTraining::Syntax::NumberedSet< T, I >:

Inheritance graph
[legend]

List of all members.

Public Types

typedef I IdType
typedef
IdToElementMap::const_iterator 
const_iterator

Public Member Functions

 NumberedSet ()
const_iterator begin () const
const_iterator end () const
bool IsEmpty () const
size_t Size () const
I Insert (const T &)
I Lookup (const T &) const
template<typename CompatibleKey , typename CompatibleHash , typename CompatiblePredicate >
I Lookup (const CompatibleKey &, const CompatibleHash &, const CompatiblePredicate &) const
const TLookup (I) const
void Clear ()

Static Public Member Functions

static I NullId ()


Detailed Description

template<typename T, typename I = size_t>
class MosesTraining::Syntax::NumberedSet< T, I >

Definition at line 18 of file numbered_set.h.


Member Typedef Documentation

template<typename T, typename I = size_t>
typedef IdToElementMap::const_iterator MosesTraining::Syntax::NumberedSet< T, I >::const_iterator

Definition at line 25 of file numbered_set.h.

template<typename T, typename I = size_t>
typedef I MosesTraining::Syntax::NumberedSet< T, I >::IdType

Definition at line 24 of file numbered_set.h.


Constructor & Destructor Documentation

template<typename T, typename I = size_t>
MosesTraining::Syntax::NumberedSet< T, I >::NumberedSet (  )  [inline]

Definition at line 27 of file numbered_set.h.


Member Function Documentation

template<typename T, typename I = size_t>
const_iterator MosesTraining::Syntax::NumberedSet< T, I >::begin (  )  const [inline]

Definition at line 29 of file numbered_set.h.

template<typename T , typename I >
void MosesTraining::Syntax::NumberedSet< T, I >::Clear (  )  [inline]

Definition at line 104 of file numbered_set.h.

template<typename T, typename I = size_t>
const_iterator MosesTraining::Syntax::NumberedSet< T, I >::end (  )  const [inline]

Definition at line 30 of file numbered_set.h.

template<typename T, typename I >
I MosesTraining::Syntax::NumberedSet< T, I >::Insert ( const T x  )  [inline]

template<typename T, typename I = size_t>
bool MosesTraining::Syntax::NumberedSet< T, I >::IsEmpty (  )  const [inline]

Definition at line 35 of file numbered_set.h.

template<typename T, typename I>
const T & MosesTraining::Syntax::NumberedSet< T, I >::Lookup ( I  id  )  const [inline]

Definition at line 80 of file numbered_set.h.

template<typename T , typename I >
template<typename CompatibleKey , typename CompatibleHash , typename CompatiblePredicate >
I MosesTraining::Syntax::NumberedSet< T, I >::Lookup ( const CompatibleKey &  key,
const CompatibleHash &  hash,
const CompatiblePredicate &  pred 
) const [inline]

Definition at line 71 of file numbered_set.h.

References MosesTraining::Syntax::NumberedSet< T, I >::NullId().

Here is the call graph for this function:

template<typename T, typename I >
I MosesTraining::Syntax::NumberedSet< T, I >::Lookup ( const T s  )  const [inline]

Definition at line 63 of file numbered_set.h.

References MosesTraining::Syntax::NumberedSet< T, I >::NullId().

Referenced by MosesTraining::Syntax::FilterRuleTable::TsgFilter::BuildTree(), and MosesTraining::Syntax::Pcfg::Write().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T, typename I = size_t>
static I MosesTraining::Syntax::NumberedSet< T, I >::NullId (  )  [inline, static]

Definition at line 33 of file numbered_set.h.

Referenced by MosesTraining::Syntax::NumberedSet< T, I >::Lookup().

Here is the caller graph for this function:

template<typename T, typename I = size_t>
size_t MosesTraining::Syntax::NumberedSet< T, I >::Size (  )  const [inline]


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

Generated on Thu Jul 6 00:34:09 2017 for Moses by  doxygen 1.5.9