FST  openfst-1.8.1
OpenFst Library
Public Types | Public Member Functions | Friends | List of all members
fst::ArcMapFst< A, B, C > Class Template Reference

#include <arc-map.h>

Inheritance diagram for fst::ArcMapFst< A, B, C >:
Inheritance graph
[legend]
Collaboration diagram for fst::ArcMapFst< A, B, C >:
Collaboration graph
[legend]

Public Types

using Arc = B
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< B >
 
using State = typename Store::State
 
using Impl = internal::ArcMapFstImpl< A, B, C >
 
- Public Types inherited from fst::ImplToFst< internal::ArcMapFstImpl< A, B, C > >
using Arc = typename internal::ArcMapFstImpl< A, B, C >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::ArcMapFstImpl< A, B, C >::Arc >
using Arc = typename internal::ArcMapFstImpl< A, B, C >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 ArcMapFst (const Fst< A > &fst, const C &mapper, const ArcMapFstOptions &opts=ArcMapFstOptions())
 
 ArcMapFst (const Fst< A > &fst, C *mapper, const ArcMapFstOptions &opts=ArcMapFstOptions())
 
 ArcMapFst (const ArcMapFst &fst, bool safe=false)
 
ArcMapFstCopy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< B > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< B > *data) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::ArcMapFstImpl< A, B, C > >
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
 
const SymbolTableInputSymbols () const override
 
const SymbolTableOutputSymbols () const override
 
- Public Member Functions inherited from fst::Fst< typename internal::ArcMapFstImpl< A, B, C >::Arc >
virtual ~Fst ()
 
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< ArcMapFst< A, B, C > >
 
class StateIterator< ArcMapFst< A, B, C > >
 

Additional Inherited Members

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

Detailed Description

template<class A, class B, class C>
class fst::ArcMapFst< A, B, C >

Definition at line 296 of file arc-map.h.

Member Typedef Documentation

template<class A, class B, class C>
using fst::ArcMapFst< A, B, C >::Arc = B

Definition at line 532 of file arc-map.h.

template<class A, class B, class C>
using fst::ArcMapFst< A, B, C >::Impl = internal::ArcMapFstImpl<A, B, C>

Definition at line 538 of file arc-map.h.

template<class A, class B, class C>
using fst::ArcMapFst< A, B, C >::State = typename Store::State

Definition at line 537 of file arc-map.h.

template<class A, class B, class C>
using fst::ArcMapFst< A, B, C >::StateId = typename Arc::StateId

Definition at line 533 of file arc-map.h.

template<class A, class B, class C>
using fst::ArcMapFst< A, B, C >::Store = DefaultCacheStore<B>

Definition at line 536 of file arc-map.h.

template<class A, class B, class C>
using fst::ArcMapFst< A, B, C >::Weight = typename Arc::Weight

Definition at line 534 of file arc-map.h.

Constructor & Destructor Documentation

template<class A, class B, class C>
fst::ArcMapFst< A, B, C >::ArcMapFst ( const Fst< A > &  fst,
const C &  mapper,
const ArcMapFstOptions opts = ArcMapFstOptions() 
)
inline

Definition at line 543 of file arc-map.h.

template<class A, class B, class C>
fst::ArcMapFst< A, B, C >::ArcMapFst ( const Fst< A > &  fst,
C *  mapper,
const ArcMapFstOptions opts = ArcMapFstOptions() 
)
inline

Definition at line 547 of file arc-map.h.

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

Definition at line 552 of file arc-map.h.

Member Function Documentation

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

Definition at line 562 of file arc-map.h.

template<class A , class B, class C >
void fst::ArcMapFst< A, B, C >::InitStateIterator ( StateIteratorData< B > *  data) const
inlineoverride

Definition at line 641 of file arc-map.h.

Friends And Related Function Documentation

template<class A, class B, class C>
friend class ArcIterator< ArcMapFst< A, B, C > >
friend

Definition at line 540 of file arc-map.h.

template<class A, class B, class C>
friend class StateIterator< ArcMapFst< A, B, C > >
friend

Definition at line 541 of file arc-map.h.


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