FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Friends | List of all members
fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable > Class Template Reference

#include <compose.h>

Inheritance diagram for fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >:
Collaboration graph
[legend]

Public Types

using Matcher1 = typename Filter::Matcher1
 
using Matcher2 = typename Filter::Matcher2
 
using FST1 = typename Matcher1::FST
 
using FST2 = typename Matcher2::FST
 
using Arc = typename CacheStore::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using FilterState = typename Filter::FilterState
 
using State = typename CacheStore::State
 
using CacheImpl = CacheBaseImpl< State, CacheStore >
 
using StateTuple = typename StateTable::StateTuple
 
- Public Types inherited from fst::internal::ComposeFstImplBase< CacheStore::Arc, CacheStore >
using FST = ComposeFst< CacheStore::Arc, CacheStore >
 
using Label = typename CacheStore::Arc::Label
 
using StateId = typename CacheStore::Arc::StateId
 
using Weight = typename CacheStore::Arc::Weight
 
using State = typename CacheStore::State
 
using CacheImpl = CacheBaseImpl< State, CacheStore >
 
- Public Types inherited from fst::internal::CacheBaseImpl< CacheStore::State, CacheStore >
using Arc = typename CacheStore::State::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = CacheStore
 
- Public Types inherited from fst::internal::FstImpl< CacheStore::State::Arc >
using StateId = typename CacheStore::State::Arc::StateId
 
using Weight = typename CacheStore::State::Arc::Weight
 

Public Member Functions

template<class M1 , class M2 >
 ComposeFstImpl (const FST1 &fst1, const FST2 &fst2, const ComposeFstImplOptions< M1, M2, Filter, StateTable, CacheStore > &opts)
 
 ComposeFstImpl (const ComposeFstImpl &impl)
 
 ~ComposeFstImpl () override
 
ComposeFstImplCopy () const override
 
uint64_t Properties () const override
 
uint64_t Properties (uint64_t mask) const override
 
void Expand (StateId s) override
 
const FST1GetFst1 () const
 
const FST2GetFst2 () const
 
const Matcher1GetMatcher1 () const
 
Matcher1GetMatcher1 ()
 
const Matcher2GetMatcher2 () const
 
Matcher2GetMatcher2 ()
 
const Filter * GetFilter () const
 
Filter * GetFilter ()
 
const StateTable * GetStateTable () const
 
StateTable * GetStateTable ()
 
MatcherBase< Arc > * InitMatcher (const ComposeFst< Arc, CacheStore > &fst, MatchType match_type) const override
 
- Public Member Functions inherited from fst::internal::ComposeFstImplBase< CacheStore::Arc, CacheStore >
 ComposeFstImplBase (const CacheImplOptions< CacheStore > &opts)
 
 ComposeFstImplBase (const CacheOptions &opts)
 
 ComposeFstImplBase (const ComposeFstImplBase &impl)
 
 ~ComposeFstImplBase () override=default
 
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< CacheStore::Arc > *data)
 
- Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheStore::State, CacheStore >
 CacheBaseImpl (const CacheOptions &opts=CacheOptions())
 
 CacheBaseImpl (const CacheImplOptions< CacheStore > &opts)
 
 CacheBaseImpl (const CacheBaseImpl< CacheStore::State, CacheStore > &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 CacheStore * GetCacheStore () const
 
CacheStore * GetCacheStore ()
 
bool GetCacheGc () const
 
size_t GetCacheLimit () const
 
- Public Member Functions inherited from fst::internal::FstImpl< CacheStore::State::Arc >
 FstImpl ()=default
 
 FstImpl (const FstImpl< CacheStore::State::Arc > &impl)
 
 FstImpl (FstImpl< CacheStore::State::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
 

Friends

class ComposeFstMatcher< CacheStore, Filter, StateTable >
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::internal::FstImpl< CacheStore::State::Arc >
static void WriteFstHeader (const Fst< CacheStore::State::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheStore::State::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< CacheStore::State::Arc >
std::atomic< uint64_t > properties_
 

Detailed Description

template<class CacheStore, class Filter, class StateTable>
class fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >

Definition at line 237 of file compose.h.

Member Typedef Documentation

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Arc = typename CacheStore::Arc

Definition at line 246 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::CacheImpl = CacheBaseImpl<State, CacheStore>

Definition at line 254 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::FilterState = typename Filter::FilterState

Definition at line 251 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::FST1 = typename Matcher1::FST

Definition at line 243 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::FST2 = typename Matcher2::FST

Definition at line 244 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Label = typename Arc::Label

Definition at line 247 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Matcher1 = typename Filter::Matcher1

Definition at line 240 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Matcher2 = typename Filter::Matcher2

Definition at line 241 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::State = typename CacheStore::State

Definition at line 252 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::StateId = typename Arc::StateId

Definition at line 248 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::StateTuple = typename StateTable::StateTuple

Definition at line 256 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Weight = typename Arc::Weight

Definition at line 249 of file compose.h.

Constructor & Destructor Documentation

template<class CacheStore , class Filter , class StateTable >
template<class M1 , class M2 >
fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::ComposeFstImpl ( const FST1 fst1,
const FST2 fst2,
const ComposeFstImplOptions< M1, M2, Filter, StateTable, CacheStore > &  opts 
)

Definition at line 466 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::ComposeFstImpl ( const ComposeFstImpl< CacheStore, Filter, StateTable > &  impl)
inline

Definition at line 270 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::~ComposeFstImpl ( )
inlineoverride

Definition at line 281 of file compose.h.

Member Function Documentation

template<class CacheStore , class Filter , class StateTable >
ComposeFstImpl* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Copy ( ) const
inlineoverridevirtual
template<class CacheStore , class Filter , class StateTable >
void fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Expand ( StateId  s)
inlineoverridevirtual
template<class CacheStore , class Filter , class StateTable >
const Filter* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetFilter ( ) const
inline

Definition at line 328 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
Filter* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetFilter ( )
inline

Definition at line 330 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
const FST1& fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetFst1 ( ) const
inline

Definition at line 316 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
const FST2& fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetFst2 ( ) const
inline

Definition at line 318 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
const Matcher1* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetMatcher1 ( ) const
inline

Definition at line 320 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
Matcher1* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetMatcher1 ( )
inline

Definition at line 322 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
const Matcher2* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetMatcher2 ( ) const
inline

Definition at line 324 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
Matcher2* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetMatcher2 ( )
inline

Definition at line 326 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
const StateTable* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetStateTable ( ) const
inline

Definition at line 332 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
StateTable* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::GetStateTable ( )
inline

Definition at line 334 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
MatcherBase<Arc>* fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::InitMatcher ( const ComposeFst< Arc, CacheStore > &  fst,
MatchType  match_type 
) const
inlineoverridevirtual

Reimplemented from fst::internal::ComposeFstImplBase< CacheStore::Arc, CacheStore >.

Definition at line 336 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
uint64_t fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Properties ( ) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheStore::State::Arc >.

Definition at line 287 of file compose.h.

template<class CacheStore , class Filter , class StateTable >
uint64_t fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Properties ( uint64_t  mask) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheStore::State::Arc >.

Definition at line 290 of file compose.h.

Friends And Related Function Documentation

template<class CacheStore , class Filter , class StateTable >
friend class ComposeFstMatcher< CacheStore, Filter, StateTable >
friend

Definition at line 258 of file compose.h.


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