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

#include <fst-decl.h>

Inheritance diagram for fst::DefaultReplaceStateTable< Arc, P >:
Inheritance graph
[legend]
Collaboration diagram for fst::DefaultReplaceStateTable< Arc, P >:
Collaboration graph
[legend]

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using PrefixId = P
 
using StateTuple = ReplaceStateTuple< StateId, PrefixId >
 
using StateTable = CompactHashStateTable< StateTuple, ReplaceHash< StateId, PrefixId >>
 
using StackPrefix = ReplaceStackPrefix< Label, StateId >
 
using StackPrefixTable = CompactHashBiTable< PrefixId, StackPrefix, ReplaceStackPrefixHash< Label, StateId >>
 
- Public Types inherited from fst::CompactHashStateTable< ReplaceStateTuple< Arc::StateId, P >, ReplaceHash< Arc::StateId, P > >
using StateTuple = ReplaceStateTuple< Arc::StateId, P >
 
using StateId = typename StateTuple::StateId
 

Public Member Functions

 DefaultReplaceStateTable (const std::vector< std::pair< Label, const Fst< Arc > * >> &, Label)
 
 DefaultReplaceStateTable (const DefaultReplaceStateTable< Arc, PrefixId > &table)
 
PrefixId FindPrefixId (const StackPrefix &prefix)
 
const StackPrefixGetStackPrefix (PrefixId id) const
 
- Public Member Functions inherited from fst::CompactHashStateTable< ReplaceStateTuple< Arc::StateId, P >, ReplaceHash< Arc::StateId, P > >
 CompactHashStateTable ()
 
 CompactHashStateTable (size_t table_size)
 
StateId FindState (const StateTuple &tuple)
 
const StateTupleTuple (StateId s) const
 
- Public Member Functions inherited from fst::CompactHashBiTable< ReplaceStateTuple< Arc::StateId, P >::StateId, ReplaceStateTuple< Arc::StateId, P >, ReplaceHash< Arc::StateId, P > >
 CompactHashBiTable (size_t table_size=0, const ReplaceHash< Arc::StateId, P > &h=ReplaceHash< Arc::StateId, P >(), const std::equal_to< ReplaceStateTuple< Arc::StateId, P > > &e=std::equal_to< ReplaceStateTuple< Arc::StateId, P > >())
 
 CompactHashBiTable (const CompactHashBiTable &table)
 
ReplaceStateTuple< Arc::StateId, P >::StateId FindId (const ReplaceStateTuple< Arc::StateId, P > &entry, bool insert=true)
 
const ReplaceStateTuple< Arc::StateId, P > & FindEntry (ReplaceStateTuple< Arc::StateId, P >::StateIds) const
 
ReplaceStateTuple< Arc::StateId, P >::StateId Size () const
 
void Clear (ssize_t n=-1)
 

Detailed Description

template<class Arc, class P>
class fst::DefaultReplaceStateTable< Arc, P >

Definition at line 121 of file fst-decl.h.

Member Typedef Documentation

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

Definition at line 318 of file replace.h.

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

Definition at line 321 of file replace.h.

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

Definition at line 325 of file replace.h.

Definition at line 328 of file replace.h.

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

Definition at line 319 of file replace.h.

Definition at line 324 of file replace.h.

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

Definition at line 322 of file replace.h.

Constructor & Destructor Documentation

template<class Arc, class P>
fst::DefaultReplaceStateTable< Arc, P >::DefaultReplaceStateTable ( const std::vector< std::pair< Label, const Fst< Arc > * >> &  ,
Label   
)
inline

Definition at line 333 of file replace.h.

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

Definition at line 336 of file replace.h.

Member Function Documentation

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

Definition at line 339 of file replace.h.

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

Definition at line 343 of file replace.h.


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