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

 DefaultAccumulator ()
 
 DefaultAccumulator (const DefaultAccumulator &acc, bool safe=false)
 
void Init (const Fst< Arc > &fst, bool copy=false)
 
void SetState (StateId state)
 
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::DefaultAccumulator< A >

Definition at line 26 of file accumulator.h.

Member Typedef Documentation

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

Definition at line 28 of file accumulator.h.

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

Definition at line 29 of file accumulator.h.

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

Definition at line 30 of file accumulator.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file accumulator.h.

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

Definition at line 34 of file accumulator.h.

Member Function Documentation

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

Definition at line 51 of file accumulator.h.

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

Definition at line 36 of file accumulator.h.

template<class A>
void fst::DefaultAccumulator< A >::SetState ( StateId  state)
inline

Definition at line 38 of file accumulator.h.

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

Definition at line 40 of file accumulator.h.

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

Definition at line 43 of file accumulator.h.


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