FST  openfst-1.6.1
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
 
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 ()
 
StateId AddState (State *state)
 
void AddArc (StateId state, const Arc &arc)
 
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 (StateId 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)
 
virtual ~FstImpl ()
 
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
 

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 string &type, uint64 properties, FstHeader *hdr)
 
static bool UpdateFstHeader (const Fst< S::Arc > &fst, std::ostream &strm, const FstWriteOptions &opts, int version, const 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 130 of file vector-fst.h.

Member Typedef Documentation

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

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

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

Definition at line 139 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 177 of file vector-fst.h.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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