FST
openfst-1.8.2
OpenFst Library
|
#include <compose.h>
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 |
![]() | |
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 > |
![]() | |
using | Arc = typename CacheStore::State::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | Store = CacheStore |
![]() | |
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 | |
ComposeFstImpl * | Copy () const override |
uint64_t | Properties () const override |
uint64_t | Properties (uint64_t mask) const override |
void | Expand (StateId s) override |
const FST1 & | GetFst1 () const |
const FST2 & | GetFst2 () const |
const Matcher1 * | GetMatcher1 () const |
Matcher1 * | GetMatcher1 () |
const Matcher2 * | GetMatcher2 () const |
Matcher2 * | GetMatcher2 () |
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 |
![]() | |
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) |
![]() | |
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 |
![]() | |
FstImpl () | |
FstImpl (const FstImpl< CacheStore::State::Arc > &impl) | |
FstImpl (FstImpl< CacheStore::State::Arc > &&impl) noexcept | |
virtual | ~FstImpl () |
FstImpl & | operator= (const FstImpl &impl) |
FstImpl & | operator= (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 SymbolTable * | InputSymbols () const |
SymbolTable * | InputSymbols () |
const SymbolTable * | OutputSymbols () const |
SymbolTable * | OutputSymbols () |
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 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) |
![]() | |
std::atomic< uint64_t > | properties_ |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Arc = typename CacheStore::Arc |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::CacheImpl = CacheBaseImpl<State, CacheStore> |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::FilterState = typename Filter::FilterState |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::FST1 = typename Matcher1::FST |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::FST2 = typename Matcher2::FST |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Label = typename Arc::Label |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Matcher1 = typename Filter::Matcher1 |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Matcher2 = typename Filter::Matcher2 |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::State = typename CacheStore::State |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::StateId = typename Arc::StateId |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::StateTuple = typename StateTable::StateTuple |
using fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::Weight = typename Arc::Weight |
fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >::ComposeFstImpl | ( | const FST1 & | fst1, |
const FST2 & | fst2, | ||
const ComposeFstImplOptions< M1, M2, Filter, StateTable, CacheStore > & | opts | ||
) |
|
inline |
|
inlineoverride |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Reimplemented from fst::internal::ComposeFstImplBase< CacheStore::Arc, CacheStore >.
|
inlineoverridevirtual |
Reimplemented from fst::internal::FstImpl< CacheStore::State::Arc >.
|
inlineoverridevirtual |
Reimplemented from fst::internal::FstImpl< CacheStore::State::Arc >.
|
friend |