FST
openfst-1.8.2
OpenFst Library
|
#include <const-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 | |
ConstFstImpl () | |
ConstFstImpl (const Fst< Arc > &fst) | |
StateId | Start () const |
Weight | Final (StateId s) const |
StateId | NumStates () const |
size_t | NumArcs (StateId s) const |
size_t | NumInputEpsilons (StateId s) const |
size_t | NumOutputEpsilons (StateId s) const |
const Arc * | Arcs (StateId s) const |
void | InitStateIterator (StateIteratorData< Arc > *data) const |
void | InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const |
![]() | |
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 ConstFstImpl * | 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) |
Friends | |
class | ConstFst< Arc, Unsigned > |
Additional Inherited Members | |
![]() | |
std::atomic< uint64_t > | properties_ |
Definition at line 50 of file const-fst.h.
using fst::internal::ConstFstImpl< A, Unsigned >::Arc = A |
Definition at line 52 of file const-fst.h.
using fst::internal::ConstFstImpl< A, Unsigned >::StateId = typename Arc::StateId |
Definition at line 53 of file const-fst.h.
using fst::internal::ConstFstImpl< A, Unsigned >::Weight = typename Arc::Weight |
Definition at line 54 of file const-fst.h.
|
inline |
Definition at line 62 of file const-fst.h.
|
explicit |
Definition at line 141 of file const-fst.h.
|
inline |
Definition at line 87 of file const-fst.h.
|
inline |
Definition at line 75 of file const-fst.h.
|
inline |
Definition at line 96 of file const-fst.h.
|
inline |
Definition at line 90 of file const-fst.h.
|
inline |
Definition at line 79 of file const-fst.h.
|
inline |
Definition at line 81 of file const-fst.h.
|
inline |
Definition at line 83 of file const-fst.h.
|
inline |
Definition at line 77 of file const-fst.h.
|
static |
Definition at line 185 of file const-fst.h.
|
inline |
Definition at line 73 of file const-fst.h.
Definition at line 105 of file const-fst.h.