FST  openfst-1.7.2
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
fst::internal::VectorFstImpl< S > Class Template Reference

#include <vector-fst.h>

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

Public Types

using State = S
 
using Arc = typename State::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using BaseImpl = VectorFstBaseImpl< S >
 
- Public Types inherited from fst::internal::VectorFstBaseImpl< S >
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

 VectorFstImpl ()
 
 VectorFstImpl (const Fst< Arc > &fst)
 
void SetStart (StateId state)
 
void SetFinal (StateId state, Weight weight)
 
StateId AddState ()
 
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)
 
- Public Member Functions inherited from fst::internal::VectorFstBaseImpl< S >
 VectorFstBaseImpl ()
 
 ~VectorFstBaseImpl () override
 
 VectorFstBaseImpl (const VectorFstBaseImpl< S > &)=delete
 
VectorFstBaseImpl< S > & operator= (const VectorFstBaseImpl< S > &)=delete
 
 VectorFstBaseImpl (VectorFstBaseImpl< S > &&impl) noexcept
 
VectorFstBaseImpl< S > & operator= (VectorFstBaseImpl< S > &&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 ()
 
StateId AddState (State *state)
 
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 (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)
 
 FstImpl (FstImpl< S::Arc > &&impl) noexcept
 
virtual ~FstImpl ()
 
FstImploperator= (const FstImpl< S::Arc > &impl)
 
FstImploperator= (FstImpl< S::Arc > &&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 VectorFstImpl< S > * Read (std::istream &strm, const FstReadOptions &opts)
 
- 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)
 

Static Public Attributes

static constexpr uint64 kStaticProperties = kExpanded | kMutable
 

Friends

class MutableArcIterator< VectorFst< Arc, S > >
 

Additional Inherited Members

- Protected Attributes inherited from fst::internal::FstImpl< S::Arc >
uint64 properties_
 

Detailed Description

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

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

Member Typedef Documentation

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

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

template<class S>
using fst::internal::VectorFstImpl< S >::BaseImpl = VectorFstBaseImpl<S>

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

template<class S>
using fst::internal::VectorFstImpl< S >::Label = typename Arc::Label

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

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

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

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

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

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

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

Constructor & Destructor Documentation

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

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

template<class S >
fst::internal::VectorFstImpl< S >::VectorFstImpl ( const Fst< Arc > &  fst)
explicit

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

template<class S >
VectorFstImpl< S > * fst::internal::VectorFstImpl< S >::Read ( std::istream &  strm,
const FstReadOptions opts 
)
static

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

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

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

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

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

Friends And Related Function Documentation

template<class S>
friend class MutableArcIterator< VectorFst< Arc, S > >
friend

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

Member Data Documentation

template<class S>
constexpr uint64 fst::internal::VectorFstImpl< S >::kStaticProperties = kExpanded | kMutable
static

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


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