FST  openfst-1.7.1
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< Arc > &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 462 of file accumulator.h.

Member Typedef Documentation

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

Definition at line 464 of file accumulator.h.

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

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

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

Definition at line 474 of file accumulator.h.

Member Function Documentation

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

Definition at line 570 of file accumulator.h.

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

Definition at line 483 of file accumulator.h.

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

Definition at line 551 of file accumulator.h.

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

Definition at line 492 of file accumulator.h.

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

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


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