FST  openfst-1.7.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::LogAccumulator< 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

 LogAccumulator ()
 
 LogAccumulator (const LogAccumulator &acc, bool safe=false)
 
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)
 
constexpr bool Error () const
 

Detailed Description

template<class A>
class fst::LogAccumulator< A >

Definition at line 60 of file accumulator.h.

Member Typedef Documentation

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

Definition at line 62 of file accumulator.h.

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

Definition at line 63 of file accumulator.h.

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

Definition at line 64 of file accumulator.h.

Constructor & Destructor Documentation

template<class A >
fst::LogAccumulator< A >::LogAccumulator ( )
inline

Definition at line 66 of file accumulator.h.

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

Definition at line 68 of file accumulator.h.

Member Function Documentation

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

Definition at line 86 of file accumulator.h.

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

Definition at line 70 of file accumulator.h.

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

Definition at line 72 of file accumulator.h.

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

Definition at line 74 of file accumulator.h.

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

Definition at line 77 of file accumulator.h.


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