FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::CacheLogAccumulator< Arc > Class Template Reference

#include <accumulator.h>

Public Types

using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 CacheLogAccumulator (ssize_t arc_limit=10, bool gc=false, size_t gc_limit=10 *1024 *1024)
 
 CacheLogAccumulator (const CacheLogAccumulator &acc, bool safe=false)
 
void Init (const Fst< Arc > &fst, bool copy=false)
 
void SetState (StateId s, int depth=0)
 
Weight Sum (Weight w, Weight v)
 
template<class ArcIter >
Weight Sum (Weight w, ArcIter *aiter, ssize_t begin, ssize_t end)
 
template<class ArcIter >
size_t LowerBound (Weight w, ArcIter *aiter)
 
bool Error () const
 

Detailed Description

template<class Arc>
class fst::CacheLogAccumulator< Arc >

Definition at line 488 of file accumulator.h.

Member Typedef Documentation

template<class Arc>
using fst::CacheLogAccumulator< Arc >::StateId = typename Arc::StateId

Definition at line 490 of file accumulator.h.

template<class Arc>
using fst::CacheLogAccumulator< Arc >::Weight = typename Arc::Weight

Definition at line 491 of file accumulator.h.

Constructor & Destructor Documentation

template<class Arc>
fst::CacheLogAccumulator< Arc >::CacheLogAccumulator ( ssize_t  arc_limit = 10,
bool  gc = false,
size_t  gc_limit = 10 * 1024 * 1024 
)
inlineexplicit

Definition at line 493 of file accumulator.h.

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

Definition at line 500 of file accumulator.h.

Member Function Documentation

template<class Arc>
bool fst::CacheLogAccumulator< Arc >::Error ( ) const
inline

Definition at line 599 of file accumulator.h.

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

Definition at line 509 of file accumulator.h.

template<class Arc>
template<class ArcIter >
size_t fst::CacheLogAccumulator< Arc >::LowerBound ( Weight  w,
ArcIter *  aiter 
)
inline

Definition at line 580 of file accumulator.h.

template<class Arc>
void fst::CacheLogAccumulator< Arc >::SetState ( StateId  s,
int  depth = 0 
)
inline

Definition at line 518 of file accumulator.h.

template<class Arc>
Weight fst::CacheLogAccumulator< Arc >::Sum ( Weight  w,
Weight  v 
)
inline

Definition at line 543 of file accumulator.h.

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

Definition at line 546 of file accumulator.h.


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