FST  openfst-1.6.1
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable > Class Template Reference

#include <determinize.h>

Inheritance diagram for fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >:
Collaboration graph
[legend]

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using ToMapper = ToGallicMapper< Arc, G >
 
using ToArc = typename ToMapper::ToArc
 
using ToFst = ArcMapFst< Arc, ToArc, ToMapper >
 
using FromMapper = FromGallicMapper< Arc, G >
 
using FromFst = ArcMapFst< ToArc, Arc, FromMapper >
 
using ToCommonDivisor = GallicCommonDivisor< Label, Weight, G, CommonDivisor >
 
using ToFilter = typename Filter::template rebind< ToArc >::Other
 
using ToFilterState = typename ToFilter::FilterState
 
using ToStateTable = typename StateTable::template rebind< ToArc, ToFilterState >::Other
 
using FactorIterator = GallicFactor< Label, Weight, G >
 
- Public Types inherited from fst::internal::DeterminizeFstImplBase< Arc >
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< Arc >
 
using State = typename Store::State
 
- Public Types inherited from fst::internal::CacheImpl< Arc >
using State = CacheState< Arc >
 
- Public Types inherited from fst::internal::CacheBaseImpl< CacheState< Arc > >
using Arc = typename CacheState< Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< typename CacheState< Arc >::Arc >
 
- Public Types inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
using StateId = typename CacheState< Arc >::Arc::StateId
 
using Weight = typename CacheState< Arc >::Arc::Weight
 

Public Member Functions

 DeterminizeFstImpl (const Fst< Arc > &fst, const DeterminizeFstOptions< Arc, CommonDivisor, Filter, StateTable > &opts)
 
 DeterminizeFstImpl (const DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable > &impl)
 
DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable > * Copy () const override
 
uint64 Properties () const override
 
uint64 Properties (uint64 mask) const override
 
StateId ComputeStart () override
 
Weight ComputeFinal (StateId s) override
 
void Expand (StateId s) override
 
- Public Member Functions inherited from fst::internal::DeterminizeFstImplBase< Arc >
template<class CommonDivisor , class Filter , class StateTable >
 DeterminizeFstImplBase (const Fst< Arc > &fst, const DeterminizeFstOptions< Arc, CommonDivisor, Filter, StateTable > &opts)
 
 DeterminizeFstImplBase (const DeterminizeFstImplBase< Arc > &impl)
 
StateId Start ()
 
Weight Final (StateId s)
 
size_t NumArcs (StateId s)
 
size_t NumInputEpsilons (StateId s)
 
size_t NumOutputEpsilons (StateId s)
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data)
 
const Fst< Arc > & GetFst () const
 
- Public Member Functions inherited from fst::internal::CacheImpl< Arc >
 CacheImpl ()
 
 CacheImpl (const CacheOptions &opts)
 
 CacheImpl (const CacheImpl< Arc > &impl, bool preserve_cache=false)
 
- Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheState< Arc > >
 CacheBaseImpl (const CacheOptions &opts=CacheOptions())
 
 CacheBaseImpl (const CacheImplOptions< DefaultCacheStore< typename CacheState< Arc >::Arc > > &opts)
 
 CacheBaseImpl (const CacheBaseImpl< CacheState< Arc >, DefaultCacheStore< typename CacheState< Arc >::Arc > > &impl, bool preserve_cache=false)
 
 ~CacheBaseImpl () override
 
void SetStart (StateId s)
 
void SetFinal (StateId s, Weight weight)
 
void PushArc (StateId s, const Arc &arc)
 
void SetArcs (StateId s)
 
void ReserveArcs (StateId s, size_t n)
 
void DeleteArcs (StateId s)
 
void DeleteArcs (StateId s, size_t n)
 
void Clear ()
 
bool HasStart () const
 
bool HasFinal (StateId s) const
 
bool HasArcs (StateId s) const
 
StateId Start () const
 
Weight Final (StateId s) const
 
size_t NumArcs (StateId s) const
 
size_t NumInputEpsilons (StateId s) const
 
size_t NumOutputEpsilons (StateId s) const
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
 
StateId NumKnownStates () const
 
void UpdateNumKnownStates (StateId s)
 
StateId MinUnexpandedState () const
 
StateId MaxExpandedState () const
 
void SetExpandedState (StateId s)
 
bool ExpandedState (StateId s) const
 
const DefaultCacheStore< typename CacheState< Arc >::Arc > * GetCacheStore () const
 
DefaultCacheStore< typename CacheState< Arc >::Arc > * GetCacheStore ()
 
bool GetCacheGc () const
 
size_t GetCacheLimit () const
 
- Public Member Functions inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< CacheState< Arc >::Arc > &impl)
 
virtual ~FstImpl ()
 
const string & Type () const
 
void SetType (const string &type)
 
void SetProperties (uint64 props)
 
void SetProperties (uint64 props, uint64 mask)
 
void SetProperties (uint64 props, uint64 mask) const
 
const SymbolTableInputSymbols () const
 
SymbolTableInputSymbols ()
 
const SymbolTableOutputSymbols () const
 
SymbolTableOutputSymbols ()
 
void SetInputSymbols (const SymbolTable *isyms)
 
void SetOutputSymbols (const SymbolTable *osyms)
 
bool ReadHeader (std::istream &strm, const FstReadOptions &opts, int min_version, FstHeader *hdr)
 
void WriteHeader (std::ostream &strm, const FstWriteOptions &opts, int version, FstHeader *hdr) const
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
static void WriteFstHeader (const Fst< CacheState< Arc >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheState< Arc >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
uint64 properties_
 

Detailed Description

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
class fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >

Definition at line 728 of file determinize.h.

Member Typedef Documentation

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::FactorIterator = GallicFactor<Label, Weight, G>

Definition at line 745 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::FromFst = ArcMapFst<ToArc, Arc, FromMapper>

Definition at line 738 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::FromMapper = FromGallicMapper<Arc, G>

Definition at line 737 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::Label = typename Arc::Label

Definition at line 730 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::StateId = typename Arc::StateId

Definition at line 731 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ToArc = typename ToMapper::ToArc

Definition at line 735 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ToCommonDivisor = GallicCommonDivisor<Label, Weight, G, CommonDivisor>

Definition at line 740 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ToFilter = typename Filter::template rebind<ToArc>::Other

Definition at line 741 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ToFilterState = typename ToFilter::FilterState

Definition at line 742 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ToFst = ArcMapFst<Arc, ToArc, ToMapper>

Definition at line 736 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ToMapper = ToGallicMapper<Arc, G>

Definition at line 734 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ToStateTable = typename StateTable::template rebind<ToArc, ToFilterState>::Other

Definition at line 744 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
using fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::Weight = typename Arc::Weight

Definition at line 732 of file determinize.h.

Constructor & Destructor Documentation

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::DeterminizeFstImpl ( const Fst< Arc > &  fst,
const DeterminizeFstOptions< Arc, CommonDivisor, Filter, StateTable > &  opts 
)
inline

Definition at line 752 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::DeterminizeFstImpl ( const DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable > &  impl)
inline

Definition at line 768 of file determinize.h.

Member Function Documentation

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
Weight fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ComputeFinal ( StateId  s)
inlineoverridevirtual

Implements fst::internal::DeterminizeFstImplBase< Arc >.

Definition at line 796 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
StateId fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::ComputeStart ( )
inlineoverridevirtual

Implements fst::internal::DeterminizeFstImplBase< Arc >.

Definition at line 794 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
DeterminizeFstImpl<Arc, G, CommonDivisor, Filter, StateTable>* fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::Copy ( ) const
inlineoverridevirtual

Implements fst::internal::DeterminizeFstImplBase< Arc >.

Definition at line 777 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
void fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::Expand ( StateId  s)
inlineoverridevirtual

Implements fst::internal::DeterminizeFstImplBase< Arc >.

Definition at line 798 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
uint64 fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::Properties ( ) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheState< Arc >::Arc >.

Definition at line 783 of file determinize.h.

template<class Arc, GallicType G, class CommonDivisor, class Filter, class StateTable>
uint64 fst::internal::DeterminizeFstImpl< Arc, G, CommonDivisor, Filter, StateTable >::Properties ( uint64  mask) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheState< Arc >::Arc >.

Definition at line 786 of file determinize.h.


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