FST  openfst-1.7.1
OpenFst Library
Public Types | Public Member Functions | Friends | List of all members
fst::internal::RelabelFstImpl< Arc > Class Template Reference

#include <relabel.h>

Inheritance diagram for fst::internal::RelabelFstImpl< Arc >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::RelabelFstImpl< Arc >:
Collaboration graph
[legend]

Public Types

using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< Arc >
 
using State = typename Store::State
 
- Public Types inherited from fst::internal::CacheImpl< Arc >
using State = CacheState< Arc >
 
- Public Types inherited from fst::internal::CacheBaseImpl< CacheState< Arc > >
using Arc = typename CacheState< Arc >::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = DefaultCacheStore< typename CacheState< Arc >::Arc >
 
- Public Types inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
using StateId = typename CacheState< Arc >::Arc::StateId
 
using Weight = typename CacheState< Arc >::Arc::Weight
 

Public Member Functions

 RelabelFstImpl (const Fst< Arc > &fst, const std::vector< std::pair< Label, Label >> &ipairs, const std::vector< std::pair< Label, Label >> &opairs, const RelabelFstOptions &opts)
 
 RelabelFstImpl (const Fst< Arc > &fst, const SymbolTable *old_isymbols, const SymbolTable *new_isymbols, const SymbolTable *old_osymbols, const SymbolTable *new_osymbols, const RelabelFstOptions &opts)
 
 RelabelFstImpl (const RelabelFstImpl< Arc > &impl)
 
StateId Start ()
 
Weight Final (StateId s)
 
size_t NumArcs (StateId s)
 
size_t NumInputEpsilons (StateId s)
 
size_t NumOutputEpsilons (StateId s)
 
uint64 Properties () const override
 
uint64 Properties (uint64 mask) const override
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data)
 
void Expand (StateId s)
 
- Public Member Functions inherited from fst::internal::CacheImpl< Arc >
 CacheImpl ()
 
 CacheImpl (const CacheOptions &opts)
 
 CacheImpl (const CacheImpl< Arc > &impl, bool preserve_cache=false)
 
- Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheState< Arc > >
 CacheBaseImpl (const CacheOptions &opts=CacheOptions())
 
 CacheBaseImpl (const CacheImplOptions< DefaultCacheStore< typename CacheState< Arc >::Arc > > &opts)
 
 CacheBaseImpl (const CacheBaseImpl< CacheState< Arc >, DefaultCacheStore< typename CacheState< Arc >::Arc > > &impl, bool preserve_cache=false)
 
 ~CacheBaseImpl () override
 
void SetStart (StateId s)
 
void SetFinal (StateId s, Weight weight)
 
void PushArc (StateId s, const Arc &arc)
 
void PushArc (StateId s, Arc &&arc)
 
void EmplaceArc (StateId s, T &&...ctor_args)
 
void SetArcs (StateId s)
 
void ReserveArcs (StateId s, size_t n)
 
void DeleteArcs (StateId s)
 
void DeleteArcs (StateId s, size_t n)
 
void Clear ()
 
bool HasStart () const
 
bool HasFinal (StateId s) const
 
bool HasArcs (StateId s) const
 
StateId Start () const
 
Weight Final (StateId s) const
 
size_t NumArcs (StateId s) const
 
size_t NumInputEpsilons (StateId s) const
 
size_t NumOutputEpsilons (StateId s) const
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
 
StateId NumKnownStates () const
 
void UpdateNumKnownStates (StateId s)
 
StateId MinUnexpandedState () const
 
StateId MaxExpandedState () const
 
void SetExpandedState (StateId s)
 
bool ExpandedState (StateId s) const
 
const DefaultCacheStore< typename CacheState< Arc >::Arc > * GetCacheStore () const
 
DefaultCacheStore< typename CacheState< Arc >::Arc > * GetCacheStore ()
 
bool GetCacheGc () const
 
size_t GetCacheLimit () const
 
- Public Member Functions inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< CacheState< Arc >::Arc > &impl)
 
 FstImpl (FstImpl< CacheState< Arc >::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< CacheState< Arc >::Arc > &impl)
 
FstImploperator= (FstImpl< CacheState< Arc >::Arc > &&impl) noexcept
 
const string & Type () const
 
void SetType (const string &type)
 
void SetProperties (uint64 props)
 
void SetProperties (uint64 props, uint64 mask)
 
void SetProperties (uint64 props, uint64 mask) const
 
const SymbolTableInputSymbols () const
 
SymbolTableInputSymbols ()
 
const SymbolTableOutputSymbols () const
 
SymbolTableOutputSymbols ()
 
void SetInputSymbols (const SymbolTable *isyms)
 
void SetOutputSymbols (const SymbolTable *osyms)
 
bool ReadHeader (std::istream &strm, const FstReadOptions &opts, int min_version, FstHeader *hdr)
 
void WriteHeader (std::ostream &strm, const FstWriteOptions &opts, int version, FstHeader *hdr) const
 

Friends

class StateIterator< RelabelFst< Arc > >
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
static void WriteFstHeader (const Fst< CacheState< Arc >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheState< Arc >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< CacheState< Arc >::Arc >
uint64 properties_
 

Detailed Description

template<class Arc>
class fst::internal::RelabelFstImpl< Arc >

Definition at line 200 of file relabel.h.

Member Typedef Documentation

template<class Arc>
using fst::internal::RelabelFstImpl< Arc >::Label = typename Arc::Label

Definition at line 202 of file relabel.h.

template<class Arc>
using fst::internal::RelabelFstImpl< Arc >::State = typename Store::State

Definition at line 207 of file relabel.h.

template<class Arc>
using fst::internal::RelabelFstImpl< Arc >::StateId = typename Arc::StateId

Definition at line 203 of file relabel.h.

template<class Arc>
using fst::internal::RelabelFstImpl< Arc >::Store = DefaultCacheStore<Arc>

Definition at line 206 of file relabel.h.

template<class Arc>
using fst::internal::RelabelFstImpl< Arc >::Weight = typename Arc::Weight

Definition at line 204 of file relabel.h.

Constructor & Destructor Documentation

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

Definition at line 225 of file relabel.h.

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

Definition at line 239 of file relabel.h.

template<class Arc>
fst::internal::RelabelFstImpl< Arc >::RelabelFstImpl ( const RelabelFstImpl< Arc > &  impl)
inline

Definition at line 273 of file relabel.h.

Member Function Documentation

template<class Arc>
void fst::internal::RelabelFstImpl< Arc >::Expand ( StateId  s)
inline

Definition at line 326 of file relabel.h.

template<class Arc>
Weight fst::internal::RelabelFstImpl< Arc >::Final ( StateId  s)
inline

Definition at line 291 of file relabel.h.

template<class Arc>
void fst::internal::RelabelFstImpl< Arc >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
)
inline

Definition at line 321 of file relabel.h.

template<class Arc>
size_t fst::internal::RelabelFstImpl< Arc >::NumArcs ( StateId  s)
inline

Definition at line 296 of file relabel.h.

template<class Arc>
size_t fst::internal::RelabelFstImpl< Arc >::NumInputEpsilons ( StateId  s)
inline

Definition at line 301 of file relabel.h.

template<class Arc>
size_t fst::internal::RelabelFstImpl< Arc >::NumOutputEpsilons ( StateId  s)
inline

Definition at line 306 of file relabel.h.

template<class Arc>
uint64 fst::internal::RelabelFstImpl< Arc >::Properties ( ) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheState< Arc >::Arc >.

Definition at line 311 of file relabel.h.

template<class Arc>
uint64 fst::internal::RelabelFstImpl< Arc >::Properties ( uint64  mask) const
inlineoverridevirtual

Reimplemented from fst::internal::FstImpl< CacheState< Arc >::Arc >.

Definition at line 314 of file relabel.h.

template<class Arc>
StateId fst::internal::RelabelFstImpl< Arc >::Start ( )
inline

Definition at line 286 of file relabel.h.

Friends And Related Function Documentation

template<class Arc>
friend class StateIterator< RelabelFst< Arc > >
friend

Definition at line 223 of file relabel.h.


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