FST  openfst-1.7.1
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::LinearTaggerFstImpl< A > Class Template Reference

#include <linear-fst.h>

Inheritance diagram for fst::internal::LinearTaggerFstImpl< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::LinearTaggerFstImpl< A >:
Collaboration graph
[legend]

Public Types

typedef A Arc
 
typedef A::Label Label
 
typedef A::Weight Weight
 
typedef A::StateId StateId
 
typedef Collection< StateId, Label >::SetIterator NGramIterator
 
- Public Types inherited from fst::internal::CacheImpl< A >
using State = CacheState< A >
 
- Public Types inherited from fst::internal::CacheBaseImpl< CacheState< A > >
using Arc = typename CacheState< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< typename CacheState< A >::Arc >
 
- Public Types inherited from fst::internal::FstImpl< CacheState< A >::Arc >
using StateId = typename CacheState< A >::Arc::StateId
 
using Weight = typename CacheState< A >::Arc::Weight
 

Public Member Functions

 LinearTaggerFstImpl ()
 
 LinearTaggerFstImpl (const LinearFstData< Arc > *data, const SymbolTable *isyms, const SymbolTable *osyms, CacheOptions opts)
 
 LinearTaggerFstImpl (const LinearTaggerFstImpl &impl)
 
StateId Start ()
 
Weight Final (StateId s)
 
size_t NumArcs (StateId s)
 
size_t NumInputEpsilons (StateId s)
 
size_t NumOutputEpsilons (StateId s)
 
void InitArcIterator (StateId s, ArcIteratorData< A > *data)
 
void Expand (StateId s)
 
void MatchInput (StateId s, Label ilabel, std::vector< Arc > *arcs)
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
- Public Member Functions inherited from fst::internal::CacheImpl< A >
 CacheImpl ()
 
 CacheImpl (const CacheOptions &opts)
 
 CacheImpl (const CacheImpl< A > &impl, bool preserve_cache=false)
 
- Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheState< A > >
 CacheBaseImpl (const CacheOptions &opts=CacheOptions())
 
 CacheBaseImpl (const CacheImplOptions< DefaultCacheStore< typename CacheState< A >::Arc > > &opts)
 
 CacheBaseImpl (const CacheBaseImpl< CacheState< A >, DefaultCacheStore< typename CacheState< A >::Arc > > &impl, bool preserve_cache=false)
 
 ~CacheBaseImpl () override
 
void SetStart (StateId s)
 
void SetFinal (StateId s, Weight weight)
 
void PushArc (StateId s, const Arc &arc)
 
void PushArc (StateId s, Arc &&arc)
 
void EmplaceArc (StateId s, T &&...ctor_args)
 
void SetArcs (StateId s)
 
void ReserveArcs (StateId s, size_t n)
 
void DeleteArcs (StateId s)
 
void DeleteArcs (StateId s, size_t n)
 
void Clear ()
 
bool HasStart () const
 
bool HasFinal (StateId s) const
 
bool HasArcs (StateId s) const
 
StateId Start () const
 
Weight Final (StateId s) const
 
size_t NumArcs (StateId s) const
 
size_t NumInputEpsilons (StateId s) const
 
size_t NumOutputEpsilons (StateId s) const
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
 
StateId NumKnownStates () const
 
void UpdateNumKnownStates (StateId s)
 
StateId MinUnexpandedState () const
 
StateId MaxExpandedState () const
 
void SetExpandedState (StateId s)
 
bool ExpandedState (StateId s) const
 
const DefaultCacheStore< typename CacheState< A >::Arc > * GetCacheStore () const
 
DefaultCacheStore< typename CacheState< A >::Arc > * GetCacheStore ()
 
bool GetCacheGc () const
 
size_t GetCacheLimit () const
 
- Public Member Functions inherited from fst::internal::FstImpl< CacheState< A >::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< CacheState< A >::Arc > &impl)
 
 FstImpl (FstImpl< CacheState< A >::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< CacheState< A >::Arc > &impl)
 
FstImploperator= (FstImpl< CacheState< A >::Arc > &&impl) noexcept
 
const string & Type () const
 
void SetType (const string &type)
 
virtual uint64 Properties () const
 
virtual uint64 Properties (uint64 mask) const
 
void SetProperties (uint64 props)
 
void SetProperties (uint64 props, uint64 mask)
 
void SetProperties (uint64 props, uint64 mask) const
 
const SymbolTableInputSymbols () const
 
SymbolTableInputSymbols ()
 
const SymbolTableOutputSymbols () const
 
SymbolTableOutputSymbols ()
 
void SetInputSymbols (const SymbolTable *isyms)
 
void SetOutputSymbols (const SymbolTable *osyms)
 
bool ReadHeader (std::istream &strm, const FstReadOptions &opts, int min_version, FstHeader *hdr)
 
void WriteHeader (std::ostream &strm, const FstWriteOptions &opts, int version, FstHeader *hdr) const
 

Static Public Member Functions

static LinearTaggerFstImplRead (std::istream &strm, const FstReadOptions &opts)
 
- Static Public Member Functions inherited from fst::internal::FstImpl< CacheState< A >::Arc >
static void WriteFstHeader (const Fst< CacheState< A >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheState< A >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr, size_t header_offset)
 

Additional Inherited Members

- Protected Attributes inherited from fst::internal::FstImpl< CacheState< A >::Arc >
uint64 properties_
 

Detailed Description

template<class A>
class fst::internal::LinearTaggerFstImpl< A >

Definition at line 38 of file linear-fst.h.

Member Typedef Documentation

template<class A >
typedef A fst::internal::LinearTaggerFstImpl< A >::Arc

Definition at line 54 of file linear-fst.h.

template<class A >
typedef A::Label fst::internal::LinearTaggerFstImpl< A >::Label

Definition at line 55 of file linear-fst.h.

template<class A >
typedef Collection<StateId, Label>::SetIterator fst::internal::LinearTaggerFstImpl< A >::NGramIterator

Definition at line 58 of file linear-fst.h.

template<class A >
typedef A::StateId fst::internal::LinearTaggerFstImpl< A >::StateId

Definition at line 57 of file linear-fst.h.

template<class A >
typedef A::Weight fst::internal::LinearTaggerFstImpl< A >::Weight

Definition at line 56 of file linear-fst.h.

Constructor & Destructor Documentation

template<class A >
fst::internal::LinearTaggerFstImpl< A >::LinearTaggerFstImpl ( )
inline

Definition at line 61 of file linear-fst.h.

template<class A >
fst::internal::LinearTaggerFstImpl< A >::LinearTaggerFstImpl ( const LinearFstData< Arc > *  data,
const SymbolTable isyms,
const SymbolTable osyms,
CacheOptions  opts 
)
inline

Definition at line 73 of file linear-fst.h.

template<class A >
fst::internal::LinearTaggerFstImpl< A >::LinearTaggerFstImpl ( const LinearTaggerFstImpl< A > &  impl)
inline

Definition at line 84 of file linear-fst.h.

Member Function Documentation

template<class A >
void fst::internal::LinearTaggerFstImpl< A >::Expand ( StateId  s)

Definition at line 374 of file linear-fst.h.

template<class A >
Weight fst::internal::LinearTaggerFstImpl< A >::Final ( StateId  s)
inline

Definition at line 101 of file linear-fst.h.

template<class A >
void fst::internal::LinearTaggerFstImpl< A >::InitArcIterator ( StateId  s,
ArcIteratorData< A > *  data 
)
inline

Definition at line 129 of file linear-fst.h.

template<class A >
void fst::internal::LinearTaggerFstImpl< A >::MatchInput ( StateId  s,
Label  ilabel,
std::vector< Arc > *  arcs 
)

Definition at line 402 of file linear-fst.h.

template<class A >
size_t fst::internal::LinearTaggerFstImpl< A >::NumArcs ( StateId  s)
inline

Definition at line 114 of file linear-fst.h.

template<class A >
size_t fst::internal::LinearTaggerFstImpl< A >::NumInputEpsilons ( StateId  s)
inline

Definition at line 119 of file linear-fst.h.

template<class A >
size_t fst::internal::LinearTaggerFstImpl< A >::NumOutputEpsilons ( StateId  s)
inline

Definition at line 124 of file linear-fst.h.

template<class A >
LinearTaggerFstImpl< A > * fst::internal::LinearTaggerFstImpl< A >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 429 of file linear-fst.h.

template<class A >
StateId fst::internal::LinearTaggerFstImpl< A >::Start ( )
inline

Definition at line 93 of file linear-fst.h.

template<class A >
bool fst::internal::LinearTaggerFstImpl< A >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

Definition at line 145 of file linear-fst.h.


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