FST  openfst-1.7.5
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=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 ()
 
 FstImpl (const FstImpl< CacheStore::State::Arc > &impl)
 
 FstImpl (FstImpl< CacheStore::State::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (const std::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 std::string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheStore::State::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const std::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 213 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 222 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 230 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 227 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 219 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 220 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 223 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 216 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 217 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 228 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 224 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 232 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 225 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 442 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 246 of file compose.h.

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

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

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

Definition at line 306 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 292 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 294 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 296 of file compose.h.

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

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

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

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

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

Definition at line 310 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 312 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 263 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 266 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 234 of file compose.h.


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