FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Friends | List of all members
fst::RandGenFst< FromArc, ToArc, Sampler > Class Template Reference

#include <fst-decl.h>

Inheritance diagram for fst::RandGenFst< FromArc, ToArc, Sampler >:
Inheritance graph
[legend]
Collaboration diagram for fst::RandGenFst< FromArc, ToArc, Sampler >:
Collaboration graph
[legend]

Public Types

using Label = typename FromArc::Label
 
using StateId = typename FromArc::StateId
 
using Weight = typename FromArc::Weight
 
using Store = DefaultCacheStore< FromArc >
 
using State = typename Store::State
 
using Impl = internal::RandGenFstImpl< FromArc, ToArc, Sampler >
 
- Public Types inherited from fst::ImplToFst< internal::RandGenFstImpl< FromArc, ToArc, Sampler > >
using Arc = typename internal::RandGenFstImpl< FromArc, ToArc, Sampler >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::RandGenFstImpl< FromArc, ToArc, Sampler >::Arc >
using Arc = typename internal::RandGenFstImpl< FromArc, ToArc, Sampler >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 RandGenFst (const Fst< FromArc > &fst, const RandGenFstOptions< Sampler > &opts)
 
 RandGenFst (const RandGenFst &fst, bool safe=false)
 
RandGenFstCopy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< ToArc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< ToArc > *data) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::RandGenFstImpl< FromArc, ToArc, Sampler > >
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::RandGenFstImpl< FromArc, ToArc, Sampler >::Arc >
virtual ~Fst ()=default
 
virtual std::optional< StateIdNumStatesIfKnown () const
 
virtual bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
virtual bool Write (const std::string &source) const
 
virtual void InitStateIterator (StateIteratorData< Arc > *data) const =0
 
virtual void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const =0
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Friends

class ArcIterator< RandGenFst< FromArc, ToArc, Sampler > >
 
class StateIterator< RandGenFst< FromArc, ToArc, Sampler > >
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::Fst< typename internal::RandGenFstImpl< FromArc, ToArc, Sampler >::Arc >
static FstRead (std::istream &strm, const FstReadOptions &opts)
 
static FstRead (const std::string &source)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::RandGenFstImpl< FromArc, ToArc, Sampler > >
 ImplToFst (std::shared_ptr< internal::RandGenFstImpl< FromArc, ToArc, Sampler > > 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::RandGenFstImpl< FromArc, ToArc, Sampler > * GetImpl () const
 
internal::RandGenFstImpl< FromArc, ToArc, Sampler > * GetMutableImpl () const
 
std::shared_ptr< internal::RandGenFstImpl< FromArc, ToArc, Sampler > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::RandGenFstImpl< FromArc, ToArc, Sampler > > impl)
 
- Protected Member Functions inherited from fst::Fst< typename internal::RandGenFstImpl< FromArc, ToArc, Sampler >::Arc >
bool WriteFile (const std::string &source) const
 

Detailed Description

template<class FromArc, class ToArc, class Sampler>
class fst::RandGenFst< FromArc, ToArc, Sampler >

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

Member Typedef Documentation

template<class FromArc, class ToArc, class Sampler>
using fst::RandGenFst< FromArc, ToArc, Sampler >::Impl = internal::RandGenFstImpl<FromArc, ToArc, Sampler>

Definition at line 591 of file randgen.h.

template<class FromArc, class ToArc, class Sampler>
using fst::RandGenFst< FromArc, ToArc, Sampler >::Label = typename FromArc::Label

Definition at line 584 of file randgen.h.

template<class FromArc, class ToArc, class Sampler>
using fst::RandGenFst< FromArc, ToArc, Sampler >::State = typename Store::State

Definition at line 589 of file randgen.h.

template<class FromArc, class ToArc, class Sampler>
using fst::RandGenFst< FromArc, ToArc, Sampler >::StateId = typename FromArc::StateId

Definition at line 585 of file randgen.h.

template<class FromArc, class ToArc, class Sampler>
using fst::RandGenFst< FromArc, ToArc, Sampler >::Store = DefaultCacheStore<FromArc>

Definition at line 588 of file randgen.h.

template<class FromArc, class ToArc, class Sampler>
using fst::RandGenFst< FromArc, ToArc, Sampler >::Weight = typename FromArc::Weight

Definition at line 586 of file randgen.h.

Constructor & Destructor Documentation

template<class FromArc, class ToArc, class Sampler>
fst::RandGenFst< FromArc, ToArc, Sampler >::RandGenFst ( const Fst< FromArc > &  fst,
const RandGenFstOptions< Sampler > &  opts 
)
inline

Definition at line 596 of file randgen.h.

template<class FromArc, class ToArc, class Sampler>
fst::RandGenFst< FromArc, ToArc, Sampler >::RandGenFst ( const RandGenFst< FromArc, ToArc, Sampler > &  fst,
bool  safe = false 
)
inline

Definition at line 600 of file randgen.h.

Member Function Documentation

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

Definition at line 610 of file randgen.h.

template<class FromArc , class ToArc , class Sampler >
void fst::RandGenFst< FromArc, ToArc, Sampler >::InitStateIterator ( StateIteratorData< ToArc > *  data) const
inlineoverride

Definition at line 646 of file randgen.h.

Friends And Related Function Documentation

template<class FromArc, class ToArc, class Sampler>
friend class ArcIterator< RandGenFst< FromArc, ToArc, Sampler > >
friend

Definition at line 593 of file randgen.h.

template<class FromArc, class ToArc, class Sampler>
friend class StateIterator< RandGenFst< FromArc, ToArc, Sampler > >
friend

Definition at line 594 of file randgen.h.


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