FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
fst::LinearTaggerFst< A > Class Template Reference

#include <linear-fst.h>

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

Public Types

typedef A Arc
 
typedef A::Label Label
 
typedef A::Weight Weight
 
typedef A::StateId StateId
 
typedef DefaultCacheStore< A > Store
 
typedef Store::State State
 
using Impl = internal::LinearTaggerFstImpl< A >
 
- Public Types inherited from fst::ImplToFst< internal::LinearTaggerFstImpl< A > >
using Arc = typename internal::LinearTaggerFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >
using Arc = typename internal::LinearTaggerFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 LinearTaggerFst ()
 
 LinearTaggerFst (LinearFstData< A > *data, const SymbolTable *isyms=nullptr, const SymbolTable *osyms=nullptr, CacheOptions opts=CacheOptions())
 
 LinearTaggerFst (const Fst< A > &fst)
 
 LinearTaggerFst (const LinearTaggerFst< A > &fst, bool safe=false)
 
LinearTaggerFst< A > * Copy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< A > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< A > *data) const override
 
MatcherBase< A > * InitMatcher (MatchType match_type) const override
 
bool Write (const std::string &source) const override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::LinearTaggerFstImpl< A > >
StateId Start () const override
 
Weight Final (StateId s) const override
 
size_t NumArcs (StateId s) const override
 
size_t NumInputEpsilons (StateId s) const override
 
size_t NumOutputEpsilons (StateId s) const override
 
uint64_t Properties (uint64_t mask, bool test) const override
 
const std::string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >
virtual ~Fst ()=default
 
virtual std::optional< StateIdNumStatesIfKnown () const
 
virtual void InitStateIterator (StateIteratorData< Arc > *data) const =0
 
virtual void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0
 

Static Public Member Functions

static LinearTaggerFst< A > * Read (const std::string &source)
 
static LinearTaggerFst< A > * Read (std::istream &in, const FstReadOptions &opts)
 
- Static Public Member Functions inherited from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 

Friends

class ArcIterator< LinearTaggerFst< A > >
 
class StateIterator< LinearTaggerFst< A > >
 
class LinearFstMatcherTpl< LinearTaggerFst< A > >
 

Additional Inherited Members

- Protected Member Functions inherited from fst::ImplToFst< internal::LinearTaggerFstImpl< A > >
 ImplToFst (std::shared_ptr< internal::LinearTaggerFstImpl< A > > impl)
 
 ImplToFst (const ImplToFst &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
const internal::LinearTaggerFstImpl< A > * GetImpl () const
 
internal::LinearTaggerFstImpl< A > * GetMutableImpl () const
 
std::shared_ptr< internal::LinearTaggerFstImpl< A > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::LinearTaggerFstImpl< A > > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >
bool WriteFile (const std::string &source) const
 

Detailed Description

template<class A>
class fst::LinearTaggerFst< A >

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

Member Typedef Documentation

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

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

template<class A>
using fst::LinearTaggerFst< A >::Impl = internal::LinearTaggerFstImpl<A>

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

template<class A>
typedef A::Label fst::LinearTaggerFst< A >::Label

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

template<class A>
typedef Store::State fst::LinearTaggerFst< A >::State

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

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

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

template<class A>
typedef DefaultCacheStore<A> fst::LinearTaggerFst< A >::Store

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

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

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

Constructor & Destructor Documentation

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

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

template<class A>
fst::LinearTaggerFst< A >::LinearTaggerFst ( LinearFstData< A > *  data,
const SymbolTable isyms = nullptr,
const SymbolTable osyms = nullptr,
CacheOptions  opts = CacheOptions() 
)
inlineexplicit

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

template<class A>
fst::LinearTaggerFst< A >::LinearTaggerFst ( const Fst< A > &  fst)
inlineexplicit

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

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

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

Member Function Documentation

template<class A>
LinearTaggerFst<A>* fst::LinearTaggerFst< A >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A>
void fst::LinearTaggerFst< A >::InitArcIterator ( StateId  s,
ArcIteratorData< A > *  data 
) const
inlineoverride

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

template<class A>
MatcherBase<A>* fst::LinearTaggerFst< A >::InitMatcher ( MatchType  match_type) const
inlineoverridevirtual

Reimplemented from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >.

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

template<class Arc>
void fst::LinearTaggerFst< Arc >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverride

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

template<class A>
static LinearTaggerFst<A>* fst::LinearTaggerFst< A >::Read ( const std::string &  source)
inlinestatic

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

template<class A>
static LinearTaggerFst<A>* fst::LinearTaggerFst< A >::Read ( std::istream &  in,
const FstReadOptions opts 
)
inlinestatic

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

template<class A>
bool fst::LinearTaggerFst< A >::Write ( const std::string &  source) const
inlineoverridevirtual

Reimplemented from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >.

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

template<class A>
bool fst::LinearTaggerFst< A >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inlineoverridevirtual

Reimplemented from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >.

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

Friends And Related Function Documentation

template<class A>
friend class ArcIterator< LinearTaggerFst< A > >
friend

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

template<class A>
friend class LinearFstMatcherTpl< LinearTaggerFst< A > >
friend

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

template<class A>
friend class StateIterator< LinearTaggerFst< A > >
friend

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


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