FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::StringPrinter< Arc > Class Template Reference

#include <string.h>

Public Types

using Label = typename Arc::Label
 
using Weight = typename Arc::Weight
 

Public Member Functions

 StringPrinter (TokenType token_type=TokenType::BYTE, const SymbolTable *syms=nullptr, bool omit_epsilon=true)
 
bool operator() (const Fst< Arc > &fst, std::string *str, std::string_view sep=FST_FLAGS_fst_field_separator) const
 
bool operator() (const Fst< Arc > &fst, std::string *str, Weight *weight, std::string_view sep=FST_FLAGS_fst_field_separator) const
 

Detailed Description

template<class Arc>
class fst::StringPrinter< Arc >

Definition at line 370 of file string.h.

Member Typedef Documentation

template<class Arc>
using fst::StringPrinter< Arc >::Label = typename Arc::Label

Definition at line 372 of file string.h.

template<class Arc>
using fst::StringPrinter< Arc >::Weight = typename Arc::Weight

Definition at line 373 of file string.h.

Constructor & Destructor Documentation

template<class Arc>
fst::StringPrinter< Arc >::StringPrinter ( TokenType  token_type = TokenType::BYTE,
const SymbolTable syms = nullptr,
bool  omit_epsilon = true 
)
inlineexplicit

Definition at line 375 of file string.h.

Member Function Documentation

template<class Arc>
bool fst::StringPrinter< Arc >::operator() ( const Fst< Arc > &  fst,
std::string *  str,
std::string_view  sep = FST_FLAGS_fst_field_separator 
) const
inline

Definition at line 382 of file string.h.

template<class Arc>
bool fst::StringPrinter< Arc >::operator() ( const Fst< Arc > &  fst,
std::string *  str,
Weight weight,
std::string_view  sep = FST_FLAGS_fst_field_separator 
) const
inline

Definition at line 392 of file string.h.


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