FST  openfst-1.7.0
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, ReplaceHash< Arc::StateId, P > *h=nullptr, std::equal_to< ReplaceStateTuple< Arc::StateId, P > > *e=nullptr)
 
 CompactHashBiTable (const CompactHashBiTable< ReplaceStateTuple< Arc::StateId, P >::StateId, ReplaceStateTuple< Arc::StateId, P >, ReplaceHash< Arc::StateId, P >, std::equal_to< ReplaceStateTuple< Arc::StateId, P > >, HS_FLAT > &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 90 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 272 of file replace.h.

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

Definition at line 275 of file replace.h.

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

Definition at line 279 of file replace.h.

Definition at line 282 of file replace.h.

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

Definition at line 273 of file replace.h.

Definition at line 278 of file replace.h.

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

Definition at line 276 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 287 of file replace.h.

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

Definition at line 290 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 293 of file replace.h.

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

Definition at line 297 of file replace.h.


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