Moses::QueryEngine Class Reference

#include <querying.hh>

Collaboration diagram for Moses::QueryEngine:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 QueryEngine (const char *)
 ~QueryEngine ()
std::pair< bool, uint64_t > query (uint64_t key)
const std::map< uint64_t,
std::string > & 
getSourceVocab () const
const std::vector< Alignments > & getAlignments () const
uint64_t getKey (uint64_t source_phrase[], size_t size) const
template<typename T >
bool Get (const boost::unordered_map< std::string, std::string > &keyValue, const std::string &sought, T &found) const

Public Attributes

int num_scores
int num_lex_scores
bool logProb


Detailed Description

Definition at line 16 of file querying.hh.


Constructor & Destructor Documentation

Moses::QueryEngine::QueryEngine ( const char *  filepath  ) 

Moses::QueryEngine::~QueryEngine (  ) 

Definition at line 92 of file querying.cpp.


Member Function Documentation

template<typename T >
bool Moses::QueryEngine::Get ( const boost::unordered_map< std::string, std::string > &  keyValue,
const std::string &  sought,
T found 
) const [inline]

Definition at line 52 of file querying.hh.

Referenced by QueryEngine().

Here is the caller graph for this function:

const std::vector<Alignments>& Moses::QueryEngine::getAlignments (  )  const [inline]

Definition at line 45 of file querying.hh.

Referenced by Moses::ProbingPT::CreateAlignmentMap().

Here is the caller graph for this function:

uint64_t Moses::QueryEngine::getKey ( uint64_t  source_phrase[],
size_t  size 
) const

Definition at line 99 of file querying.cpp.

Referenced by Moses::ProbingPT::GetKey().

Here is the caller graph for this function:

const std::map<uint64_t, std::string>& Moses::QueryEngine::getSourceVocab (  )  const [inline]

Definition at line 41 of file querying.hh.

Referenced by Moses::ProbingPT::Load().

Here is the caller graph for this function:

std::pair< bool, uint64_t > Moses::QueryEngine::query ( uint64_t  key  ) 

Definition at line 106 of file querying.cpp.

References util::ProbingHashTable< EntryT, HashT, EqualT, ModT >::Find(), and Moses::Entry::value.

Referenced by Moses::ProbingPT::CreateTargetPhrases(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 34 of file querying.hh.

Referenced by Moses::ProbingPT::CreateTargetPhrase(), and QueryEngine().

Definition at line 33 of file querying.hh.

Referenced by Moses::ProbingPT::CreateTargetPhrase(), and QueryEngine().

Definition at line 32 of file querying.hh.

Referenced by Moses::ProbingPT::CreateTargetPhrase(), and QueryEngine().


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

Generated on Thu Feb 16 00:33:16 2017 for Moses by  doxygen 1.5.9