FST  openfst-1.7.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 &filename) 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 Properties (uint64 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 ()
 
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 &filename)
 
static LinearTaggerFst< A > * Read (std::istream &in, const FstReadOptions &opts)
 
- Static Public Member Functions inherited from fst::Fst< typename internal::LinearTaggerFstImpl< A >::Arc >
static Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const std::string &filename)
 

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< internal::LinearTaggerFstImpl< A >, Fst< typename internal::LinearTaggerFstImpl< A >::Arc > > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< internal::LinearTaggerFstImpl< A >, Fst< typename internal::LinearTaggerFstImpl< A >::Arc > > &fst)
 
 ImplToFst (ImplToFst< internal::LinearTaggerFstImpl< A >, Fst< typename internal::LinearTaggerFstImpl< A >::Arc > > &&fst) noexcept
 
ImplToFst< internal::LinearTaggerFstImpl< A >, Fst< typename internal::LinearTaggerFstImpl< A >::Arc > > & operator= (const ImplToFst< internal::LinearTaggerFstImpl< A >, Fst< typename internal::LinearTaggerFstImpl< A >::Arc > > &fst)
 
ImplToFst< internal::LinearTaggerFstImpl< A >, Fst< typename internal::LinearTaggerFstImpl< A >::Arc > > & operator= (ImplToFst< internal::LinearTaggerFstImpl< A >, Fst< typename internal::LinearTaggerFstImpl< A >::Arc > > &&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 &filename) const
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

Definition at line 464 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 466 of file linear-fst.h.

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

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

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

Definition at line 478 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 488 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 492 of file linear-fst.h.

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

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

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

Definition at line 496 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 510 of file linear-fst.h.

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

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

Definition at line 516 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 530 of file linear-fst.h.

Friends And Related Function Documentation

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

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

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

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

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

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


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