TrivialFactorWeightFstImpl< A, F >::ElementKey Class Reference
Collaboration diagram for TrivialFactorWeightFstImpl< A, F >::ElementKey:

Public Member Functions

size_t operator() (const Element &x) const
 

Static Private Attributes

static const int kPrime = 7853
 

Detailed Description

template<class A, class F>
class fst::internal::TrivialFactorWeightFstImpl< A, F >::ElementKey

Definition at line 285 of file trivial-factor-weight.h.

Member Function Documentation

◆ operator()()

size_t operator() ( const Element x) const
inline

Definition at line 287 of file trivial-factor-weight.h.

References TrivialFactorWeightFstImpl< A, F >::Element::state, and TrivialFactorWeightFstImpl< A, F >::Element::weight.

287  {
288  return static_cast<size_t>(x.state * kPrime + x.weight.Hash());
289  }

Member Data Documentation

◆ kPrime

const int kPrime = 7853
staticprivate

Definition at line 291 of file trivial-factor-weight.h.


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