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

#include <accumulator.h>

Public Types

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

Public Member Functions

 ReplaceAccumulator ()
 
 ReplaceAccumulator (const std::vector< Accumulator * > &accumulators)
 
 ReplaceAccumulator (const ReplaceAccumulator< Accumulator, StateTable > &acc, bool safe=false)
 
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 = DefaultReplaceStateTable<typename Accumulator::Arc>>
class fst::ReplaceAccumulator< Accumulator, T >

Definition at line 689 of file accumulator.h.

Member Typedef Documentation

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

Definition at line 691 of file accumulator.h.

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

Definition at line 692 of file accumulator.h.

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

Definition at line 693 of file accumulator.h.

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
using fst::ReplaceAccumulator< Accumulator, T >::StateTable = T

Definition at line 694 of file accumulator.h.

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
using fst::ReplaceAccumulator< Accumulator, T >::StateTuple = typename StateTable::StateTuple

Definition at line 695 of file accumulator.h.

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

Definition at line 696 of file accumulator.h.

Constructor & Destructor Documentation

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
fst::ReplaceAccumulator< Accumulator, T >::ReplaceAccumulator ( )
inline

Definition at line 698 of file accumulator.h.

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
fst::ReplaceAccumulator< Accumulator, T >::ReplaceAccumulator ( const std::vector< Accumulator * > &  accumulators)
inlineexplicit

Definition at line 704 of file accumulator.h.

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
fst::ReplaceAccumulator< Accumulator, T >::ReplaceAccumulator ( const ReplaceAccumulator< Accumulator, StateTable > &  acc,
bool  safe = false 
)
inline

Definition at line 710 of file accumulator.h.

Member Function Documentation

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
bool fst::ReplaceAccumulator< Accumulator, T >::Error ( ) const
inline

Definition at line 779 of file accumulator.h.

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

Definition at line 721 of file accumulator.h.

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

Definition at line 734 of file accumulator.h.

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
void fst::ReplaceAccumulator< Accumulator, T >::SetState ( StateId  s)
inline

Definition at line 742 of file accumulator.h.

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
Weight fst::ReplaceAccumulator< Accumulator, T >::Sum ( Weight  w,
Weight  v 
)
inline

Definition at line 763 of file accumulator.h.

template<class Accumulator, class T = DefaultReplaceStateTable<typename Accumulator::Arc>>
template<class ArcIter >
Weight fst::ReplaceAccumulator< Accumulator, T >::Sum ( Weight  w,
ArcIter *  aiter,
ssize_t  begin,
ssize_t  end 
)
inline

Definition at line 769 of file accumulator.h.


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