FST  openfst-1.7.0
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 Properties () const override
 
uint64 Properties (uint64 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
 
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)
 
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 ()
 
 FstImpl (const FstImpl< CacheStore::State::Arc > &impl)
 
 FstImpl (FstImpl< CacheStore::State::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< CacheStore::State::Arc > &impl)
 
FstImploperator= (FstImpl< CacheStore::State::Arc > &&impl) noexcept
 
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
 

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, const string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheStore::State::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< CacheStore::State::Arc >
uint64 properties_
 

Detailed Description

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

Definition at line 212 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 221 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 229 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 226 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 218 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 219 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 222 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 215 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 216 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 227 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 223 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 231 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 224 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 441 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 245 of file compose.h.

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

Definition at line 256 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 303 of file compose.h.

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

Definition at line 305 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 291 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 293 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 295 of file compose.h.

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

Definition at line 297 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 299 of file compose.h.

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

Definition at line 301 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 307 of file compose.h.

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

Definition at line 309 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 311 of file compose.h.

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

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

Definition at line 262 of file compose.h.

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

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

Definition at line 265 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 233 of file compose.h.


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