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

#include <fst-decl.h>

Inheritance diagram for fst::VectorFst< A, S >:
Inheritance graph
[legend]
Collaboration diagram for fst::VectorFst< A, S >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using State = S
 
using Impl = internal::VectorFstImpl< State >
 
- Public Types inherited from fst::ImplToMutableFst< internal::VectorFstImpl< S > >
using Arc = typename internal::VectorFstImpl< S >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToExpandedFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > >
using Arc = typename MutableFst< typename internal::VectorFstImpl< S >::Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > >
using Arc = typename internal::VectorFstImpl< S >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::MutableFst< typename internal::VectorFstImpl< S >::Arc >
using Arc = typename internal::VectorFstImpl< S >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ExpandedFst< typename internal::VectorFstImpl< S >::Arc >
using Arc = typename internal::VectorFstImpl< S >::Arc
 
using StateId = typename Arc::StateId
 
- Public Types inherited from fst::Fst< A >
using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 VectorFst ()
 
 VectorFst (const Fst< Arc > &fst)
 
 VectorFst (const VectorFst< Arc, State > &fst, bool safe=false)
 
VectorFst< Arc, State > * Copy (bool safe=false) const override
 
VectorFst< Arc, State > & operator= (const VectorFst< Arc, State > &fst)
 
VectorFst< Arc, State > & operator= (const Fst< Arc > &fst) override
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
bool Write (const string &filename) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
void InitMutableArcIterator (StateId s, MutableArcIteratorData< Arc > *) override
 
- Public Member Functions inherited from fst::ImplToMutableFst< internal::VectorFstImpl< S > >
void SetStart (StateId s) override
 
void SetFinal (StateId s, Weight weight) override
 
void SetProperties (uint64 props, uint64 mask) override
 
StateId AddState () override
 
void AddArc (StateId s, const Arc &arc) override
 
void DeleteStates (const std::vector< StateId > &dstates) override
 
void DeleteStates () override
 
void DeleteArcs (StateId s, size_t n) override
 
void DeleteArcs (StateId s) override
 
void ReserveStates (StateId s) override
 
void ReserveArcs (StateId s, size_t n) override
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
SymbolTableMutableInputSymbols () override
 
SymbolTableMutableOutputSymbols () override
 
void SetInputSymbols (const SymbolTable *isyms) override
 
void SetOutputSymbols (const SymbolTable *osyms) override
 
- Public Member Functions inherited from fst::ImplToExpandedFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > >
StateId NumStates () const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > >
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
 
- Public Member Functions inherited from fst::MutableFst< typename internal::VectorFstImpl< S >::Arc >
MutableFst< Arc > & operator= (const MutableFst< Arc > &fst)
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Member Functions

static VectorFst< Arc, State > * Read (std::istream &strm, const FstReadOptions &opts)
 
static VectorFst< Arc, State > * Read (const string &filename)
 
template<class FST >
static bool WriteFst (const FST &fst, std::ostream &strm, const FstWriteOptions &opts)
 
- Static Public Member Functions inherited from fst::MutableFst< typename internal::VectorFstImpl< S >::Arc >
static MutableFst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static MutableFst< Arc > * Read (const string &filename, bool convert=false, const string &convert_type="vector")
 
- Static Public Member Functions inherited from fst::ExpandedFst< typename internal::VectorFstImpl< S >::Arc >
static ExpandedFst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFst< Arc > * Read (const string &filename)
 
- Static Public Member Functions inherited from fst::Fst< A >
static Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 

Friends

class StateIterator< VectorFst< Arc, State > >
 
class ArcIterator< VectorFst< Arc, State > >
 
class MutableArcIterator< VectorFst< A, S > >
 
template<class F , class G >
void Cast (const F &, G *)
 

Additional Inherited Members

- Protected Member Functions inherited from fst::ImplToMutableFst< internal::VectorFstImpl< S > >
 ImplToMutableFst (std::shared_ptr< internal::VectorFstImpl< S > > impl)
 
 ImplToMutableFst (const ImplToMutableFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > > &fst, bool safe)
 
void MutateCheck ()
 
- Protected Member Functions inherited from fst::ImplToExpandedFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > >
 ImplToExpandedFst (std::shared_ptr< internal::VectorFstImpl< S > > impl)
 
 ImplToExpandedFst (const ImplToExpandedFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > > &fst)
 
 ImplToExpandedFst (const ImplToExpandedFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > > &fst, bool safe)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > >
 ImplToFst (std::shared_ptr< internal::VectorFstImpl< S > > impl)
 
 ImplToFst (const ImplToFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > > &fst, bool safe)
 
const internal::VectorFstImpl< S > * GetImpl () const
 
internal::VectorFstImpl< S > * GetMutableImpl () const
 
std::shared_ptr< internal::VectorFstImpl< S > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::VectorFstImpl< S > > impl)
 
- Protected Member Functions inherited from fst::Fst< A >
bool WriteFile (const string &filename) const
 
- Static Protected Member Functions inherited from fst::ImplToExpandedFst< internal::VectorFstImpl< S >, MutableFst< typename internal::VectorFstImpl< S >::Arc > >
static internal::VectorFstImpl< S > * Read (std::istream &strm, const FstReadOptions &opts)
 
static internal::VectorFstImpl< S > * Read (const string &filename)
 

Detailed Description

template<class A, class S>
class fst::VectorFst< A, S >

Definition at line 87 of file fst-decl.h.

Member Typedef Documentation

template<class A, class S>
using fst::VectorFst< A, S >::Arc = A

Definition at line 434 of file vector-fst.h.

template<class A, class S>
using fst::VectorFst< A, S >::Impl = internal::VectorFstImpl<State>

Definition at line 438 of file vector-fst.h.

template<class A, class S>
using fst::VectorFst< A, S >::State = S

Definition at line 437 of file vector-fst.h.

template<class A, class S>
using fst::VectorFst< A, S >::StateId = typename Arc::StateId

Definition at line 435 of file vector-fst.h.

Constructor & Destructor Documentation

template<class A, class S>
fst::VectorFst< A, S >::VectorFst ( )
inline

Definition at line 447 of file vector-fst.h.

template<class A, class S>
fst::VectorFst< A, S >::VectorFst ( const Fst< Arc > &  fst)
inlineexplicit

Definition at line 449 of file vector-fst.h.

template<class A, class S>
fst::VectorFst< A, S >::VectorFst ( const VectorFst< Arc, State > &  fst,
bool  safe = false 
)
inline

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

Member Function Documentation

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

Implements fst::Fst< A >.

Definition at line 502 of file vector-fst.h.

template<class Arc , class State >
void fst::VectorFst< Arc, State >::InitMutableArcIterator ( StateId  s,
MutableArcIteratorData< Arc > *  data 
)
inlineoverridevirtual
template<class A, class S>
void fst::VectorFst< A, S >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 498 of file vector-fst.h.

template<class A, class S>
VectorFst<Arc, State>& fst::VectorFst< A, S >::operator= ( const VectorFst< Arc, State > &  fst)
inline

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

template<class A, class S>
VectorFst<Arc, State>& fst::VectorFst< A, S >::operator= ( const Fst< Arc > &  fst)
inlineoverridevirtual
template<class A, class S>
static VectorFst<Arc, State>* fst::VectorFst< A, S >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
inlinestatic

Definition at line 471 of file vector-fst.h.

template<class A, class S>
static VectorFst<Arc, State>* fst::VectorFst< A, S >::Read ( const string &  filename)
inlinestatic

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

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

Reimplemented from fst::Fst< A >.

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

template<class A, class S>
bool fst::VectorFst< A, S >::Write ( const string &  filename) const
inlineoverridevirtual

Reimplemented from fst::Fst< A >.

Definition at line 490 of file vector-fst.h.

template<class Arc , class State >
template<class FST >
bool fst::VectorFst< Arc, State >::WriteFst ( const FST &  fst,
std::ostream &  strm,
const FstWriteOptions opts 
)
static

Definition at line 525 of file vector-fst.h.

Friends And Related Function Documentation

template<class A, class S>
friend class ArcIterator< VectorFst< Arc, State > >
friend

Definition at line 441 of file vector-fst.h.

template<class A, class S>
template<class F , class G >
void Cast ( const F &  ,
G *   
)
friend
template<class A, class S>
friend class MutableArcIterator< VectorFst< A, S > >
friend

Definition at line 442 of file vector-fst.h.

template<class A, class S>
friend class StateIterator< VectorFst< Arc, State > >
friend

Definition at line 440 of file vector-fst.h.


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