FST  openfst-1.7.2
OpenFst Library
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::EncodeTable< Arc > Class Template Reference

#include <encode.h>

Classes

struct  Tuple
 
class  TupleEqual
 
class  TupleKey
 

Public Types

using Label = typename Arc::Label
 
using Weight = typename Arc::Weight
 
using EncodeHash = std::unordered_map< const Tuple *, Label, TupleKey, TupleEqual >
 

Public Member Functions

 EncodeTable (uint32 encode_flags)
 
Label Encode (const Arc &arc)
 
Label GetLabel (const Arc &arc) const
 
const TupleDecode (Label key) const
 
size_t Size () const
 
bool Write (std::ostream &strm, const string &source) const
 
uint32 Flags () const
 
const SymbolTableInputSymbols () const
 
const SymbolTableOutputSymbols () const
 
void SetInputSymbols (const SymbolTable *syms)
 
void SetOutputSymbols (const SymbolTable *syms)
 

Static Public Member Functions

static EncodeTable< Arc > * Read (std::istream &strm, const string &source)
 

Detailed Description

template<class Arc>
class fst::internal::EncodeTable< Arc >

Definition at line 44 of file encode.h.

Member Typedef Documentation

template<class Arc>
using fst::internal::EncodeTable< Arc >::EncodeHash = std::unordered_map<const Tuple *, Label, TupleKey, TupleEqual>

Definition at line 106 of file encode.h.

template<class Arc>
using fst::internal::EncodeTable< Arc >::Label = typename Arc::Label

Definition at line 46 of file encode.h.

template<class Arc>
using fst::internal::EncodeTable< Arc >::Weight = typename Arc::Weight

Definition at line 47 of file encode.h.

Constructor & Destructor Documentation

template<class Arc>
fst::internal::EncodeTable< Arc >::EncodeTable ( uint32  encode_flags)
inlineexplicit

Definition at line 102 of file encode.h.

Member Function Documentation

template<class Arc>
const Tuple* fst::internal::EncodeTable< Arc >::Decode ( Label  key) const
inline

Definition at line 128 of file encode.h.

template<class Arc>
Label fst::internal::EncodeTable< Arc >::Encode ( const Arc &  arc)
inline

Definition at line 109 of file encode.h.

template<class Arc>
uint32 fst::internal::EncodeTable< Arc >::Flags ( ) const
inline

Definition at line 142 of file encode.h.

template<class Arc>
Label fst::internal::EncodeTable< Arc >::GetLabel ( const Arc &  arc) const
inline

Definition at line 120 of file encode.h.

template<class Arc>
const SymbolTable* fst::internal::EncodeTable< Arc >::InputSymbols ( ) const
inline

Definition at line 144 of file encode.h.

template<class Arc>
const SymbolTable* fst::internal::EncodeTable< Arc >::OutputSymbols ( ) const
inline

Definition at line 146 of file encode.h.

template<class Arc >
EncodeTable< Arc > * fst::internal::EncodeTable< Arc >::Read ( std::istream &  strm,
const string &  source 
)
static

Definition at line 202 of file encode.h.

template<class Arc>
void fst::internal::EncodeTable< Arc >::SetInputSymbols ( const SymbolTable syms)
inline

Definition at line 148 of file encode.h.

template<class Arc>
void fst::internal::EncodeTable< Arc >::SetOutputSymbols ( const SymbolTable syms)
inline

Definition at line 158 of file encode.h.

template<class Arc>
size_t fst::internal::EncodeTable< Arc >::Size ( ) const
inline

Definition at line 136 of file encode.h.

template<class Arc >
bool fst::internal::EncodeTable< Arc >::Write ( std::ostream &  strm,
const string &  source 
) const

Definition at line 180 of file encode.h.


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