FST  openfst-1.7.1
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< Arc > &fst, bool safe=false)
 
RelabelFst< Arc > * Copy (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 Properties (uint64 mask, bool test) const override
 
const 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 ()
 
virtual bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
virtual bool Write (const string &filename) 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 Fst< Arc > * Read (std::istream &strm, const FstReadOptions &opts)
 
static Fst< Arc > * Read (const string &filename)
 
- Protected Member Functions inherited from fst::ImplToFst< internal::RelabelFstImpl< A > >
 ImplToFst (std::shared_ptr< internal::RelabelFstImpl< A > > impl)
 
 ImplToFst (const ImplToFst< internal::RelabelFstImpl< A >, Fst< typename internal::RelabelFstImpl< A >::Arc > > &fst, bool safe)
 
 ImplToFst ()=delete
 
 ImplToFst (const ImplToFst< internal::RelabelFstImpl< A >, Fst< typename internal::RelabelFstImpl< A >::Arc > > &fst)
 
 ImplToFst (ImplToFst< internal::RelabelFstImpl< A >, Fst< typename internal::RelabelFstImpl< A >::Arc > > &&fst) noexcept
 
ImplToFst< internal::RelabelFstImpl< A >, Fst< typename internal::RelabelFstImpl< A >::Arc > > & operator= (const ImplToFst< internal::RelabelFstImpl< A >, Fst< typename internal::RelabelFstImpl< A >::Arc > > &fst)
 
ImplToFst< internal::RelabelFstImpl< A >, Fst< typename internal::RelabelFstImpl< A >::Arc > > & operator= (ImplToFst< internal::RelabelFstImpl< A >, Fst< typename internal::RelabelFstImpl< A >::Arc > > &&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 string &filename) const
 

Detailed Description

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

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

Member Typedef Documentation

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

Definition at line 360 of file relabel.h.

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

Definition at line 367 of file relabel.h.

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

Definition at line 361 of file relabel.h.

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

Definition at line 366 of file relabel.h.

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

Definition at line 362 of file relabel.h.

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

Definition at line 365 of file relabel.h.

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

Definition at line 363 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 372 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 378 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 385 of file relabel.h.

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

Definition at line 394 of file relabel.h.

Member Function Documentation

template<class A>
RelabelFst<Arc>* 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 404 of file relabel.h.

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

Definition at line 462 of file relabel.h.

Friends And Related Function Documentation

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

Definition at line 369 of file relabel.h.

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

Definition at line 370 of file relabel.h.


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