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

#include <const-fst.h>

Inheritance diagram for fst::ConstFst< A, Unsigned >:
Inheritance graph
[legend]
Collaboration diagram for fst::ConstFst< A, Unsigned >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Impl = internal::ConstFstImpl< A, Unsigned >
 
using ConstState = typename Impl::ConstState
 
- Public Types inherited from fst::ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned > >
using Arc = typename ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ImplToFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > >
using Arc = typename internal::ConstFstImpl< A, Unsigned >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc >
using Arc = typename internal::ConstFstImpl< A, Unsigned >::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

template<class F , class G >
void friend Cast (const F &, G *)
 
 ConstFst ()
 
 ConstFst (const Fst< Arc > &fst)
 
 ConstFst (const ConstFst &fst, bool unused_safe=false)
 
ConstFstCopy (bool safe=false) const override
 
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
 
- Public Member Functions inherited from fst::ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned > >
StateId NumStates () const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::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_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::ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc >
std::optional< StateIdNumStatesIfKnown () const override
 
- Public Member Functions inherited from fst::Fst< A >
virtual ~Fst ()=default
 
virtual MatcherBase< Arc > * InitMatcher (MatchType match_type) const
 

Static Public Member Functions

static ConstFstRead (std::istream &strm, const FstReadOptions &opts)
 
static ConstFstRead (std::string_view source)
 
template<class FST >
static bool WriteFst (const FST &fst, std::ostream &strm, const FstWriteOptions &opts)
 
- Static Public Member Functions inherited from fst::ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc >
static ExpandedFstRead (std::istream &strm, const FstReadOptions &opts)
 
static ExpandedFstRead (std::string_view 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< ConstFst< Arc, Unsigned > >
 
class ArcIterator< ConstFst< Arc, Unsigned > >
 

Additional Inherited Members

- Protected Member Functions inherited from fst::ImplToExpandedFst< internal::ConstFstImpl< A, Unsigned > >
 ImplToExpandedFst (std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > impl)
 
 ImplToExpandedFst (const ImplToExpandedFst &fst, bool safe)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::ConstFstImpl< A, Unsigned >, ExpandedFst< typename internal::ConstFstImpl< A, Unsigned >::Arc > >
 ImplToFst (std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > 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::ConstFstImpl< A, Unsigned > * GetImpl () const
 
internal::ConstFstImpl< A, Unsigned > * GetMutableImpl () const
 
std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > GetSharedImpl () const
 
bool Unique () const
 
void SetImpl (std::shared_ptr< internal::ConstFstImpl< A, Unsigned > > 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::ConstFstImpl< A, Unsigned > >
static internal::ConstFstImpl< A, Unsigned > * Read (std::istream &strm, const FstReadOptions &opts)
 
static internal::ConstFstImpl< A, Unsigned > * Read (std::string_view source)
 

Detailed Description

template<class A, class Unsigned>
class fst::ConstFst< A, Unsigned >

Definition at line 50 of file const-fst.h.

Member Typedef Documentation

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::Arc = A

Definition at line 246 of file const-fst.h.

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::ConstState = typename Impl::ConstState

Definition at line 250 of file const-fst.h.

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::Impl = internal::ConstFstImpl<A, Unsigned>

Definition at line 249 of file const-fst.h.

template<class A, class Unsigned>
using fst::ConstFst< A, Unsigned >::StateId = typename Arc::StateId

Definition at line 247 of file const-fst.h.

Constructor & Destructor Documentation

template<class A, class Unsigned>
fst::ConstFst< A, Unsigned >::ConstFst ( )
inline

Definition at line 258 of file const-fst.h.

template<class A, class Unsigned>
fst::ConstFst< A, Unsigned >::ConstFst ( const Fst< Arc > &  fst)
inlineexplicit

Definition at line 260 of file const-fst.h.

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

Definition at line 263 of file const-fst.h.

Member Function Documentation

template<class A, class Unsigned>
template<class F , class G >
void friend fst::ConstFst< A, Unsigned >::Cast ( const F &  ,
G *   
)
template<class A, class Unsigned>
ConstFst* fst::ConstFst< A, Unsigned >::Copy ( bool  safe = false) const
inlineoverridevirtual
template<class A, class Unsigned>
void fst::ConstFst< A, Unsigned >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 300 of file const-fst.h.

template<class A, class Unsigned>
void fst::ConstFst< A, Unsigned >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverridevirtual

Implements fst::Fst< A >.

Definition at line 296 of file const-fst.h.

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

Definition at line 272 of file const-fst.h.

template<class A, class Unsigned>
static ConstFst* fst::ConstFst< A, Unsigned >::Read ( std::string_view  source)
inlinestatic

Definition at line 279 of file const-fst.h.

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

Reimplemented from fst::Fst< A >.

Definition at line 284 of file const-fst.h.

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

Reimplemented from fst::Fst< A >.

Definition at line 288 of file const-fst.h.

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

Definition at line 328 of file const-fst.h.

Friends And Related Function Documentation

template<class A, class Unsigned>
friend class ArcIterator< ConstFst< Arc, Unsigned > >
friend

Definition at line 253 of file const-fst.h.

template<class A, class Unsigned>
friend class StateIterator< ConstFst< Arc, Unsigned > >
friend

Definition at line 252 of file const-fst.h.


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