LatticeWordAligner::TupleHash Struct Reference

Public Member Functions

size_t operator() (const Tuple &state) const
 

Detailed Description

Definition at line 143 of file word-align-lattice.cc.

Member Function Documentation

◆ operator()()

size_t operator() ( const Tuple state) const
inline

Definition at line 144 of file word-align-lattice.cc.

References LatticeWordAligner::Tuple::comp_state, LatticeWordAligner::ComputationState::Hash(), and LatticeWordAligner::Tuple::input_state.

144  {
145  return state.input_state + 102763 * state.comp_state.Hash();
146  // 102763 is just an arbitrary prime number
147  }

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