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

#include <linear-fst.h>

Inheritance diagram for fst::LinearClassifierFst< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::LinearClassifierFst< 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::LinearClassifierFstImpl< A >
 
- Public Types inherited from fst::ImplToFst< internal::LinearClassifierFstImpl< A > >
using Arc = typename internal::LinearClassifierFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::LinearClassifierFstImpl< A >::Arc >
using Arc = typename internal::LinearClassifierFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 LinearClassifierFst ()
 
 LinearClassifierFst (LinearFstData< A > *data, size_t num_classes, const SymbolTable *isyms=nullptr, const SymbolTable *osyms=nullptr, CacheOptions opts=CacheOptions())
 
 LinearClassifierFst (const Fst< A > &fst)
 
 LinearClassifierFst (const LinearClassifierFst< A > &fst, bool safe=false)
 
LinearClassifierFst< 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 string &filename) const override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::LinearClassifierFstImpl< 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 string & Type () const override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< typename internal::LinearClassifierFstImpl< 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 LinearClassifierFst< A > * Read (const string &filename)
 
static LinearClassifierFst< A > * Read (std::istream &in, const FstReadOptions &opts)
 
- Static Public Member Functions inherited from fst::Fst< typename internal::LinearClassifierFstImpl< A >::Arc >
static Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 

Friends

class ArcIterator< LinearClassifierFst< A > >
 
class StateIterator< LinearClassifierFst< A > >
 
class LinearFstMatcherTpl< LinearClassifierFst< A > >
 

Additional Inherited Members

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

Detailed Description

template<class A>
class fst::LinearClassifierFst< A >

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

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

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

Member Function Documentation

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

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

template<class A>
MatcherBase<A>* fst::LinearClassifierFst< A >::InitMatcher ( MatchType  match_type) const
inlineoverridevirtual
template<class Arc>
void fst::LinearClassifierFst< Arc >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverride

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

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

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

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

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

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

Friends And Related Function Documentation

template<class A>
friend class ArcIterator< LinearClassifierFst< A > >
friend

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

template<class A>
friend class LinearFstMatcherTpl< LinearClassifierFst< A > >
friend

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

template<class A>
friend class StateIterator< LinearClassifierFst< A > >
friend

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


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