FST  openfst-1.8.2
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 ()
 
 FstImpl (const FstImpl< Arc > &impl)
 
 FstImpl (FstImpl< Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
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_
 

Detailed Description

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

Definition at line 670 of file fst.h.

Member Typedef Documentation

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

Definition at line 672 of file fst.h.

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

Definition at line 673 of file fst.h.

Constructor & Destructor Documentation

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

Definition at line 675 of file fst.h.

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

Definition at line 677 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 ( )
inlinevirtual

Definition at line 685 of file fst.h.

Member Function Documentation

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

Definition at line 760 of file fst.h.

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

Definition at line 764 of file fst.h.

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

Definition at line 687 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 762 of file fst.h.

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

Definition at line 766 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 887 of file fst.h.

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

Definition at line 768 of file fst.h.

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

Definition at line 772 of file fst.h.

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

Definition at line 710 of file fst.h.

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

Definition at line 717 of file fst.h.

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

Definition at line 728 of file fst.h.

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

Definition at line 700 of file fst.h.

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

Definition at line 698 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 845 of file fst.h.

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

Definition at line 737 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 812 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 786 of file fst.h.

Member Data Documentation

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

Definition at line 871 of file fst.h.


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