FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Protected Member Functions | List of all members
fst::LogProbArcSelector< Arc > Class Template Reference

#include <randgen.h>

Inheritance diagram for fst::LogProbArcSelector< Arc >:
Inheritance graph
[legend]

Public Types

using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 LogProbArcSelector ()
 
 LogProbArcSelector (uint64_t seed)
 
size_t operator() (const Fst< Arc > &fst, StateId s) const
 
uint64_t Seed () const
 

Protected Member Functions

Log64Weight ToLogWeight (const Weight &weight) const
 
std::mt19937_64 & MutableRand () const
 

Detailed Description

template<class Arc>
class fst::LogProbArcSelector< Arc >

Definition at line 93 of file randgen.h.

Member Typedef Documentation

template<class Arc>
using fst::LogProbArcSelector< Arc >::StateId = typename Arc::StateId

Definition at line 95 of file randgen.h.

template<class Arc>
using fst::LogProbArcSelector< Arc >::Weight = typename Arc::Weight

Definition at line 96 of file randgen.h.

Constructor & Destructor Documentation

template<class Arc>
fst::LogProbArcSelector< Arc >::LogProbArcSelector ( )
inline

Definition at line 99 of file randgen.h.

template<class Arc>
fst::LogProbArcSelector< Arc >::LogProbArcSelector ( uint64_t  seed)
inlineexplicit

Definition at line 102 of file randgen.h.

Member Function Documentation

template<class Arc>
std::mt19937_64& fst::LogProbArcSelector< Arc >::MutableRand ( ) const
inlineprotected

Definition at line 131 of file randgen.h.

template<class Arc>
size_t fst::LogProbArcSelector< Arc >::operator() ( const Fst< Arc > &  fst,
StateId  s 
) const
inline

Definition at line 104 of file randgen.h.

template<class Arc>
uint64_t fst::LogProbArcSelector< Arc >::Seed ( ) const
inline

Definition at line 124 of file randgen.h.

template<class Arc>
Log64Weight fst::LogProbArcSelector< Arc >::ToLogWeight ( const Weight weight) const
inlineprotected

Definition at line 127 of file randgen.h.


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