FST
openfst-1.8.4
OpenFst Library
|
#include <compact-fst.h>
Public Types | |
using | Arc = A |
using | StateId = typename Arc::StateId |
using | Compactor = C |
using | Store = CacheStore |
using | Impl = I |
![]() | |
using | Impl = internal::CompactFstImpl< A, C, CacheStore > |
using | Arc = typename ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
![]() | |
using | Impl = internal::CompactFstImpl< A, C, CacheStore > |
using | Arc = typename Impl::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
![]() | |
using | Arc = typename internal::CompactFstImpl< A, C, CacheStore >::Arc |
using | StateId = typename Arc::StateId |
![]() | |
using | Arc = A |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
Public Member Functions | |
template<class F , class G > | |
void friend | Cast (const F &, G *) |
CompactFst () | |
CompactFst (const Fst< Arc > &fst, const CompactFstOptions &opts=CompactFstOptions()) | |
CompactFst (const Fst< Arc > &fst, std::shared_ptr< Compactor > compactor, const CompactFstOptions &opts=CompactFstOptions()) | |
CompactFst (const Fst< Arc > &fst, Compactor &&compactor, const CompactFstOptions &opts=CompactFstOptions()) | |
CompactFst (std::shared_ptr< Compactor > compactor, const CompactFstOptions &opts=CompactFstOptions()) | |
CompactFst (const CompactFst &fst, bool safe=false) | |
CompactFst * | Copy (bool safe=false) const override |
bool | Write (std::ostream &strm, const FstWriteOptions &opts) const override |
bool | Write (const std::string &source) const override |
void | InitStateIterator (StateIteratorData< Arc > *data) const override |
void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override |
MatcherBase< Arc > * | InitMatcher (MatchType match_type) const override |
const Compactor * | GetCompactor () const |
void | SetCompactor (std::shared_ptr< Compactor > compactor) |
![]() | |
StateId | NumStates () const override |
![]() | |
StateId | Start () const override |
Weight | Final (StateId s) const override |
size_t | NumArcs (StateId s) const override |
size_t | NumInputEpsilons (StateId s) const override |
size_t | NumOutputEpsilons (StateId s) const override |
uint64_t | Properties (uint64_t mask, bool test) const override |
const std::string & | Type () const override |
const SymbolTable * | InputSymbols () const override |
const SymbolTable * | OutputSymbols () const override |
![]() | |
std::optional< StateId > | NumStatesIfKnown () const override |
![]() | |
virtual | ~Fst ()=default |
Static Public Member Functions | |
static CompactFst * | Read (std::istream &strm, const FstReadOptions &opts) |
static CompactFst * | Read (std::string_view source) |
![]() | |
static ExpandedFst * | Read (std::istream &strm, const FstReadOptions &opts) |
static ExpandedFst * | Read (std::string_view source) |
![]() | |
static Fst * | Read (std::istream &strm, const FstReadOptions &opts) |
static Fst * | Read (std::string_view source) |
Friends | |
class | StateIterator< CompactFst > |
class | ArcIterator< CompactFst > |
Additional Inherited Members | |
![]() | |
ImplToExpandedFst (std::shared_ptr< Impl > impl) | |
ImplToExpandedFst (const ImplToExpandedFst &fst, bool safe) | |
![]() | |
ImplToFst (std::shared_ptr< Impl > impl) | |
ImplToFst (const ImplToFst &fst, bool safe) | |
ImplToFst ()=delete | |
ImplToFst (const ImplToFst &fst) | |
ImplToFst (ImplToFst &&fst) noexcept | |
ImplToFst & | operator= (const ImplToFst &fst) |
ImplToFst & | operator= (ImplToFst &&fst) noexcept |
const Impl * | GetImpl () const |
Impl * | GetMutableImpl () const |
std::shared_ptr< Impl > | GetSharedImpl () const |
bool | Unique () const |
void | SetImpl (std::shared_ptr< Impl > impl) |
![]() | |
bool | WriteFile (const std::string &source) const |
![]() | |
static Impl * | Read (std::istream &strm, const FstReadOptions &opts) |
static Impl * | Read (std::string_view source) |
Definition at line 1108 of file compact-fst.h.
using fst::CompactFst< A, C, CacheStore >::Arc = A |
Definition at line 1116 of file compact-fst.h.
using fst::CompactFst< A, C, CacheStore >::Compactor = C |
Definition at line 1118 of file compact-fst.h.
using fst::ImplToExpandedFst< I, FST >::Impl = I |
Definition at line 142 of file expanded-fst.h.
using fst::CompactFst< A, C, CacheStore >::StateId = typename Arc::StateId |
Definition at line 1117 of file compact-fst.h.
using fst::CompactFst< A, C, CacheStore >::Store = CacheStore |
Definition at line 1120 of file compact-fst.h.
|
inline |
Definition at line 1125 of file compact-fst.h.
|
inlineexplicit |
Definition at line 1127 of file compact-fst.h.
|
inline |
Definition at line 1135 of file compact-fst.h.
|
inline |
Definition at line 1145 of file compact-fst.h.
|
inlineexplicit |
Definition at line 1150 of file compact-fst.h.
|
inline |
Definition at line 1155 of file compact-fst.h.
void friend fst::CompactFst< A, C, CacheStore >::Cast | ( | const F & | , |
G * | |||
) |
|
inlineoverridevirtual |
Implements fst::ExpandedFst< typename internal::CompactFstImpl< A, C, CacheStore >::Arc >.
Definition at line 1158 of file compact-fst.h.
|
inline |
Definition at line 1195 of file compact-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< A >.
Definition at line 1187 of file compact-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 1191 of file compact-fst.h.
|
inlineoverridevirtual |
Implements fst::Fst< A >.
Definition at line 1183 of file compact-fst.h.
|
inlinestatic |
Definition at line 1163 of file compact-fst.h.
|
inlinestatic |
Definition at line 1170 of file compact-fst.h.
|
inline |
Definition at line 1197 of file compact-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 1175 of file compact-fst.h.
|
inlineoverridevirtual |
Reimplemented from fst::Fst< A >.
Definition at line 1179 of file compact-fst.h.
|
friend |
Definition at line 1123 of file compact-fst.h.
|
friend |
Definition at line 1122 of file compact-fst.h.