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

#include <accumulator.h>

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 FastLogAccumulator (ssize_t arc_limit=20, ssize_t arc_period=10)
 
 FastLogAccumulator (std::shared_ptr< FastLogAccumulatorData > data)
 
 FastLogAccumulator (const FastLogAccumulator &acc, bool safe=false)
 
void SetState (StateId s)
 
Weight Sum (Weight w, Weight v) const
 
template<class ArcIter >
Weight Sum (Weight w, ArcIter *aiter, ssize_t begin, ssize_t end) const
 
template<class FST >
void Init (const FST &fst, bool copy=false)
 
bool Error () const
 
std::shared_ptr< FastLogAccumulatorDataGetData () const
 

Detailed Description

template<class A>
class fst::FastLogAccumulator< A >

Definition at line 225 of file accumulator.h.

Member Typedef Documentation

template<class A >
using fst::FastLogAccumulator< A >::Arc = A

Definition at line 227 of file accumulator.h.

template<class A >
using fst::FastLogAccumulator< A >::StateId = typename Arc::StateId

Definition at line 228 of file accumulator.h.

template<class A >
using fst::FastLogAccumulator< A >::Weight = typename Arc::Weight

Definition at line 229 of file accumulator.h.

Constructor & Destructor Documentation

template<class A >
fst::FastLogAccumulator< A >::FastLogAccumulator ( ssize_t  arc_limit = 20,
ssize_t  arc_period = 10 
)
inlineexplicit

Definition at line 231 of file accumulator.h.

template<class A >
fst::FastLogAccumulator< A >::FastLogAccumulator ( std::shared_ptr< FastLogAccumulatorData data)
inlineexplicit

Definition at line 241 of file accumulator.h.

template<class A >
fst::FastLogAccumulator< A >::FastLogAccumulator ( const FastLogAccumulator< A > &  acc,
bool  safe = false 
)
inline

Definition at line 250 of file accumulator.h.

Member Function Documentation

template<class A >
bool fst::FastLogAccumulator< A >::Error ( ) const
inline

Definition at line 352 of file accumulator.h.

template<class A >
std::shared_ptr<FastLogAccumulatorData> fst::FastLogAccumulator< A >::GetData ( ) const
inline

Definition at line 354 of file accumulator.h.

template<class A >
template<class FST >
void fst::FastLogAccumulator< A >::Init ( const FST fst,
bool  copy = false 
)
inline

Definition at line 321 of file accumulator.h.

template<class A >
void fst::FastLogAccumulator< A >::SetState ( StateId  s)
inline

Definition at line 259 of file accumulator.h.

template<class A >
Weight fst::FastLogAccumulator< A >::Sum ( Weight  w,
Weight  v 
) const
inline

Definition at line 269 of file accumulator.h.

template<class A >
template<class ArcIter >
Weight fst::FastLogAccumulator< A >::Sum ( Weight  w,
ArcIter *  aiter,
ssize_t  begin,
ssize_t  end 
) const
inline

Definition at line 272 of file accumulator.h.


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