Public Types | Public Member Functions

fst::FastLogAccumulator< A > Class Template Reference

#include <fst/accumulator.h>

Collaboration diagram for fst::FastLogAccumulator< A >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef A Arc
typedef A::StateId StateId
typedef A::Weight Weight

Public Member Functions

 FastLogAccumulator (ssize_t arc_limit=20, ssize_t arc_period=10)
 FastLogAccumulator (const FastLogAccumulator< A > &acc)
 ~FastLogAccumulator ()
void SetState (StateId s)
Weight Sum (Weight w, Weight v)
template<class ArcIterator >
Weight Sum (Weight w, ArcIterator *aiter, ssize_t begin, ssize_t end)
template<class F >
void Init (const F &fst, bool copy=false)

Detailed Description

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

This class accumulates arc weights using the log semiring Plus() assuming an arc weight that has a member 'float Value()' and a float constructor. The member function Init(fst) has to be called to setup pre-computed weight information.

Definition at line 153 of file accumulator.h.


Member Typedef Documentation

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

Definition at line 155 of file accumulator.h.

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

Definition at line 156 of file accumulator.h.

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

Definition at line 157 of file accumulator.h.


Constructor & Destructor Documentation

template<class A>
fst::FastLogAccumulator< A >::FastLogAccumulator ( ssize_t  arc_limit = 20,
ssize_t  arc_period = 10 
) [inline, explicit]

Definition at line 159 of file accumulator.h.

template<class A>
fst::FastLogAccumulator< A >::FastLogAccumulator ( const FastLogAccumulator< A > &  acc  )  [inline]

Definition at line 165 of file accumulator.h.

template<class A>
fst::FastLogAccumulator< A >::~FastLogAccumulator (  )  [inline]

Definition at line 172 of file accumulator.h.


Member Function Documentation

template<class A>
template<class F >
void fst::FastLogAccumulator< A >::Init ( const F &  fst,
bool  copy = false 
) [inline]

Definition at line 230 of file accumulator.h.

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

Definition at line 177 of file accumulator.h.

template<class A>
template<class ArcIterator >
Weight fst::FastLogAccumulator< A >::Sum ( Weight  w,
ArcIterator aiter,
ssize_t  begin,
ssize_t  end 
) [inline]

Definition at line 195 of file accumulator.h.

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

Definition at line 190 of file accumulator.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines