FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
fst::internal::FstImpl< Arc > Class Template Reference

#include <fst.h>

Public Types

using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 

Public Member Functions

 FstImpl ()=default
 
 FstImpl (const FstImpl< Arc > &impl)
 
 FstImpl (FstImpl< Arc > &&impl) noexcept
 
virtual ~FstImpl ()=default
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (std::string_view type)
 
virtual uint64_t Properties () const
 
virtual uint64_t Properties (uint64_t mask) const
 
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
 
const SymbolTableOutputSymbols () const
 
SymbolTableInputSymbols ()
 
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
 

Static Public Member Functions

static void WriteFstHeader (const Fst< Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< 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

std::atomic< uint64_t > properties_ = 0
 

Detailed Description

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

Definition at line 669 of file fst.h.

Member Typedef Documentation

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

Definition at line 671 of file fst.h.

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

Definition at line 672 of file fst.h.

Constructor & Destructor Documentation

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

Definition at line 676 of file fst.h.

template<class Arc>
fst::internal::FstImpl< Arc >::FstImpl ( FstImpl< Arc > &&  impl)
inlinedefaultnoexcept
template<class Arc>
virtual fst::internal::FstImpl< Arc >::~FstImpl ( )
virtualdefault

Member Function Documentation

template<class Arc>
const SymbolTable* fst::internal::FstImpl< Arc >::InputSymbols ( ) const
inline

Definition at line 759 of file fst.h.

template<class Arc>
SymbolTable* fst::internal::FstImpl< Arc >::InputSymbols ( )
inline

Definition at line 763 of file fst.h.

template<class Arc>
FstImpl& fst::internal::FstImpl< Arc >::operator= ( const FstImpl< Arc > &  impl)
inline

Definition at line 686 of file fst.h.

template<class Arc >
FstImpl< Arc > & fst::internal::FstImpl< Arc >::operator= ( FstImpl< Arc > &&  impl)
inlinedefaultnoexcept
template<class Arc>
const SymbolTable* fst::internal::FstImpl< Arc >::OutputSymbols ( ) const
inline

Definition at line 761 of file fst.h.

template<class Arc>
SymbolTable* fst::internal::FstImpl< Arc >::OutputSymbols ( )
inline

Definition at line 765 of file fst.h.

template<class Arc>
virtual uint64_t fst::internal::FstImpl< Arc >::Properties ( ) const
inlinevirtual
template<class Arc>
virtual uint64_t fst::internal::FstImpl< Arc >::Properties ( uint64_t  mask) const
inlinevirtual
template<class Arc >
bool fst::internal::FstImpl< Arc >::ReadHeader ( std::istream &  strm,
const FstReadOptions opts,
int  min_version,
FstHeader hdr 
)

Definition at line 886 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::SetInputSymbols ( const SymbolTable isyms)
inline

Definition at line 767 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::SetOutputSymbols ( const SymbolTable osyms)
inline

Definition at line 771 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::SetProperties ( uint64_t  props)
inline

Definition at line 709 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::SetProperties ( uint64_t  props,
uint64_t  mask 
)
inline

Definition at line 716 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::SetProperties ( uint64_t  props,
uint64_t  mask 
) const
inline

Definition at line 727 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::SetType ( std::string_view  type)
inline

Definition at line 699 of file fst.h.

template<class Arc>
const std::string& fst::internal::FstImpl< Arc >::Type ( ) const
inline

Definition at line 697 of file fst.h.

template<class Arc>
static bool fst::internal::FstImpl< Arc >::UpdateFstHeader ( const Fst< Arc > &  fst,
std::ostream &  strm,
const FstWriteOptions opts,
int  version,
std::string_view  type,
uint64_t  properties,
FstHeader hdr,
size_t  header_offset 
)
inlinestatic

Definition at line 844 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::UpdateProperties ( uint64_t  props,
uint64_t  mask 
)
inline

Definition at line 736 of file fst.h.

template<class Arc>
static void fst::internal::FstImpl< Arc >::WriteFstHeader ( const Fst< Arc > &  fst,
std::ostream &  strm,
const FstWriteOptions opts,
int  version,
std::string_view  type,
uint64_t  properties,
FstHeader hdr 
)
inlinestatic

Definition at line 811 of file fst.h.

template<class Arc>
void fst::internal::FstImpl< Arc >::WriteHeader ( std::ostream &  strm,
const FstWriteOptions opts,
int  version,
FstHeader hdr 
) const
inline

Definition at line 785 of file fst.h.

Member Data Documentation

template<class Arc>
std::atomic<uint64_t> fst::internal::FstImpl< Arc >::properties_ = 0
mutableprotected

Definition at line 870 of file fst.h.


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