FST  openfst-1.7.2
OpenFst Library
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
fst::script::MutableFstClass Class Reference

#include <fst-class.h>

Inheritance diagram for fst::script::MutableFstClass:
Inheritance graph
[legend]
Collaboration diagram for fst::script::MutableFstClass:
Collaboration graph
[legend]

Public Member Functions

bool AddArc (int64 s, const ArcClass &ac)
 
int64 AddState ()
 
bool DeleteArcs (int64 s, size_t n)
 
bool DeleteArcs (int64 s)
 
bool DeleteStates (const std::vector< int64 > &dstates)
 
void DeleteStates ()
 
SymbolTableMutableInputSymbols ()
 
SymbolTableMutableOutputSymbols ()
 
int64 NumStates () const
 
bool ReserveArcs (int64 s, size_t n)
 
void ReserveStates (int64 s)
 
void SetInputSymbols (SymbolTable *isyms)
 
bool SetFinal (int64 s, const WeightClass &weight)
 
void SetOutputSymbols (SymbolTable *osyms)
 
void SetProperties (uint64 props, uint64 mask)
 
bool SetStart (int64 s)
 
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 (const Fst< Arc > &fst)
 
 FstClass (const FstClass &other)
 
FstClassoperator= (const FstClass &other)
 
WeightClass Final (int64 s) const final
 
const string & ArcType () const final
 
const string & FstType () const final
 
const SymbolTableInputSymbols () const final
 
size_t NumArcs (int64 s) const final
 
size_t NumInputEpsilons (int64 s) const final
 
size_t NumOutputEpsilons (int64 s) const final
 
const SymbolTableOutputSymbols () const final
 
uint64 Properties (uint64 mask, bool test) const final
 
int64 Start () const final
 
bool ValidStateId (int64 s) const final
 
const string & WeightType () const final
 
bool WeightTypesMatch (const WeightClass &weight, const string &op_name) const
 
bool Write (const string &fname) const final
 
bool Write (std::ostream &ostr, const string &fname) const final
 
 ~FstClass () override
 
template<class Arc >
const Fst< Arc > * GetFst () const
 
- Public Member Functions inherited from fst::script::FstClassBase
virtual ~FstClassBase ()
 

Static Public Member Functions

static MutableFstClassRead (const string &fname, bool convert=false)
 
template<class Arc >
static FstClassImplBaseConvert (const FstClass &other)
 
template<class Arc >
static FstClassImplBaseCreate ()
 
template<class Arc >
static MutableFstClassRead (std::istream &stream, const FstReadOptions &opts)
 
- Static Public Member Functions inherited from fst::script::FstClass
static FstClassRead (const string &fname)
 
static FstClassRead (std::istream &istrm, const string &source)
 
template<class Arc >
static FstClassImplBaseConvert (const FstClass &other)
 
template<class Arc >
static FstClassImplBaseCreate ()
 
template<class Arc >
static FstClassRead (std::istream &stream, const FstReadOptions &opts)
 

Protected Member Functions

 MutableFstClass (FstClassImplBase *impl)
 
- Protected Member Functions inherited from fst::script::FstClass
 FstClass (FstClassImplBase *impl)
 
const FstClassImplBaseGetImpl () const
 
FstClassImplBaseGetImpl ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from fst::script::FstClass
template<class FstClassT , class UnderlyingT >
static FstClassT * ReadTypedFst (std::istream &stream, const FstReadOptions &opts)
 

Detailed Description

Definition at line 404 of file fst-class.h.

Constructor & Destructor Documentation

template<class Arc >
fst::script::MutableFstClass::MutableFstClass ( const MutableFst< Arc > &  fst)
inlineexplicit

Definition at line 459 of file fst-class.h.

fst::script::MutableFstClass::MutableFstClass ( FstClassImplBase impl)
inlineexplicitprotected

Definition at line 492 of file fst-class.h.

Member Function Documentation

bool fst::script::MutableFstClass::AddArc ( int64  s,
const ArcClass ac 
)
inline

Definition at line 406 of file fst-class.h.

int64 fst::script::MutableFstClass::AddState ( )
inline

Definition at line 411 of file fst-class.h.

template<class Arc >
static FstClassImplBase* fst::script::MutableFstClass::Convert ( const FstClass other)
inlinestatic

Definition at line 464 of file fst-class.h.

template<class Arc >
static FstClassImplBase* fst::script::MutableFstClass::Create ( )
inlinestatic

Definition at line 471 of file fst-class.h.

bool fst::script::MutableFstClass::DeleteArcs ( int64  s,
size_t  n 
)
inline

Definition at line 413 of file fst-class.h.

bool fst::script::MutableFstClass::DeleteArcs ( int64  s)
inline

Definition at line 415 of file fst-class.h.

bool fst::script::MutableFstClass::DeleteStates ( const std::vector< int64 > &  dstates)
inline

Definition at line 417 of file fst-class.h.

void fst::script::MutableFstClass::DeleteStates ( )
inline

Definition at line 421 of file fst-class.h.

template<class Arc >
MutableFst<Arc>* fst::script::MutableFstClass::GetMutableFst ( )
inline

Definition at line 478 of file fst-class.h.

SymbolTable* fst::script::MutableFstClass::MutableInputSymbols ( )
inline

Definition at line 423 of file fst-class.h.

SymbolTable* fst::script::MutableFstClass::MutableOutputSymbols ( )
inline

Definition at line 427 of file fst-class.h.

int64 fst::script::MutableFstClass::NumStates ( ) const
inline

Definition at line 431 of file fst-class.h.

MutableFstClass * fst::script::MutableFstClass::Read ( const string &  fname,
bool  convert = false 
)
static

Definition at line 105 of file fst-class.cc.

template<class Arc >
static MutableFstClass* fst::script::MutableFstClass::Read ( std::istream &  stream,
const FstReadOptions opts 
)
inlinestatic

Definition at line 485 of file fst-class.h.

bool fst::script::MutableFstClass::ReserveArcs ( int64  s,
size_t  n 
)
inline

Definition at line 433 of file fst-class.h.

void fst::script::MutableFstClass::ReserveStates ( int64  s)
inline

Definition at line 435 of file fst-class.h.

bool fst::script::MutableFstClass::SetFinal ( int64  s,
const WeightClass weight 
)
inline

Definition at line 443 of file fst-class.h.

void fst::script::MutableFstClass::SetInputSymbols ( SymbolTable isyms)
inline

Definition at line 439 of file fst-class.h.

void fst::script::MutableFstClass::SetOutputSymbols ( SymbolTable osyms)
inline

Definition at line 448 of file fst-class.h.

void fst::script::MutableFstClass::SetProperties ( uint64  props,
uint64  mask 
)
inline

Definition at line 452 of file fst-class.h.

bool fst::script::MutableFstClass::SetStart ( int64  s)
inline

Definition at line 456 of file fst-class.h.


The documentation for this class was generated from the following files: