FST  openfst-1.6.1
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 override
 
const string & ArcType () const override
 
const string & FstType () const override
 
const SymbolTableInputSymbols () const override
 
size_t NumArcs (int64 s) const override
 
size_t NumInputEpsilons (int64 s) const override
 
size_t NumOutputEpsilons (int64 s) const override
 
const SymbolTableOutputSymbols () const override
 
uint64 Properties (uint64 mask, bool test) const override
 
int64 Start () const override
 
bool ValidStateId (int64 s) const override
 
const string & WeightType () const override
 
bool WeightTypesMatch (const WeightClass &weight, const string &op_name) const
 
bool Write (const string &fname) const override
 
bool Write (std::ostream &ostr, const FstWriteOptions &opts) const override
 
const string WriteToString () const
 
 ~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 &istr, const string &source)
 
static FstClassReadFromString (const string &fst_string)
 
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 272 of file fst-class.h.

Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

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

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

Member Function Documentation

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

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

FstClass * fst::script::FstClass::ReadFromString ( const string &  fst_string)
static

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

Reimplemented in fst::script::MutableFstClass.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

Implements fst::script::FstClassBase.

Reimplemented in fst::script::MutableFstClass.

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

bool fst::script::FstClass::Write ( std::ostream &  ostr,
const FstWriteOptions opts 
) const
inlineoverridevirtual

Implements fst::script::FstClassBase.

Reimplemented in fst::script::MutableFstClass.

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

const string fst::script::FstClass::WriteToString ( ) const

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


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