FST  openfst-1.7.3
OpenFst Library
Public Types | Public Member Functions | Static Public Member Functions | List of all members
fst::VectorState< A, M > Class Template Reference

#include <fst-decl.h>

Public Types

using Arc = A
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using ArcAllocator = M
 
using StateAllocator = typename ArcAllocator::template rebind< VectorState< Arc, M >>::other
 

Public Member Functions

 VectorState (const ArcAllocator &alloc)
 
 VectorState (const VectorState< A, M > &state, const ArcAllocator &alloc)
 
void Reset ()
 
Weight Final () const
 
size_t NumInputEpsilons () const
 
size_t NumOutputEpsilons () const
 
size_t NumArcs () const
 
const ArcGetArc (size_t n) const
 
const ArcArcs () const
 
ArcMutableArcs ()
 
void ReserveArcs (size_t n)
 
void SetFinal (Weight weight)
 
void SetNumInputEpsilons (size_t n)
 
void SetNumOutputEpsilons (size_t n)
 
void AddArc (const Arc &arc)
 
void AddArc (Arc &&arc)
 
template<class... T>
void EmplaceArc (T &&...ctor_args)
 
void SetArc (const Arc &arc, size_t n)
 
void DeleteArcs ()
 
void DeleteArcs (size_t n)
 
void * operator new (size_t size, StateAllocator *alloc)
 

Static Public Member Functions

static void Destroy (VectorState< A, M > *state, StateAllocator *alloc)
 

Detailed Description

template<class A, class M>
class fst::VectorState< A, M >

Definition at line 85 of file fst-decl.h.

Member Typedef Documentation

template<class A , class M >
using fst::VectorState< A, M >::Arc = A

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

template<class A , class M >
using fst::VectorState< A, M >::ArcAllocator = M

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

template<class A , class M >
using fst::VectorState< A, M >::StateAllocator = typename ArcAllocator::template rebind<VectorState<Arc, M>>::other

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

template<class A , class M >
using fst::VectorState< A, M >::StateId = typename Arc::StateId

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

template<class A , class M >
using fst::VectorState< A, M >::Weight = typename Arc::Weight

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

Constructor & Destructor Documentation

template<class A , class M >
fst::VectorState< A, M >::VectorState ( const ArcAllocator alloc)
inlineexplicit

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

template<class A , class M >
fst::VectorState< A, M >::VectorState ( const VectorState< A, M > &  state,
const ArcAllocator alloc 
)
inline

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

Member Function Documentation

template<class A , class M >
void fst::VectorState< A, M >::AddArc ( const Arc arc)
inline

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

template<class A , class M >
void fst::VectorState< A, M >::AddArc ( Arc &&  arc)
inline

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

template<class A , class M >
const Arc* fst::VectorState< A, M >::Arcs ( ) const
inline

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

template<class A , class M >
void fst::VectorState< A, M >::DeleteArcs ( )
inline

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

template<class A , class M >
void fst::VectorState< A, M >::DeleteArcs ( size_t  n)
inline

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

template<class A , class M >
static void fst::VectorState< A, M >::Destroy ( VectorState< A, M > *  state,
StateAllocator alloc 
)
inlinestatic

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

template<class A , class M >
template<class... T>
void fst::VectorState< A, M >::EmplaceArc ( T &&...  ctor_args)
inline

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

template<class A , class M >
Weight fst::VectorState< A, M >::Final ( ) const
inline

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

template<class A , class M >
const Arc& fst::VectorState< A, M >::GetArc ( size_t  n) const
inline

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

template<class A , class M >
Arc* fst::VectorState< A, M >::MutableArcs ( )
inline

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

template<class A , class M >
size_t fst::VectorState< A, M >::NumArcs ( ) const
inline

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

template<class A , class M >
size_t fst::VectorState< A, M >::NumInputEpsilons ( ) const
inline

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

template<class A , class M >
size_t fst::VectorState< A, M >::NumOutputEpsilons ( ) const
inline

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

template<class A , class M >
void* fst::VectorState< A, M >::operator new ( size_t  size,
StateAllocator alloc 
)
inline

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

template<class A , class M >
void fst::VectorState< A, M >::ReserveArcs ( size_t  n)
inline

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

template<class A , class M >
void fst::VectorState< A, M >::Reset ( )
inline

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

template<class A , class M >
void fst::VectorState< A, M >::SetArc ( const Arc arc,
size_t  n 
)
inline

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

template<class A , class M >
void fst::VectorState< A, M >::SetFinal ( Weight  weight)
inline

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

template<class A , class M >
void fst::VectorState< A, M >::SetNumInputEpsilons ( size_t  n)
inline

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

template<class A , class M >
void fst::VectorState< A, M >::SetNumOutputEpsilons ( size_t  n)
inline

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


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