FST  openfst-1.8.3
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 &impl)
 
DeterminizeFstImplCopy () const override
 
uint64_t Properties () const override
 
uint64_t Properties (uint64_t 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 &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 ()=default
 
 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=Weight::One())
 
void PushArc (StateId s, const Arc &arc)
 
void PushArc (StateId s, Arc &&arc)
 
void EmplaceArc (StateId s, T &&...ctor_args)
 
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 ()=default
 
 FstImpl (const FstImpl< CacheState< Arc >::Arc > &impl)
 
 FstImpl (FstImpl< CacheState< Arc >::Arc > &&impl) noexcept
 
virtual ~FstImpl ()=default
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (std::string_view type)
 
void SetProperties (uint64_t props)
 
void SetProperties (uint64_t props, uint64_t mask)
 
void SetProperties (uint64_t props, uint64_t mask) const
 
void UpdateProperties (uint64_t props, uint64_t mask)
 
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, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheState< Arc >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
std::atomic< uint64_t > 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 759 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 776 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 769 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 768 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 761 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 762 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 766 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 771 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 772 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 773 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 767 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 765 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 775 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 763 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 783 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 800 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 825 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 823 of file determinize.h.

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

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

Definition at line 808 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 827 of file determinize.h.

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

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

Definition at line 812 of file determinize.h.

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

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

Definition at line 815 of file determinize.h.


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