FST  openfst-1.7.4
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< A > &impl)
 
FstImploperator= (FstImpl< A > &&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
 
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 EditFstImpl< Arc, WrappedFstT, MutableFstT > * Read (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 >
uint64 properties_
 

Detailed Description

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

Definition at line 348 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 350 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 351 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 352 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 365 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 384 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 396 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 482 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 468 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 475 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 499 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 506 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 489 of file edit-fst.h.

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

Definition at line 588 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 410 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 525 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 530 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 519 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 412 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 414 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 418 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 422 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 600 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 514 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 512 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 460 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 453 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 405 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 429 of file edit-fst.h.


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