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

#include <compile-strings.h>

Public Types

enum  EntryType { LINE = 1, FILE = 2 }
 
using Label = typename Arc::Label
 
using Weight = typename Arc::Weight
 

Public Member Functions

 StringReader (std::istream &istrm, const string &source, EntryType entry_type, StringTokenType token_type, bool allow_negative_labels, const SymbolTable *syms=nullptr, Label unknown_label=kNoStateId)
 
bool Done ()
 
void Next ()
 
VectorFst< Arc > * GetVectorFst (bool keep_symbols=false)
 
CompactStringFst< Arc > * GetCompactFst (bool keep_symbols=false)
 

Detailed Description

template<class Arc>
class fst::StringReader< Arc >

Definition at line 30 of file compile-strings.h.

Member Typedef Documentation

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

Definition at line 32 of file compile-strings.h.

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

Definition at line 33 of file compile-strings.h.

Member Enumeration Documentation

template<class Arc>
enum fst::StringReader::EntryType
Enumerator
LINE 
FILE 

Definition at line 35 of file compile-strings.h.

Constructor & Destructor Documentation

template<class Arc>
fst::StringReader< Arc >::StringReader ( std::istream &  istrm,
const string &  source,
EntryType  entry_type,
StringTokenType  token_type,
bool  allow_negative_labels,
const SymbolTable syms = nullptr,
Label  unknown_label = kNoStateId 
)
inline

Definition at line 37 of file compile-strings.h.

Member Function Documentation

template<class Arc>
bool fst::StringReader< Arc >::Done ( )
inline

Definition at line 52 of file compile-strings.h.

template<class Arc>
CompactStringFst<Arc>* fst::StringReader< Arc >::GetCompactFst ( bool  keep_symbols = false)
inline

Definition at line 89 of file compile-strings.h.

template<class Arc>
VectorFst<Arc>* fst::StringReader< Arc >::GetVectorFst ( bool  keep_symbols = false)
inline

Definition at line 76 of file compile-strings.h.

template<class Arc>
void fst::StringReader< Arc >::Next ( )
inline

Definition at line 54 of file compile-strings.h.


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