FST
openfst-1.8.4
OpenFst Library
|
#include <synchronize.h>
Classes | |
struct | Element |
Public Types | |
using | Label = typename Arc::Label |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | String = std::basic_string< char32_t > |
using | StringView = std::basic_string_view< char32_t > |
Public Types inherited from fst::internal::CacheImpl< Arc > | |
using | State = CacheState< Arc > |
Public Types inherited from fst::internal::CacheBaseImpl< CacheState< Arc > > | |
using | Arc = typename CacheState< Arc >::Arc |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
using | Store = DefaultCacheStore< typename CacheState< Arc >::Arc > |
Public Types inherited from fst::internal::FstImpl< CacheState< Arc >::Arc > | |
using | StateId = typename CacheState< Arc >::Arc::StateId |
using | Weight = typename CacheState< Arc >::Arc::Weight |
Public Member Functions | |
SynchronizeFstImpl (const Fst< Arc > &fst, const SynchronizeFstOptions &opts) | |
SynchronizeFstImpl (const SynchronizeFstImpl &impl) | |
StateId | Start () |
Weight | Final (StateId s) |
size_t | NumArcs (StateId s) |
size_t | NumInputEpsilons (StateId s) |
size_t | NumOutputEpsilons (StateId s) |
uint64_t | Properties () const override |
uint64_t | Properties (uint64_t mask) const override |
void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) |
Label | Car (StringView str, Label label=0) const |
StringView | Cdr (StringView str, Label label=0) |
StringView | Concat (StringView str, Label label=0) |
bool | Empty (StringView str, Label label=0) const |
StringView | FindString (String &&str) |
StateId | FindState (const Element &element) |
void | Expand (StateId s) |
Public Member Functions inherited from fst::internal::CacheImpl< Arc > | |
CacheImpl ()=default | |
CacheImpl (const CacheOptions &opts) | |
CacheImpl (const CacheImpl< Arc > &impl, bool preserve_cache=false) | |
Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheState< Arc > > | |
CacheBaseImpl (const CacheOptions &opts=CacheOptions()) | |
CacheBaseImpl (const CacheImplOptions< DefaultCacheStore< typename CacheState< Arc >::Arc > > &opts) | |
CacheBaseImpl (const CacheBaseImpl< CacheState< Arc >, DefaultCacheStore< typename CacheState< Arc >::Arc > > &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 DefaultCacheStore< typename CacheState< Arc >::Arc > * | GetCacheStore () const |
DefaultCacheStore< typename CacheState< Arc >::Arc > * | GetCacheStore () |
bool | GetCacheGc () const |
size_t | GetCacheLimit () const |
Public Member Functions inherited from fst::internal::FstImpl< CacheState< Arc >::Arc > | |
FstImpl ()=default | |
FstImpl (const FstImpl< CacheState< Arc >::Arc > &impl) | |
FstImpl (FstImpl< CacheState< Arc >::Arc > &&impl) noexcept | |
virtual | ~FstImpl ()=default |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from fst::internal::FstImpl< CacheState< Arc >::Arc > | |
static void | WriteFstHeader (const Fst< CacheState< Arc >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr) |
static bool | UpdateFstHeader (const Fst< CacheState< Arc >::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< CacheState< Arc >::Arc > | |
std::atomic< uint64_t > | properties_ |
Definition at line 51 of file synchronize.h.
using fst::internal::SynchronizeFstImpl< Arc >::Label = typename Arc::Label |
Definition at line 53 of file synchronize.h.
using fst::internal::SynchronizeFstImpl< Arc >::StateId = typename Arc::StateId |
Definition at line 54 of file synchronize.h.
using fst::internal::SynchronizeFstImpl< Arc >::String = std::basic_string<char32_t> |
Definition at line 75 of file synchronize.h.
using fst::internal::SynchronizeFstImpl< Arc >::StringView = std::basic_string_view<char32_t> |
Definition at line 76 of file synchronize.h.
using fst::internal::SynchronizeFstImpl< Arc >::Weight = typename Arc::Weight |
Definition at line 55 of file synchronize.h.
|
inline |
Definition at line 91 of file synchronize.h.
|
inline |
Definition at line 100 of file synchronize.h.
|
inline |
Definition at line 167 of file synchronize.h.
|
inline |
Definition at line 177 of file synchronize.h.
|
inline |
Definition at line 183 of file synchronize.h.
|
inline |
Definition at line 190 of file synchronize.h.
|
inline |
Definition at line 216 of file synchronize.h.
|
inline |
Definition at line 119 of file synchronize.h.
|
inline |
Definition at line 205 of file synchronize.h.
|
inline |
Definition at line 198 of file synchronize.h.
|
inline |
Definition at line 160 of file synchronize.h.
|
inline |
Definition at line 135 of file synchronize.h.
|
inline |
Definition at line 140 of file synchronize.h.
|
inline |
Definition at line 145 of file synchronize.h.
|
inlineoverridevirtual |
Reimplemented from fst::internal::FstImpl< CacheState< Arc >::Arc >.
Definition at line 150 of file synchronize.h.
|
inlineoverridevirtual |
Reimplemented from fst::internal::FstImpl< CacheState< Arc >::Arc >.
Definition at line 153 of file synchronize.h.
|
inline |
Definition at line 108 of file synchronize.h.