FST
openfst-1.8.3
OpenFst Library
|
#include <fst-class.h>
Public Member Functions | |
bool | AddArc (int64_t s, const ArcClass &ac) |
int64_t | AddState () |
void | AddStates (size_t n) |
bool | DeleteArcs (int64_t s, size_t n) |
bool | DeleteArcs (int64_t s) |
bool | DeleteStates (const std::vector< int64_t > &dstates) |
void | DeleteStates () |
SymbolTable * | MutableInputSymbols () |
SymbolTable * | MutableOutputSymbols () |
int64_t | NumStates () const |
bool | ReserveArcs (int64_t s, size_t n) |
void | ReserveStates (int64_t n) |
void | SetInputSymbols (const SymbolTable *isyms) |
bool | SetFinal (int64_t s, const WeightClass &weight) |
void | SetOutputSymbols (const SymbolTable *osyms) |
void | SetProperties (uint64_t props, uint64_t mask) |
bool | SetStart (int64_t s) |
template<class Arc > | |
MutableFstClass (std::unique_ptr< MutableFst< Arc >> fst) | |
template<class Arc > | |
MutableFstClass (const MutableFst< Arc > &fst) | |
template<class Arc > | |
MutableFst< Arc > * | GetMutableFst () |
Public Member Functions inherited from fst::script::FstClass | |
FstClass () | |
template<class Arc > | |
FstClass (std::unique_ptr< Fst< Arc >> fst) | |
template<class Arc > | |
FstClass (const Fst< Arc > &fst) | |
FstClass (const FstClass &other) | |
FstClass & | operator= (const FstClass &other) |
WeightClass | Final (int64_t s) const final |
const std::string & | ArcType () const final |
const std::string & | FstType () const final |
const SymbolTable * | InputSymbols () const final |
size_t | NumArcs (int64_t s) const final |
size_t | NumInputEpsilons (int64_t s) const final |
size_t | NumOutputEpsilons (int64_t s) const final |
const SymbolTable * | OutputSymbols () const final |
uint64_t | Properties (uint64_t mask, bool test) const final |
int64_t | Start () const final |
bool | ValidStateId (int64_t s) const final |
const std::string & | WeightType () const final |
bool | WeightTypesMatch (const WeightClass &weight, std::string_view op_name) const |
bool | Write (const std::string &source) const final |
bool | Write (std::ostream &ostr, const std::string &source) const final |
~FstClass () override=default | |
template<class Arc > | |
const Fst< Arc > * | GetFst () const |
Public Member Functions inherited from fst::script::FstClassBase | |
virtual | ~FstClassBase ()=default |
Static Public Member Functions | |
static std::unique_ptr< MutableFstClass > | Read (const std::string &source, bool convert=false) |
template<class Arc > | |
static std::unique_ptr< FstClassImplBase > | Convert (const FstClass &other) |
template<class Arc > | |
static std::unique_ptr< FstClassImplBase > | Create () |
template<class Arc > | |
static std::unique_ptr< MutableFstClass > | Read (std::istream &stream, const FstReadOptions &opts) |
Static Public Member Functions inherited from fst::script::FstClass | |
static std::unique_ptr< FstClass > | Read (const std::string &source) |
static std::unique_ptr< FstClass > | Read (std::istream &istrm, const std::string &source) |
template<class Arc > | |
static std::unique_ptr< FstClassImplBase > | Convert (const FstClass &other) |
template<class Arc > | |
static std::unique_ptr< FstClassImplBase > | Create () |
template<class Arc > | |
static std::unique_ptr< FstClass > | Read (std::istream &stream, const FstReadOptions &opts) |
Protected Member Functions | |
MutableFstClass (std::unique_ptr< FstClassImplBase > impl) | |
Protected Member Functions inherited from fst::script::FstClass | |
FstClass (std::unique_ptr< FstClassImplBase > impl) | |
const FstClassImplBase * | GetImpl () const |
FstClassImplBase * | GetImpl () |
Additional Inherited Members | |
Static Protected Member Functions inherited from fst::script::FstClass | |
template<class FstClassT , class UnderlyingT > | |
static std::unique_ptr< FstClassT > | ReadTypedFst (std::istream &stream, const FstReadOptions &opts) |
Definition at line 450 of file fst-class.h.
|
inlineexplicit |
Definition at line 508 of file fst-class.h.
|
inlineexplicit |
Definition at line 515 of file fst-class.h.
|
inlineexplicitprotected |
Definition at line 548 of file fst-class.h.
|
inline |
Definition at line 452 of file fst-class.h.
|
inline |
Definition at line 457 of file fst-class.h.
|
inline |
Definition at line 459 of file fst-class.h.
|
inlinestatic |
Definition at line 520 of file fst-class.h.
|
inlinestatic |
Definition at line 527 of file fst-class.h.
|
inline |
Definition at line 461 of file fst-class.h.
|
inline |
Definition at line 463 of file fst-class.h.
|
inline |
Definition at line 465 of file fst-class.h.
|
inline |
Definition at line 469 of file fst-class.h.
|
inline |
Definition at line 534 of file fst-class.h.
|
inline |
Definition at line 471 of file fst-class.h.
|
inline |
Definition at line 475 of file fst-class.h.
|
inline |
Definition at line 479 of file fst-class.h.
|
static |
Definition at line 120 of file fst-class.cc.
|
inlinestatic |
Definition at line 541 of file fst-class.h.
|
inline |
Definition at line 481 of file fst-class.h.
|
inline |
Definition at line 483 of file fst-class.h.
|
inline |
Definition at line 492 of file fst-class.h.
|
inline |
Definition at line 488 of file fst-class.h.
|
inline |
Definition at line 497 of file fst-class.h.
|
inline |
Definition at line 501 of file fst-class.h.
|
inline |
Definition at line 505 of file fst-class.h.