FST  openfst-1.8.3
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 ()=default
 
 FstImpl (const FstImpl< A > &impl)
 
 FstImpl (FstImpl< A > &&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
 
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, std::string_view type, uint64_t properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, std::string_view type, uint64_t properties, FstHeader *hdr, size_t header_offset)
 

Additional Inherited Members

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

Detailed Description

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

Definition at line 372 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 374 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 375 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 376 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 389 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 408 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 420 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 505 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 491 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 498 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 522 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 529 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 512 of file edit-fst.h.

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

Definition at line 602 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 434 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 548 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 553 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 542 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 436 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 438 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 442 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 446 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 614 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 537 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 535 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 483 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 476 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 429 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 452 of file edit-fst.h.


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