FST  openfst-1.7.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::LabelReachableData< Label > Class Template Reference

#include <label-reachable.h>

Public Types

using LabelIntervalSet = IntervalSet< Label >
 
using Interval = typename LabelIntervalSet::Interval
 

Public Member Functions

 LabelReachableData (bool reach_input, bool keep_relabel_data=true)
 
 ~LabelReachableData ()
 
bool ReachInput () const
 
std::vector< LabelIntervalSet > * MutableIntervalSets ()
 
const LabelIntervalSetGetIntervalSet (int s) const
 
int NumIntervalSets () const
 
std::unordered_map< Label, Label > * Label2Index ()
 
void SetFinalLabel (Label final_label)
 
Label FinalLabel () const
 
bool Write (std::ostream &ostrm, const FstWriteOptions &opts) const
 

Static Public Member Functions

static LabelReachableData< Label > * Read (std::istream &istrm, const FstReadOptions &opts)
 

Detailed Description

template<typename Label>
class fst::LabelReachableData< Label >

Definition at line 28 of file label-reachable.h.

Member Typedef Documentation

template<typename Label>
using fst::LabelReachableData< Label >::Interval = typename LabelIntervalSet::Interval

Definition at line 31 of file label-reachable.h.

template<typename Label>
using fst::LabelReachableData< Label >::LabelIntervalSet = IntervalSet<Label>

Definition at line 30 of file label-reachable.h.

Constructor & Destructor Documentation

template<typename Label>
fst::LabelReachableData< Label >::LabelReachableData ( bool  reach_input,
bool  keep_relabel_data = true 
)
inlineexplicit

Definition at line 33 of file label-reachable.h.

template<typename Label>
fst::LabelReachableData< Label >::~LabelReachableData ( )
inline

Definition at line 39 of file label-reachable.h.

Member Function Documentation

template<typename Label>
Label fst::LabelReachableData< Label >::FinalLabel ( ) const
inline

Definition at line 62 of file label-reachable.h.

template<typename Label>
const LabelIntervalSet& fst::LabelReachableData< Label >::GetIntervalSet ( int  s) const
inline

Definition at line 47 of file label-reachable.h.

template<typename Label>
std::unordered_map<Label, Label>* fst::LabelReachableData< Label >::Label2Index ( )
inline

Definition at line 53 of file label-reachable.h.

template<typename Label>
std::vector<LabelIntervalSet>* fst::LabelReachableData< Label >::MutableIntervalSets ( )
inline

Definition at line 43 of file label-reachable.h.

template<typename Label>
int fst::LabelReachableData< Label >::NumIntervalSets ( ) const
inline

Definition at line 51 of file label-reachable.h.

template<typename Label>
bool fst::LabelReachableData< Label >::ReachInput ( ) const
inline

Definition at line 41 of file label-reachable.h.

template<typename Label>
static LabelReachableData<Label>* fst::LabelReachableData< Label >::Read ( std::istream &  istrm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 64 of file label-reachable.h.

template<typename Label>
void fst::LabelReachableData< Label >::SetFinalLabel ( Label  final_label)
inline

Definition at line 60 of file label-reachable.h.

template<typename Label>
bool fst::LabelReachableData< Label >::Write ( std::ostream &  ostrm,
const FstWriteOptions opts 
) const
inline

Definition at line 76 of file label-reachable.h.


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