FST  openfst-1.7.1
OpenFst Library
Classes | Public Types | Public Member Functions | List of all members
fst::SafeReplaceAccumulator< Accumulator, T > Class Template Reference

#include <accumulator.h>

Public Types

using Arc = typename Accumulator::Arc
 
using StateId = typename Arc::StateId
 
using Label = typename Arc::Label
 
using Weight = typename Arc::Weight
 
using StateTable = T
 
using StateTuple = typename StateTable::StateTuple
 

Public Member Functions

 SafeReplaceAccumulator ()
 
 SafeReplaceAccumulator (const SafeReplaceAccumulator &copy, bool safe)
 
 SafeReplaceAccumulator (const std::vector< Accumulator > &accumulators)
 
void Init (const std::vector< std::pair< Label, const Fst< Arc > * >> &fst_tuples, const StateTable *state_table)
 
void Init (const Fst< Arc > &fst, bool copy=false)
 
void SetState (StateId s)
 
Weight Sum (Weight w, Weight v)
 
template<class ArcIter >
Weight Sum (Weight w, ArcIter *aiter, ssize_t begin, ssize_t end)
 
bool Error () const
 

Detailed Description

template<class Accumulator, class T>
class fst::SafeReplaceAccumulator< Accumulator, T >

Definition at line 794 of file accumulator.h.

Member Typedef Documentation

template<class Accumulator , class T >
using fst::SafeReplaceAccumulator< Accumulator, T >::Arc = typename Accumulator::Arc

Definition at line 796 of file accumulator.h.

template<class Accumulator , class T >
using fst::SafeReplaceAccumulator< Accumulator, T >::Label = typename Arc::Label

Definition at line 798 of file accumulator.h.

template<class Accumulator , class T >
using fst::SafeReplaceAccumulator< Accumulator, T >::StateId = typename Arc::StateId

Definition at line 797 of file accumulator.h.

template<class Accumulator , class T >
using fst::SafeReplaceAccumulator< Accumulator, T >::StateTable = T

Definition at line 800 of file accumulator.h.

template<class Accumulator , class T >
using fst::SafeReplaceAccumulator< Accumulator, T >::StateTuple = typename StateTable::StateTuple

Definition at line 801 of file accumulator.h.

template<class Accumulator , class T >
using fst::SafeReplaceAccumulator< Accumulator, T >::Weight = typename Arc::Weight

Definition at line 799 of file accumulator.h.

Constructor & Destructor Documentation

template<class Accumulator , class T >
fst::SafeReplaceAccumulator< Accumulator, T >::SafeReplaceAccumulator ( )
inline

Definition at line 803 of file accumulator.h.

template<class Accumulator , class T >
fst::SafeReplaceAccumulator< Accumulator, T >::SafeReplaceAccumulator ( const SafeReplaceAccumulator< Accumulator, T > &  copy,
bool  safe 
)
inline

Definition at line 805 of file accumulator.h.

template<class Accumulator , class T >
fst::SafeReplaceAccumulator< Accumulator, T >::SafeReplaceAccumulator ( const std::vector< Accumulator > &  accumulators)
inlineexplicit

Definition at line 808 of file accumulator.h.

Member Function Documentation

template<class Accumulator , class T >
bool fst::SafeReplaceAccumulator< Accumulator, T >::Error ( ) const
inline

Definition at line 867 of file accumulator.h.

template<class Accumulator , class T >
void fst::SafeReplaceAccumulator< Accumulator, T >::Init ( const std::vector< std::pair< Label, const Fst< Arc > * >> &  fst_tuples,
const StateTable state_table 
)
inline

Definition at line 815 of file accumulator.h.

template<class Accumulator , class T >
void fst::SafeReplaceAccumulator< Accumulator, T >::Init ( const Fst< Arc > &  fst,
bool  copy = false 
)
inline

Definition at line 828 of file accumulator.h.

template<class Accumulator , class T >
void fst::SafeReplaceAccumulator< Accumulator, T >::SetState ( StateId  s)
inline

Definition at line 836 of file accumulator.h.

template<class Accumulator , class T >
Weight fst::SafeReplaceAccumulator< Accumulator, T >::Sum ( Weight  w,
Weight  v 
)
inline

Definition at line 850 of file accumulator.h.

template<class Accumulator , class T >
template<class ArcIter >
Weight fst::SafeReplaceAccumulator< Accumulator, T >::Sum ( Weight  w,
ArcIter *  aiter,
ssize_t  begin,
ssize_t  end 
)
inline

Definition at line 856 of file accumulator.h.


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