FST  openfst-1.8.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 ()=default
 
 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 84 of file accumulator.h.

Member Typedef Documentation

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

Definition at line 86 of file accumulator.h.

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

Definition at line 87 of file accumulator.h.

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

Definition at line 88 of file accumulator.h.

Constructor & Destructor Documentation

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

Definition at line 92 of file accumulator.h.

Member Function Documentation

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

Definition at line 110 of file accumulator.h.

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

Definition at line 94 of file accumulator.h.

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

Definition at line 96 of file accumulator.h.

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

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


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