FST  openfst-1.7.1
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 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 string & Type () const
 
void SetType (const 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 string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< A > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const 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 344 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 346 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 347 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 348 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 361 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 380 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 392 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 471 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 464 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 488 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 495 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 478 of file edit-fst.h.

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

Definition at line 577 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 406 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 514 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 519 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 508 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 408 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 410 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 414 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 418 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 589 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 503 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 501 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 456 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 449 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 401 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 425 of file edit-fst.h.


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