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

#include <arc-map.h>

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

Public Types

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

Public Member Functions

 ArcMapFstImpl (const Fst< A > &fst, const C &mapper, const ArcMapFstOptions &opts)
 
 ArcMapFstImpl (const Fst< A > &fst, C *mapper, const ArcMapFstOptions &opts)
 
 ArcMapFstImpl (const ArcMapFstImpl< A, B, C > &impl)
 
 ~ArcMapFstImpl () override
 
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< B > *data)
 
void Expand (StateId s)
 
- Public Member Functions inherited from fst::internal::CacheImpl< B >
 CacheImpl ()
 
 CacheImpl (const CacheOptions &opts)
 
 CacheImpl (const CacheImpl< B > &impl, bool preserve_cache=false)
 
- Public Member Functions inherited from fst::internal::CacheBaseImpl< CacheState< B > >
 CacheBaseImpl (const CacheOptions &opts=CacheOptions())
 
 CacheBaseImpl (const CacheImplOptions< DefaultCacheStore< typename CacheState< B >::Arc > > &opts)
 
 CacheBaseImpl (const CacheBaseImpl< CacheState< B >, DefaultCacheStore< typename CacheState< B >::Arc > > &impl, bool preserve_cache=false)
 
 ~CacheBaseImpl () override
 
void SetStart (StateId s)
 
void SetFinal (StateId s, Weight weight=Weight::One())
 
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< B >::Arc > * GetCacheStore () const
 
DefaultCacheStore< typename CacheState< B >::Arc > * GetCacheStore ()
 
bool GetCacheGc () const
 
size_t GetCacheLimit () const
 
- Public Member Functions inherited from fst::internal::FstImpl< CacheState< B >::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< CacheState< B >::Arc > &impl)
 
 FstImpl (FstImpl< CacheState< B >::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (const std::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< ArcMapFst< A, B, C > >
 

Additional Inherited Members

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

Detailed Description

template<class A, class B, class C>
class fst::internal::ArcMapFstImpl< A, B, C >

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

Member Typedef Documentation

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

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

template<class A, class B, class C>
fst::internal::ArcMapFstImpl< A, B, C >::ArcMapFstImpl ( const ArcMapFstImpl< A, B, C > &  impl)
inline

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

template<class A, class B, class C>
fst::internal::ArcMapFstImpl< A, B, C >::~ArcMapFstImpl ( )
inlineoverride

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

Member Function Documentation

template<class A, class B, class C>
void fst::internal::ArcMapFstImpl< A, B, C >::Expand ( StateId  s)
inline

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

template<class A, class B, class C>
Weight fst::internal::ArcMapFstImpl< A, B, C >::Final ( StateId  s)
inline

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

template<class A, class B, class C>
void fst::internal::ArcMapFstImpl< A, B, C >::InitArcIterator ( StateId  s,
ArcIteratorData< B > *  data 
)
inline

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

template<class A, class B, class C>
size_t fst::internal::ArcMapFstImpl< A, B, C >::NumArcs ( StateId  s)
inline

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

template<class A, class B, class C>
size_t fst::internal::ArcMapFstImpl< A, B, C >::NumInputEpsilons ( StateId  s)
inline

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

template<class A, class B, class C>
size_t fst::internal::ArcMapFstImpl< A, B, C >::NumOutputEpsilons ( StateId  s)
inline

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

template<class A, class B, class C>
uint64 fst::internal::ArcMapFstImpl< A, B, C >::Properties ( ) const
inlineoverridevirtual

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

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

template<class A, class B, class C>
uint64 fst::internal::ArcMapFstImpl< A, B, C >::Properties ( uint64  mask) const
inlineoverridevirtual

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

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

template<class A, class B, class C>
StateId fst::internal::ArcMapFstImpl< A, B, C >::Start ( )
inline

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

Friends And Related Function Documentation

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

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


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