FST  openfst-1.6.9
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< Arc > &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 198 of file accumulator.h.

Member Typedef Documentation

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

Definition at line 200 of file accumulator.h.

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

Definition at line 201 of file accumulator.h.

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

Definition at line 202 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 204 of file accumulator.h.

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

Definition at line 214 of file accumulator.h.

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

Definition at line 223 of file accumulator.h.

Member Function Documentation

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

Definition at line 325 of file accumulator.h.

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

Definition at line 327 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 294 of file accumulator.h.

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

Definition at line 232 of file accumulator.h.

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

Definition at line 242 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 245 of file accumulator.h.


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