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

#include <fst-class.h>

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

Public Member Functions

 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 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

 FstClass (FstClassImplBase *impl)
 
const FstClassImplBaseGetImpl () const
 
FstClassImplBaseGetImpl ()
 

Static Protected Member Functions

template<class FstClassT , class UnderlyingT >
static FstClassT * ReadTypedFst (std::istream &stream, const FstReadOptions &opts)
 

Detailed Description

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

Constructor & Destructor Documentation

fst::script::FstClass::FstClass ( )
inline

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

template<class Arc >
fst::script::FstClass::FstClass ( const Fst< Arc > &  fst)
inlineexplicit

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

fst::script::FstClass::FstClass ( const FstClass other)
inline

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

fst::script::FstClass::~FstClass ( )
inlineoverride

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

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

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

Member Function Documentation

const string& fst::script::FstClass::ArcType ( ) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

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

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

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

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

WeightClass fst::script::FstClass::Final ( int64  s) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

const string& fst::script::FstClass::FstType ( ) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

template<class Arc >
const Fst<Arc>* fst::script::FstClass::GetFst ( ) const
inline

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

const FstClassImplBase* fst::script::FstClass::GetImpl ( ) const
inlineprotected

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

FstClassImplBase* fst::script::FstClass::GetImpl ( )
inlineprotected

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

const SymbolTable* fst::script::FstClass::InputSymbols ( ) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

size_t fst::script::FstClass::NumArcs ( int64  s) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

size_t fst::script::FstClass::NumInputEpsilons ( int64  s) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

size_t fst::script::FstClass::NumOutputEpsilons ( int64  s) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

FstClass& fst::script::FstClass::operator= ( const FstClass other)
inline

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

const SymbolTable* fst::script::FstClass::OutputSymbols ( ) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

uint64 fst::script::FstClass::Properties ( uint64  mask,
bool  test 
) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

FstClass * fst::script::FstClass::Read ( const string &  fname)
static

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

FstClass * fst::script::FstClass::Read ( std::istream &  istrm,
const string &  source 
)
static

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

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

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

template<class FstClassT , class UnderlyingT >
static FstClassT* fst::script::FstClass::ReadTypedFst ( std::istream &  stream,
const FstReadOptions opts 
)
inlinestaticprotected

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

int64 fst::script::FstClass::Start ( ) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

bool fst::script::FstClass::ValidStateId ( int64  s) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

const string& fst::script::FstClass::WeightType ( ) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

bool fst::script::FstClass::WeightTypesMatch ( const WeightClass weight,
const string &  op_name 
) const

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

bool fst::script::FstClass::Write ( const string &  fname) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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

bool fst::script::FstClass::Write ( std::ostream &  ostr,
const string &  fname 
) const
inlinefinalvirtual

Implements fst::script::FstClassBase.

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


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