FST  openfst-1.7.3
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 std::string & ArcType () const final
 
const std::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 std::string & WeightType () const final
 
bool WeightTypesMatch (const WeightClass &weight, const std::string &op_name) const
 
bool Write (const std::string &fname) const final
 
bool Write (std::ostream &ostr, const std::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 std::string &fname)
 
static FstClassRead (std::istream &istrm, const std::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 281 of file fst-class.h.

Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

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

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

Member Function Documentation

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

FstClass * fst::script::FstClass::Read ( std::istream &  istrm,
const std::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 379 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 403 of file fst-class.h.

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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


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