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

#include <fst-decl.h>

Inheritance diagram for fst::RelabelFst< A >:
Inheritance graph
[legend]
Collaboration diagram for fst::RelabelFst< A >:
Collaboration graph
[legend]

Public Types

using Arc = A
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< Arc >
 
using State = typename Store::State
 
using Impl = internal::RelabelFstImpl< Arc >
 
- Public Types inherited from fst::ImplToFst< internal::RelabelFstImpl< A > >
using Arc = typename internal::RelabelFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
- Public Types inherited from fst::Fst< typename internal::RelabelFstImpl< A >::Arc >
using Arc = typename internal::RelabelFstImpl< A >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 RelabelFst (const Fst< Arc > &fst, const std::vector< std::pair< Label, Label >> &ipairs, const std::vector< std::pair< Label, Label >> &opairs, const RelabelFstOptions &opts=RelabelFstOptions())
 
 RelabelFst (const Fst< Arc > &fst, const SymbolTable *new_isymbols, const SymbolTable *new_osymbols, const RelabelFstOptions &opts=RelabelFstOptions())
 
 RelabelFst (const Fst< Arc > &fst, const SymbolTable *old_isymbols, const SymbolTable *new_isymbols, const SymbolTable *old_osymbols, const SymbolTable *new_osymbols, const RelabelFstOptions &opts=RelabelFstOptions())
 
 RelabelFst (const RelabelFst &fst, bool safe=false)
 
RelabelFstCopy (bool safe=false) const override
 
void InitStateIterator (StateIteratorData< Arc > *data) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const override
 
- Public Member Functions inherited from fst::ImplToFst< internal::RelabelFstImpl< A > >
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::RelabelFstImpl< A >::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< RelabelFst< A > >
 
class StateIterator< RelabelFst< A > >
 

Additional Inherited Members

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

Detailed Description

template<class A>
class fst::RelabelFst< A >

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

Member Typedef Documentation

template<class A>
using fst::RelabelFst< A >::Arc = A

Definition at line 372 of file relabel.h.

template<class A>
using fst::RelabelFst< A >::Impl = internal::RelabelFstImpl<Arc>

Definition at line 379 of file relabel.h.

template<class A>
using fst::RelabelFst< A >::Label = typename Arc::Label

Definition at line 373 of file relabel.h.

template<class A>
using fst::RelabelFst< A >::State = typename Store::State

Definition at line 378 of file relabel.h.

template<class A>
using fst::RelabelFst< A >::StateId = typename Arc::StateId

Definition at line 374 of file relabel.h.

template<class A>
using fst::RelabelFst< A >::Store = DefaultCacheStore<Arc>

Definition at line 377 of file relabel.h.

template<class A>
using fst::RelabelFst< A >::Weight = typename Arc::Weight

Definition at line 375 of file relabel.h.

Constructor & Destructor Documentation

template<class A>
fst::RelabelFst< A >::RelabelFst ( const Fst< Arc > &  fst,
const std::vector< std::pair< Label, Label >> &  ipairs,
const std::vector< std::pair< Label, Label >> &  opairs,
const RelabelFstOptions opts = RelabelFstOptions() 
)
inline

Definition at line 384 of file relabel.h.

template<class A>
fst::RelabelFst< A >::RelabelFst ( const Fst< Arc > &  fst,
const SymbolTable new_isymbols,
const SymbolTable new_osymbols,
const RelabelFstOptions opts = RelabelFstOptions() 
)
inline

Definition at line 390 of file relabel.h.

template<class A>
fst::RelabelFst< A >::RelabelFst ( const Fst< Arc > &  fst,
const SymbolTable old_isymbols,
const SymbolTable new_isymbols,
const SymbolTable old_osymbols,
const SymbolTable new_osymbols,
const RelabelFstOptions opts = RelabelFstOptions() 
)
inline

Definition at line 397 of file relabel.h.

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

Definition at line 406 of file relabel.h.

Member Function Documentation

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

Definition at line 416 of file relabel.h.

template<class Arc >
void fst::RelabelFst< Arc >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inlineoverride

Definition at line 474 of file relabel.h.

Friends And Related Function Documentation

template<class A>
friend class ArcIterator< RelabelFst< A > >
friend

Definition at line 381 of file relabel.h.

template<class A>
friend class StateIterator< RelabelFst< A > >
friend

Definition at line 382 of file relabel.h.


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