FST  openfst-1.8.2.post1
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=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 (std::string_view type)
 
virtual uint64_t Properties () const
 
virtual uint64_t Properties (uint64_t mask) const
 
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
 

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

Definition at line 138 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 147 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 141 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 142 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 146 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 143 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 144 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)
inlineexplicit

Definition at line 161 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)
inlineexplicit

Definition at line 164 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 166 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 175 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 185 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 207 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 212 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 192 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 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 >::NumOutputEpsilons ( StateId  s)
inline

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


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