FST  openfst-1.7.2
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::VectorHashReplaceStateTable< Arc, P > Class Template Reference

#include <replace.h>

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using PrefixId = P
 
using StateTuple = ReplaceStateTuple< StateId, PrefixId >
 
using StateTable = VectorHashStateTable< ReplaceStateTuple< StateId, PrefixId >, ReplaceRootSelector< StateId, PrefixId >, ReplaceFstStateFingerprint< StateId, PrefixId >, ReplaceFingerprint< StateId, PrefixId >>
 
using StackPrefix = ReplaceStackPrefix< Label, StateId >
 
using StackPrefixTable = CompactHashBiTable< PrefixId, StackPrefix, ReplaceStackPrefixHash< Label, StateId >>
 

Public Member Functions

 VectorHashReplaceStateTable (const std::vector< std::pair< Label, const Fst< Arc > * >> &fst_list, Label root)
 
 VectorHashReplaceStateTable (const VectorHashReplaceStateTable< Arc, PrefixId > &table)
 
StateId FindState (const StateTuple &tuple)
 
const StateTupleTuple (StateId id) const
 
PrefixId FindPrefixId (const StackPrefix &prefix)
 
const StackPrefixGetStackPrefix (PrefixId id) const
 

Detailed Description

template<class Arc, class P = ssize_t>
class fst::VectorHashReplaceStateTable< Arc, P >

Definition at line 194 of file replace.h.

Member Typedef Documentation

template<class Arc, class P = ssize_t>
using fst::VectorHashReplaceStateTable< Arc, P >::Label = typename Arc::Label

Definition at line 196 of file replace.h.

template<class Arc, class P = ssize_t>
using fst::VectorHashReplaceStateTable< Arc, P >::PrefixId = P

Definition at line 199 of file replace.h.

template<class Arc, class P = ssize_t>
using fst::VectorHashReplaceStateTable< Arc, P >::StackPrefix = ReplaceStackPrefix<Label, StateId>

Definition at line 207 of file replace.h.

Definition at line 210 of file replace.h.

template<class Arc, class P = ssize_t>
using fst::VectorHashReplaceStateTable< Arc, P >::StateId = typename Arc::StateId

Definition at line 197 of file replace.h.

Definition at line 206 of file replace.h.

template<class Arc, class P = ssize_t>
using fst::VectorHashReplaceStateTable< Arc, P >::StateTuple = ReplaceStateTuple<StateId, PrefixId>

Definition at line 201 of file replace.h.

Constructor & Destructor Documentation

template<class Arc, class P = ssize_t>
fst::VectorHashReplaceStateTable< Arc, P >::VectorHashReplaceStateTable ( const std::vector< std::pair< Label, const Fst< Arc > * >> &  fst_list,
Label  root 
)
inline

Definition at line 212 of file replace.h.

template<class Arc, class P = ssize_t>
fst::VectorHashReplaceStateTable< Arc, P >::VectorHashReplaceStateTable ( const VectorHashReplaceStateTable< Arc, PrefixId > &  table)
inline

Definition at line 233 of file replace.h.

Member Function Documentation

template<class Arc, class P = ssize_t>
PrefixId fst::VectorHashReplaceStateTable< Arc, P >::FindPrefixId ( const StackPrefix prefix)
inline

Definition at line 251 of file replace.h.

template<class Arc, class P = ssize_t>
StateId fst::VectorHashReplaceStateTable< Arc, P >::FindState ( const StateTuple tuple)
inline

Definition at line 245 of file replace.h.

template<class Arc, class P = ssize_t>
const StackPrefix& fst::VectorHashReplaceStateTable< Arc, P >::GetStackPrefix ( PrefixId  id) const
inline

Definition at line 255 of file replace.h.

template<class Arc, class P = ssize_t>
const StateTuple& fst::VectorHashReplaceStateTable< Arc, P >::Tuple ( StateId  id) const
inline

Definition at line 249 of file replace.h.


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