FST  openfst-1.7.6
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::internal::VectorFstBaseImpl< S > Class Template Reference

#include <vector-fst.h>

Inheritance diagram for fst::internal::VectorFstBaseImpl< S >:
Inheritance graph
[legend]
Collaboration diagram for fst::internal::VectorFstBaseImpl< S >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 VectorFstBaseImpl ()
 
 ~VectorFstBaseImpl () override
 
 VectorFstBaseImpl (const VectorFstBaseImpl< S > &)=delete
 
VectorFstBaseImploperator= (const VectorFstBaseImpl &)=delete
 
 VectorFstBaseImpl (VectorFstBaseImpl &&impl) noexcept
 
VectorFstBaseImploperator= (VectorFstBaseImpl &&impl) noexcept
 
StateId Start () const
 
Weight Final (StateId state) const
 
StateId NumStates () const
 
size_t NumArcs (StateId state) const
 
size_t NumInputEpsilons (StateId state) const
 
size_t NumOutputEpsilons (StateId state) const
 
void SetStart (StateId state)
 
void SetFinal (StateId state, Weight weight)
 
StateId AddState (State *state)
 
StateId AddState ()
 
void AddStates (size_t n)
 
void AddArc (StateId state, const Arc &arc)
 
void AddArc (StateId state, Arc &&arc)
 
template<class... T>
void EmplaceArc (StateId state, T &&...ctor_args)
 
void DeleteStates (const std::vector< StateId > &dstates)
 
void DeleteStates ()
 
void DeleteArcs (StateId state, size_t n)
 
void DeleteArcs (StateId state)
 
StateGetState (StateId state)
 
const StateGetState (StateId state) const
 
void SetState (StateId state, State *vstate)
 
void ReserveStates (size_t n)
 
void ReserveArcs (StateId state, size_t n)
 
void InitStateIterator (StateIteratorData< Arc > *data) const
 
void InitArcIterator (StateId state, ArcIteratorData< Arc > *data) const
 
- Public Member Functions inherited from fst::internal::FstImpl< S::Arc >
 FstImpl ()
 
 FstImpl (const FstImpl< S::Arc > &impl)
 
 FstImpl (FstImpl< S::Arc > &&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
 
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
 

Additional Inherited Members

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

Detailed Description

template<class S>
class fst::internal::VectorFstBaseImpl< S >

Definition at line 152 of file vector-fst.h.

Member Typedef Documentation

template<class S >
using fst::internal::VectorFstBaseImpl< S >::Arc = typename State::Arc

Definition at line 155 of file vector-fst.h.

template<class S >
using fst::internal::VectorFstBaseImpl< S >::State = S

Definition at line 154 of file vector-fst.h.

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

Definition at line 156 of file vector-fst.h.

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

Definition at line 157 of file vector-fst.h.

Constructor & Destructor Documentation

template<class S >
fst::internal::VectorFstBaseImpl< S >::VectorFstBaseImpl ( )
inline

Definition at line 159 of file vector-fst.h.

template<class S >
fst::internal::VectorFstBaseImpl< S >::~VectorFstBaseImpl ( )
inlineoverride

Definition at line 161 of file vector-fst.h.

template<class S >
fst::internal::VectorFstBaseImpl< S >::VectorFstBaseImpl ( const VectorFstBaseImpl< S > &  )
delete
template<class S >
fst::internal::VectorFstBaseImpl< S >::VectorFstBaseImpl ( VectorFstBaseImpl< S > &&  impl)
inlinenoexcept

Definition at line 170 of file vector-fst.h.

Member Function Documentation

template<class S >
void fst::internal::VectorFstBaseImpl< S >::AddArc ( StateId  state,
const Arc arc 
)
inline

Definition at line 225 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::AddArc ( StateId  state,
Arc &&  arc 
)
inline

Definition at line 227 of file vector-fst.h.

template<class S >
StateId fst::internal::VectorFstBaseImpl< S >::AddState ( State state)
inline

Definition at line 211 of file vector-fst.h.

template<class S >
StateId fst::internal::VectorFstBaseImpl< S >::AddState ( )
inline

Definition at line 216 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::AddStates ( size_t  n)
inline

Definition at line 218 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::DeleteArcs ( StateId  state,
size_t  n 
)
inline

Definition at line 281 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::DeleteArcs ( StateId  state)
inline

Definition at line 283 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::DeleteStates ( const std::vector< StateId > &  dstates)
inline

Definition at line 236 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::DeleteStates ( )
inline

Definition at line 273 of file vector-fst.h.

template<class S >
template<class... T>
void fst::internal::VectorFstBaseImpl< S >::EmplaceArc ( StateId  state,
T &&...  ctor_args 
)
inline

Definition at line 232 of file vector-fst.h.

template<class S >
Weight fst::internal::VectorFstBaseImpl< S >::Final ( StateId  state) const
inline

Definition at line 191 of file vector-fst.h.

template<class S >
State* fst::internal::VectorFstBaseImpl< S >::GetState ( StateId  state)
inline

Definition at line 285 of file vector-fst.h.

template<class S >
const State* fst::internal::VectorFstBaseImpl< S >::GetState ( StateId  state) const
inline

Definition at line 287 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::InitArcIterator ( StateId  state,
ArcIteratorData< Arc > *  data 
) const
inline

Definition at line 302 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::InitStateIterator ( StateIteratorData< Arc > *  data) const
inline

Definition at line 296 of file vector-fst.h.

template<class S >
size_t fst::internal::VectorFstBaseImpl< S >::NumArcs ( StateId  state) const
inline

Definition at line 195 of file vector-fst.h.

template<class S >
size_t fst::internal::VectorFstBaseImpl< S >::NumInputEpsilons ( StateId  state) const
inline

Definition at line 197 of file vector-fst.h.

template<class S >
size_t fst::internal::VectorFstBaseImpl< S >::NumOutputEpsilons ( StateId  state) const
inline

Definition at line 201 of file vector-fst.h.

template<class S >
StateId fst::internal::VectorFstBaseImpl< S >::NumStates ( ) const
inline

Definition at line 193 of file vector-fst.h.

template<class S >
VectorFstBaseImpl& fst::internal::VectorFstBaseImpl< S >::operator= ( const VectorFstBaseImpl< S > &  )
delete
template<class S >
VectorFstBaseImpl& fst::internal::VectorFstBaseImpl< S >::operator= ( VectorFstBaseImpl< S > &&  impl)
inlinenoexcept

Definition at line 178 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::ReserveArcs ( StateId  state,
size_t  n 
)
inline

Definition at line 293 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::ReserveStates ( size_t  n)
inline

Definition at line 291 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::SetFinal ( StateId  state,
Weight  weight 
)
inline

Definition at line 207 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::SetStart ( StateId  state)
inline

Definition at line 205 of file vector-fst.h.

template<class S >
void fst::internal::VectorFstBaseImpl< S >::SetState ( StateId  state,
State vstate 
)
inline

Definition at line 289 of file vector-fst.h.

template<class S >
StateId fst::internal::VectorFstBaseImpl< S >::Start ( ) const
inline

Definition at line 189 of file vector-fst.h.


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