FST
openfst-1.8.2
OpenFst Library
|
#include <edit-fst.h>
Public Types | |
using | Arc = A |
using | StateId = typename Arc::StateId |
using | Weight = typename Arc::Weight |
![]() | |
using | StateId = typename A::StateId |
using | Weight = typename A::Weight |
Public Member Functions | |
EditFstImpl () | |
EditFstImpl (const Fst< Arc > &wrapped) | |
EditFstImpl (const EditFstImpl &impl) | |
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 |
StateId | NumStates () const |
bool | Write (std::ostream &strm, const FstWriteOptions &opts) const |
void | SetStart (StateId s) |
void | SetFinal (StateId s, Weight weight) |
StateId | AddState () |
void | AddStates (size_t n) |
void | AddArc (StateId s, const Arc &arc) |
void | DeleteStates (const std::vector< StateId > &dstates) |
void | DeleteStates () |
void | DeleteArcs (StateId s, size_t n) |
void | DeleteArcs (StateId s) |
void | ReserveStates (StateId s) |
void | ReserveArcs (StateId s, size_t n) |
void | InitStateIterator (StateIteratorData< Arc > *data) const |
void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const |
void | InitMutableArcIterator (StateId s, MutableArcIteratorData< Arc > *data) |
![]() | |
FstImpl () | |
FstImpl (const FstImpl< A > &impl) | |
FstImpl (FstImpl< A > &&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) |
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 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 |
Static Public Member Functions | |
static EditFstImpl * | Read (std::istream &strm, const FstReadOptions &opts) |
![]() | |
static void | WriteFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr) |
static bool | UpdateFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset) |
Additional Inherited Members | |
![]() | |
std::atomic< uint64_t > | properties_ |
Definition at line 362 of file edit-fst.h.
using fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc = A |
Definition at line 364 of file edit-fst.h.
using fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::StateId = typename Arc::StateId |
Definition at line 365 of file edit-fst.h.
using fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Weight = typename Arc::Weight |
Definition at line 366 of file edit-fst.h.
|
inline |
Definition at line 379 of file edit-fst.h.
|
inlineexplicit |
Definition at line 398 of file edit-fst.h.
|
inline |
Definition at line 410 of file edit-fst.h.
|
inline |
Definition at line 495 of file edit-fst.h.
|
inline |
Definition at line 481 of file edit-fst.h.
|
inline |
Definition at line 488 of file edit-fst.h.
|
inline |
Definition at line 512 of file edit-fst.h.
|
inline |
Definition at line 519 of file edit-fst.h.
|
inline |
Definition at line 502 of file edit-fst.h.
|
inline |
Definition at line 592 of file edit-fst.h.
|
inline |
Definition at line 424 of file edit-fst.h.
|
inline |
Definition at line 538 of file edit-fst.h.
|
inline |
Definition at line 543 of file edit-fst.h.
|
inline |
Definition at line 532 of file edit-fst.h.
|
inline |
Definition at line 426 of file edit-fst.h.
|
inline |
Definition at line 428 of file edit-fst.h.
|
inline |
Definition at line 432 of file edit-fst.h.
|
inline |
Definition at line 436 of file edit-fst.h.
|
static |
Definition at line 604 of file edit-fst.h.
|
inline |
Definition at line 527 of file edit-fst.h.
|
inline |
Definition at line 525 of file edit-fst.h.
|
inline |
Definition at line 473 of file edit-fst.h.
|
inline |
Definition at line 466 of file edit-fst.h.
|
inline |
Definition at line 419 of file edit-fst.h.
|
inline |
Definition at line 442 of file edit-fst.h.