FST  openfst-1.8.0
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 (std::unique_ptr< Fst< Arc >> fst)
 
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 &source) const final
 
bool Write (std::ostream &ostr, const std::string &source) 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 &source)
 
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 (std::unique_ptr< 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 298 of file fst-class.h.

Constructor & Destructor Documentation

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

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

template<class Arc >
fst::script::FstClass::FstClass ( std::unique_ptr< Fst< Arc >>  fst)
inlineexplicit

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

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

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

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

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

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

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

fst::script::FstClass::FstClass ( std::unique_ptr< FstClassImplBase impl)
inlineexplicitprotected

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

Member Function Documentation

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

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

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

Definition at line 401 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 426 of file fst-class.h.

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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

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

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

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

Implements fst::script::FstClassBase.

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

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

Implements fst::script::FstClassBase.

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


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