FST  openfst-1.7.2
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::internal::CacheBaseImpl< State, CacheStore > Class Template Reference

#include <cache.h>

Inheritance diagram for fst::internal::CacheBaseImpl< State, CacheStore >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::CacheBaseImpl< State, CacheStore >:
Collaboration graph
[legend]

Public Types

using Arc = typename State::Arc
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Store = CacheStore
 
- Public Types inherited from fst::internal::FstImpl< State::Arc >
using StateId = typename State::Arc::StateId
 
using Weight = typename State::Arc::Weight
 

Public Member Functions

 CacheBaseImpl (const CacheOptions &opts=CacheOptions())
 
 CacheBaseImpl (const CacheImplOptions< CacheStore > &opts)
 
 CacheBaseImpl (const CacheBaseImpl< State, CacheStore > &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)
 
template<class... T>
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 CacheStore * GetCacheStore () const
 
CacheStore * GetCacheStore ()
 
bool GetCacheGc () const
 
size_t GetCacheLimit () const
 
- Public Member Functions inherited from fst::internal::FstImpl< State::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< State::Arc > &impl)
 
 FstImpl (FstImpl< State::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< State::Arc > &impl)
 
FstImploperator= (FstImpl< State::Arc > &&impl) noexcept
 
const string & Type () const
 
void SetType (const string &type)
 
virtual uint64 Properties () const
 
virtual uint64 Properties (uint64 mask) const
 
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
 

Additional Inherited Members

- Static Public Member Functions inherited from fst::internal::FstImpl< State::Arc >
static void WriteFstHeader (const Fst< State::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< State::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< State::Arc >
uint64 properties_
 

Detailed Description

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
class fst::internal::CacheBaseImpl< State, CacheStore >

Definition at line 835 of file cache.h.

Member Typedef Documentation

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
using fst::internal::CacheBaseImpl< State, CacheStore >::Arc = typename State::Arc

Definition at line 837 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
using fst::internal::CacheBaseImpl< State, CacheStore >::StateId = typename Arc::StateId

Definition at line 838 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
using fst::internal::CacheBaseImpl< State, CacheStore >::Store = CacheStore

Definition at line 841 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
using fst::internal::CacheBaseImpl< State, CacheStore >::Weight = typename Arc::Weight

Definition at line 839 of file cache.h.

Constructor & Destructor Documentation

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
fst::internal::CacheBaseImpl< State, CacheStore >::CacheBaseImpl ( const CacheOptions opts = CacheOptions())
inlineexplicit

Definition at line 846 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
fst::internal::CacheBaseImpl< State, CacheStore >::CacheBaseImpl ( const CacheImplOptions< CacheStore > &  opts)
inlineexplicit

Definition at line 858 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
fst::internal::CacheBaseImpl< State, CacheStore >::CacheBaseImpl ( const CacheBaseImpl< State, CacheStore > &  impl,
bool  preserve_cache = false 
)
inline

Definition at line 873 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
fst::internal::CacheBaseImpl< State, CacheStore >::~CacheBaseImpl ( )
inlineoverride

Definition at line 897 of file cache.h.

Member Function Documentation

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::Clear ( )
inline

Definition at line 981 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::DeleteArcs ( StateId  s)
inline

Definition at line 971 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::DeleteArcs ( StateId  s,
size_t  n 
)
inline

Definition at line 976 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
template<class... T>
void fst::internal::CacheBaseImpl< State, CacheStore >::EmplaceArc ( StateId  s,
T &&...  ctor_args 
)
inline

Definition at line 946 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
bool fst::internal::CacheBaseImpl< State, CacheStore >::ExpandedState ( StateId  s) const
inline

Definition at line 1081 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
Weight fst::internal::CacheBaseImpl< State, CacheStore >::Final ( StateId  s) const
inline

Definition at line 1020 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
bool fst::internal::CacheBaseImpl< State, CacheStore >::GetCacheGc ( ) const
inline

Definition at line 1099 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
size_t fst::internal::CacheBaseImpl< State, CacheStore >::GetCacheLimit ( ) const
inline

Definition at line 1101 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
const CacheStore* fst::internal::CacheBaseImpl< State, CacheStore >::GetCacheStore ( ) const
inline

Definition at line 1093 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
CacheStore* fst::internal::CacheBaseImpl< State, CacheStore >::GetCacheStore ( )
inline

Definition at line 1095 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
bool fst::internal::CacheBaseImpl< State, CacheStore >::HasArcs ( StateId  s) const
inline

Definition at line 1008 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
bool fst::internal::CacheBaseImpl< State, CacheStore >::HasFinal ( StateId  s) const
inline

Definition at line 997 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
bool fst::internal::CacheBaseImpl< State, CacheStore >::HasStart ( ) const
inline

Definition at line 991 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inline

Definition at line 1041 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
StateId fst::internal::CacheBaseImpl< State, CacheStore >::MaxExpandedState ( ) const
inline

Definition at line 1068 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
StateId fst::internal::CacheBaseImpl< State, CacheStore >::MinUnexpandedState ( ) const
inline

Definition at line 1059 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
size_t fst::internal::CacheBaseImpl< State, CacheStore >::NumArcs ( StateId  s) const
inline

Definition at line 1025 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
size_t fst::internal::CacheBaseImpl< State, CacheStore >::NumInputEpsilons ( StateId  s) const
inline

Definition at line 1030 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
StateId fst::internal::CacheBaseImpl< State, CacheStore >::NumKnownStates ( ) const
inline

Definition at line 1051 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
size_t fst::internal::CacheBaseImpl< State, CacheStore >::NumOutputEpsilons ( StateId  s) const
inline

Definition at line 1035 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::PushArc ( StateId  s,
const Arc arc 
)
inline

Definition at line 932 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::PushArc ( StateId  s,
Arc &&  arc 
)
inline

Definition at line 937 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::ReserveArcs ( StateId  s,
size_t  n 
)
inline

Definition at line 966 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::SetArcs ( StateId  s)
inline

Definition at line 953 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::SetExpandedState ( StateId  s)
inline

Definition at line 1070 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::SetFinal ( StateId  s,
Weight  weight 
)
inline

Definition at line 905 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::SetStart ( StateId  s)
inline

Definition at line 899 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
StateId fst::internal::CacheBaseImpl< State, CacheStore >::Start ( ) const
inline

Definition at line 1018 of file cache.h.

template<class State, class CacheStore = DefaultCacheStore<typename State::Arc>>
void fst::internal::CacheBaseImpl< State, CacheStore >::UpdateNumKnownStates ( StateId  s)
inline

Definition at line 1054 of file cache.h.


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