FST  openfst-1.8.1
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 &fst, bool unused_safe=false)
 
 VectorFst (VectorFst &&) noexcept
 
VectorFstCopy (bool safe=false) const override
 
VectorFstoperator= (const VectorFst &)=default
 
VectorFstoperator= (VectorFst &&) noexcept
 
VectorFstoperator= (const Fst< Arc > &fst) override
 
template<class... T>
void EmplaceArc (StateId state, T &&...ctor_args)
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const override
 
bool Write (const std::string &source) 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=Weight::One()) override
 
void SetProperties (uint64 props, uint64 mask) override
 
StateId AddState () override
 
void AddStates (size_t n) override
 
void AddArc (StateId s, const Arc &arc) override
 
void AddArc (StateId s, 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 (size_t n) 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 std::string & Type () const override
 
- Public Member Functions inherited from fst::MutableFst< typename internal::VectorFstImpl< S >::Arc >
MutableFstoperator= (const MutableFst &fst)
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Member Functions

static VectorFstRead (std::istream &strm, const FstReadOptions &opts)
 
static VectorFstRead (const std::string &source)
 
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 MutableFstRead (std::istream &strm, const FstReadOptions &opts)
 
static MutableFstRead (const std::string &source, bool convert=false, const std::string &convert_type="vector")
 
- Static Public Member Functions inherited from fst::ExpandedFst< typename internal::VectorFstImpl< S >::Arc >
static ExpandedFstRead (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFstRead (const std::string &source)
 
- Static Public Member Functions inherited from fst::Fst< A >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 

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 &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 &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 &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst &fst)
 
 ImplToFst (ImplToFst &&fst) noexcept
 
ImplToFstoperator= (const ImplToFst &fst)
 
ImplToFstoperator= (ImplToFst &&fst) noexcept
 
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 std::string &source) 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 std::string &source)
 

Detailed Description

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

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

Member Typedef Documentation

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

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

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

template<class Arc , class State >
fst::VectorFst< Arc, State >::VectorFst ( VectorFst< A, S > &&  )
inlinedefaultnoexcept

Member Function Documentation

template<class A, class S>
VectorFst* fst::VectorFst< A, S >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class S>
template<class... T>
void fst::VectorFst< A, S >::EmplaceArc ( StateId  state,
T &&...  ctor_args 
)
inline

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

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 599 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 595 of file vector-fst.h.

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

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

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

Definition at line 578 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 583 of file vector-fst.h.

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

Reimplemented from fst::Fst< A >.

Definition at line 587 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 630 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 534 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 535 of file vector-fst.h.

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

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


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