FST  openfst-1.7.7
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT > Class Template Reference

#include <edit-fst.h>

Inheritance diagram for fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 EditFstImpl ()
 
 EditFstImpl (const Fst< Arc > &wrapped)
 
 EditFstImpl (const EditFstImpl &impl)
 
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
 
StateId NumStates () const
 
bool Write (std::ostream &strm, const FstWriteOptions &opts) const
 
void SetStart (StateId s)
 
void SetFinal (StateId s, Weight weight)
 
StateId AddState ()
 
void AddStates (size_t n)
 
void AddArc (StateId s, const Arc &arc)
 
void DeleteStates (const std::vector< StateId > &dstates)
 
void DeleteStates ()
 
void DeleteArcs (StateId s, size_t n)
 
void DeleteArcs (StateId s)
 
void ReserveStates (StateId s)
 
void ReserveArcs (StateId s, size_t n)
 
void InitStateIterator (StateIteratorData< Arc > *data) const
 
void InitArcIterator (StateId s, ArcIteratorData< Arc > *data) const
 
void InitMutableArcIterator (StateId s, MutableArcIteratorData< Arc > *data)
 
- Public Member Functions inherited from fst::internal::FstImpl< A >
 FstImpl ()
 
 FstImpl (const FstImpl< A > &impl)
 
 FstImpl (FstImpl< A > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl &impl)
 
FstImploperator= (FstImpl &&impl) noexcept
 
const std::string & Type () const
 
void SetType (const std::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
 
void UpdateProperties (uint64 props, uint64 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
 

Static Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from fst::internal::FstImpl< A >
std::atomic< uint64properties_
 

Detailed Description

template<typename A, typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
class fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >

Definition at line 347 of file edit-fst.h.

Member Typedef Documentation

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
using fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Arc = A

Definition at line 349 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
using fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::StateId = typename Arc::StateId

Definition at line 350 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
using fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Weight = typename Arc::Weight

Definition at line 351 of file edit-fst.h.

Constructor & Destructor Documentation

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::EditFstImpl ( )
inline

Definition at line 364 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::EditFstImpl ( const Fst< Arc > &  wrapped)
inlineexplicit

Definition at line 383 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::EditFstImpl ( const EditFstImpl< A, WrappedFstT, MutableFstT > &  impl)
inline

Definition at line 395 of file edit-fst.h.

Member Function Documentation

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::AddArc ( StateId  s,
const Arc arc 
)
inline

Definition at line 480 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
StateId fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::AddState ( )
inline

Definition at line 466 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::AddStates ( size_t  n)
inline

Definition at line 473 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::DeleteArcs ( StateId  s,
size_t  n 
)
inline

Definition at line 497 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::DeleteArcs ( StateId  s)
inline

Definition at line 504 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::DeleteStates ( const std::vector< StateId > &  dstates)
inline

Definition at line 487 of file edit-fst.h.

template<typename Arc , typename WrappedFstT , typename MutableFstT >
void fst::internal::EditFstImpl< Arc, WrappedFstT, MutableFstT >::DeleteStates ( )
inline

Definition at line 586 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
Weight fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Final ( StateId  s) const
inline

Definition at line 409 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::InitArcIterator ( StateId  s,
ArcIteratorData< Arc > *  data 
) const
inline

Definition at line 523 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::InitMutableArcIterator ( StateId  s,
MutableArcIteratorData< Arc > *  data 
)
inline

Definition at line 528 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inline

Definition at line 517 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
size_t fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::NumArcs ( StateId  s) const
inline

Definition at line 411 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
size_t fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::NumInputEpsilons ( StateId  s) const
inline

Definition at line 413 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
size_t fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::NumOutputEpsilons ( StateId  s) const
inline

Definition at line 417 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
StateId fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::NumStates ( ) const
inline

Definition at line 421 of file edit-fst.h.

template<typename Arc , typename WrappedFstT , typename MutableFstT >
EditFstImpl< Arc, WrappedFstT, MutableFstT > * fst::internal::EditFstImpl< Arc, WrappedFstT, MutableFstT >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
static

Definition at line 598 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::ReserveArcs ( StateId  s,
size_t  n 
)
inline

Definition at line 512 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::ReserveStates ( StateId  s)
inline

Definition at line 510 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::SetFinal ( StateId  s,
Weight  weight 
)
inline

Definition at line 458 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
void fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::SetStart ( StateId  s)
inline

Definition at line 451 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
StateId fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Start ( ) const
inline

Definition at line 404 of file edit-fst.h.

template<typename A , typename WrappedFstT = ExpandedFst<A>, typename MutableFstT = VectorFst<A>>
bool fst::internal::EditFstImpl< A, WrappedFstT, MutableFstT >::Write ( std::ostream &  strm,
const FstWriteOptions opts 
) const
inline

Definition at line 427 of file edit-fst.h.


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