FST  openfst-1.6.1
OpenFst Library
Classes | Public Types | Public Member Functions | List of all members
fst::internal::FactorWeightFstImpl< Arc, FactorIterator > Class Template Reference

#include <factor-weight.h>

Inheritance diagram for fst::internal::FactorWeightFstImpl< Arc, FactorIterator >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::FactorWeightFstImpl< Arc, FactorIterator >:
Collaboration graph
[legend]

Classes

struct  Element
 

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- 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

 FactorWeightFstImpl (const Fst< Arc > &fst, const FactorWeightOptions< Arc > &opts)
 
 FactorWeightFstImpl (const FactorWeightFstImpl< Arc, FactorIterator > &impl)
 
StateId Start ()
 
Weight Final (StateId s)
 
size_t NumArcs (StateId s)
 
size_t NumInputEpsilons (StateId s)
 
size_t NumOutputEpsilons (StateId s)
 
uint64 Properties () const override
 
uint64 Properties (uint64 mask) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data)
 
StateId FindState (const Element &element)
 
void Expand (StateId s)
 
- 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, class FactorIterator>
class fst::internal::FactorWeightFstImpl< Arc, FactorIterator >

Definition at line 187 of file factor-weight.h.

Member Typedef Documentation

template<class Arc, class FactorIterator>
using fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::Label = typename Arc::Label

Definition at line 189 of file factor-weight.h.

template<class Arc, class FactorIterator>
using fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::StateId = typename Arc::StateId

Definition at line 190 of file factor-weight.h.

template<class Arc, class FactorIterator>
using fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::Weight = typename Arc::Weight

Definition at line 191 of file factor-weight.h.

Constructor & Destructor Documentation

template<class Arc, class FactorIterator>
fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::FactorWeightFstImpl ( const Fst< Arc > &  fst,
const FactorWeightOptions< Arc > &  opts 
)
inline

Definition at line 215 of file factor-weight.h.

template<class Arc, class FactorIterator>
fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::FactorWeightFstImpl ( const FactorWeightFstImpl< Arc, FactorIterator > &  impl)
inline

Definition at line 235 of file factor-weight.h.

Member Function Documentation

template<class Arc, class FactorIterator>
void fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::Expand ( StateId  s)
inline

Definition at line 331 of file factor-weight.h.

template<class Arc, class FactorIterator>
Weight fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::Final ( StateId  s)
inline

Definition at line 259 of file factor-weight.h.

template<class Arc, class FactorIterator>
StateId fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::FindState ( const Element element)
inline

Definition at line 309 of file factor-weight.h.

template<class Arc, class FactorIterator>
void fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
)
inline

Definition at line 302 of file factor-weight.h.

template<class Arc, class FactorIterator>
size_t fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::NumArcs ( StateId  s)
inline

Definition at line 277 of file factor-weight.h.

template<class Arc, class FactorIterator>
size_t fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::NumInputEpsilons ( StateId  s)
inline

Definition at line 282 of file factor-weight.h.

template<class Arc, class FactorIterator>
size_t fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::NumOutputEpsilons ( StateId  s)
inline

Definition at line 287 of file factor-weight.h.

template<class Arc, class FactorIterator>
uint64 fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::Properties ( ) const
inlineoverridevirtual

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

Definition at line 292 of file factor-weight.h.

template<class Arc, class FactorIterator>
uint64 fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::Properties ( uint64  mask) const
inlineoverridevirtual

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

Definition at line 295 of file factor-weight.h.

template<class Arc, class FactorIterator>
StateId fst::internal::FactorWeightFstImpl< Arc, FactorIterator >::Start ( )
inline

Definition at line 250 of file factor-weight.h.


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