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

#include <map.h>

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

Public Types

using FromArc = A
 
using ToArc = B
 
using StateId = typename ToArc::StateId
 
using Weight = typename ToArc::Weight
 
using State = CacheState< B >
 
- Public Types inherited from fst::ArcMapFst< A, B, C >
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

 MapFst (const Fst< A > &fst, const C &mapper, const MapFstOptions &opts)
 
 MapFst (const Fst< A > &fst, C *mapper, const MapFstOptions &opts)
 
 MapFst (const Fst< A > &fst, const C &mapper)
 
 MapFst (const Fst< A > &fst, C *mapper)
 
 MapFst (const MapFst &fst, bool safe=false)
 
MapFstCopy (bool safe=false) const override
 
- Public Member Functions inherited from fst::ArcMapFst< A, B, C >
 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)
 
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
 

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::MapFst< A, B, C >

Definition at line 39 of file map.h.

Member Typedef Documentation

template<class A , class B , class C >
using fst::MapFst< A, B, C >::FromArc = A

Definition at line 41 of file map.h.

template<class A , class B , class C >
using fst::MapFst< A, B, C >::State = CacheState<B>

Definition at line 47 of file map.h.

template<class A , class B , class C >
using fst::MapFst< A, B, C >::StateId = typename ToArc::StateId

Definition at line 44 of file map.h.

template<class A , class B , class C >
using fst::MapFst< A, B, C >::ToArc = B

Definition at line 42 of file map.h.

template<class A , class B , class C >
using fst::MapFst< A, B, C >::Weight = typename ToArc::Weight

Definition at line 45 of file map.h.

Constructor & Destructor Documentation

template<class A , class B , class C >
fst::MapFst< A, B, C >::MapFst ( const Fst< A > &  fst,
const C &  mapper,
const MapFstOptions opts 
)
inline

Definition at line 49 of file map.h.

template<class A , class B , class C >
fst::MapFst< A, B, C >::MapFst ( const Fst< A > &  fst,
C *  mapper,
const MapFstOptions opts 
)
inline

Definition at line 52 of file map.h.

template<class A , class B , class C >
fst::MapFst< A, B, C >::MapFst ( const Fst< A > &  fst,
const C &  mapper 
)
inline

Definition at line 55 of file map.h.

template<class A , class B , class C >
fst::MapFst< A, B, C >::MapFst ( const Fst< A > &  fst,
C *  mapper 
)
inline

Definition at line 58 of file map.h.

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

Definition at line 61 of file map.h.

Member Function Documentation

template<class A , class B , class C >
MapFst* fst::MapFst< A, B, C >::Copy ( bool  safe = false) const
inlineoverridevirtual

Reimplemented from fst::ArcMapFst< A, B, C >.

Definition at line 65 of file map.h.


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