FST  openfst-1.8.2
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_t Properties () const override
 
uint64_t Properties (uint64_t 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 (std::string_view type)
 
void SetProperties (uint64_t props)
 
void SetProperties (uint64_t props, uint64_t mask)
 
void SetProperties (uint64_t props, uint64_t mask) const
 
void UpdateProperties (uint64_t props, uint64_t mask)
 
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, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< CacheState< B >::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset)
 
- Protected Attributes inherited from fst::internal::FstImpl< CacheState< B >::Arc >
std::atomic< uint64_t > properties_
 

Detailed Description

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

Definition at line 303 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 305 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 306 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 307 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 325 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 336 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 346 of file arc-map.h.

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

Definition at line 356 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 433 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 365 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 428 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 402 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 407 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 412 of file arc-map.h.

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

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

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

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

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

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

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

Definition at line 360 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 323 of file arc-map.h.


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