FST  openfst-1.7.0
OpenFst Library
Public Types | Public Member Functions | Protected Member Functions | List of all members
fst::internal::ComposeFstImplBase< Arc, CacheStore, F > Class Template Referenceabstract

#include <compose.h>

Inheritance diagram for fst::internal::ComposeFstImplBase< Arc, CacheStore, F >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::ComposeFstImplBase< Arc, CacheStore, F >:
Collaboration graph
[legend]

Public Types

using FST = F
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename 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

 ComposeFstImplBase (const CacheImplOptions< CacheStore > &opts)
 
 ComposeFstImplBase (const CacheOptions &opts)
 
 ComposeFstImplBase (const ComposeFstImplBase &impl)
 
virtual ComposeFstImplBaseCopy () const =0
 
 ~ComposeFstImplBase () override
 
StateId Start ()
 
Weight Final (StateId s)
 
virtual void Expand (StateId s)=0
 
size_t NumArcs (StateId s)
 
size_t NumInputEpsilons (StateId s)
 
size_t NumOutputEpsilons (StateId s)
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data)
 
virtual MatcherBase< Arc > * InitMatcher (const F &fst, MatchType match_type) const
 
- 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)
 
virtual uint64 Properties () const
 
virtual uint64 Properties (uint64 mask) const
 
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
 

Protected Member Functions

virtual StateId ComputeStart ()=0
 
virtual Weight ComputeFinal (StateId s)=0
 

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 Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
class fst::internal::ComposeFstImplBase< Arc, CacheStore, F >

Definition at line 123 of file compose.h.

Member Typedef Documentation

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
using fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::CacheImpl = CacheBaseImpl<State, CacheStore>

Definition at line 132 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
using fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::FST = F

Definition at line 126 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
using fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::Label = typename Arc::Label

Definition at line 127 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
using fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::State = typename CacheStore::State

Definition at line 131 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
using fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::StateId = typename Arc::StateId

Definition at line 128 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
using fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::Weight = typename Arc::Weight

Definition at line 129 of file compose.h.

Constructor & Destructor Documentation

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::ComposeFstImplBase ( const CacheImplOptions< CacheStore > &  opts)
inline

Definition at line 146 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::ComposeFstImplBase ( const CacheOptions opts)
inline

Definition at line 149 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::ComposeFstImplBase ( const ComposeFstImplBase< Arc, CacheStore, F > &  impl)
inline

Definition at line 151 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::~ComposeFstImplBase ( )
inlineoverride

Definition at line 160 of file compose.h.

Member Function Documentation

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
virtual Weight fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::ComputeFinal ( StateId  s)
protectedpure virtual
template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
virtual StateId fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::ComputeStart ( )
protectedpure virtual
template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
virtual ComposeFstImplBase* fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::Copy ( ) const
pure virtual
template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
virtual void fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::Expand ( StateId  s)
pure virtual
template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
Weight fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::Final ( StateId  s)
inline

Definition at line 170 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
void fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
)
inline

Definition at line 192 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
virtual MatcherBase<Arc>* fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::InitMatcher ( const F &  fst,
MatchType  match_type 
) const
inlinevirtual

Reimplemented in fst::internal::ComposeFstImpl< CacheStore, Filter, StateTable >.

Definition at line 197 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
size_t fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::NumArcs ( StateId  s)
inline

Definition at line 177 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
size_t fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::NumInputEpsilons ( StateId  s)
inline

Definition at line 182 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
size_t fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::NumOutputEpsilons ( StateId  s)
inline

Definition at line 187 of file compose.h.

template<class Arc, class CacheStore = DefaultCacheStore<Arc>, class F = ComposeFst<Arc, CacheStore>>
StateId fst::internal::ComposeFstImplBase< Arc, CacheStore, F >::Start ( )
inline

Definition at line 162 of file compose.h.


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