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

#include <expand.h>

Inheritance diagram for fst::internal::MPdtExpandFstImpl< Arc >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::MPdtExpandFstImpl< Arc >:
Collaboration graph
[legend]

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using StackId = StateId
 
using StateTuple = PdtStateTuple< StateId, StackId >
 
using ParenStack = internal::MPdtStack< StateId, Label >
 
- 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

 MPdtExpandFstImpl (const Fst< Arc > &fst, const std::vector< std::pair< Label, Label >> &parens, const std::vector< Label > &assignments, const MPdtExpandFstOptions< Arc > &opts)
 
 MPdtExpandFstImpl (const MPdtExpandFstImpl &impl)
 
 ~MPdtExpandFstImpl () override
 
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)
 
void ExpandState (StateId s)
 
const ParenStackGetStack () const
 
const PdtStateTable< StateId, StackId > & GetStateTable () 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)
 
virtual uint64_t Properties () const
 
virtual uint64_t Properties (uint64_t mask) const
 
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>
class fst::internal::MPdtExpandFstImpl< Arc >

Definition at line 66 of file expand.h.

Member Typedef Documentation

template<class Arc >
using fst::internal::MPdtExpandFstImpl< Arc >::Label = typename Arc::Label

Definition at line 68 of file expand.h.

Definition at line 74 of file expand.h.

template<class Arc >
using fst::internal::MPdtExpandFstImpl< Arc >::StackId = StateId

Definition at line 72 of file expand.h.

template<class Arc >
using fst::internal::MPdtExpandFstImpl< Arc >::StateId = typename Arc::StateId

Definition at line 69 of file expand.h.

Definition at line 73 of file expand.h.

template<class Arc >
using fst::internal::MPdtExpandFstImpl< Arc >::Weight = typename Arc::Weight

Definition at line 70 of file expand.h.

Constructor & Destructor Documentation

template<class Arc >
fst::internal::MPdtExpandFstImpl< Arc >::MPdtExpandFstImpl ( const Fst< Arc > &  fst,
const std::vector< std::pair< Label, Label >> &  parens,
const std::vector< Label > &  assignments,
const MPdtExpandFstOptions< Arc > &  opts 
)
inline

Definition at line 90 of file expand.h.

template<class Arc >
fst::internal::MPdtExpandFstImpl< Arc >::MPdtExpandFstImpl ( const MPdtExpandFstImpl< Arc > &  impl)
inline

Definition at line 109 of file expand.h.

template<class Arc >
fst::internal::MPdtExpandFstImpl< Arc >::~MPdtExpandFstImpl ( )
inlineoverride

Definition at line 123 of file expand.h.

Member Function Documentation

template<class Arc >
void fst::internal::MPdtExpandFstImpl< Arc >::ExpandState ( StateId  s)
inline

Definition at line 172 of file expand.h.

template<class Arc >
Weight fst::internal::MPdtExpandFstImpl< Arc >::Final ( StateId  s)
inline

Definition at line 139 of file expand.h.

template<class Arc >
const ParenStack& fst::internal::MPdtExpandFstImpl< Arc >::GetStack ( ) const
inline

Definition at line 190 of file expand.h.

template<class Arc >
const PdtStateTable<StateId, StackId>& fst::internal::MPdtExpandFstImpl< Arc >::GetStateTable ( ) const
inline

Definition at line 192 of file expand.h.

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

Definition at line 165 of file expand.h.

template<class Arc >
size_t fst::internal::MPdtExpandFstImpl< Arc >::NumArcs ( StateId  s)
inline

Definition at line 150 of file expand.h.

template<class Arc >
size_t fst::internal::MPdtExpandFstImpl< Arc >::NumInputEpsilons ( StateId  s)
inline

Definition at line 155 of file expand.h.

template<class Arc >
size_t fst::internal::MPdtExpandFstImpl< Arc >::NumOutputEpsilons ( StateId  s)
inline

Definition at line 160 of file expand.h.

template<class Arc >
StateId fst::internal::MPdtExpandFstImpl< Arc >::Start ( )
inline

Definition at line 128 of file expand.h.


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