FST  openfst-1.8.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 std::allocator_traits< ArcAllocator >::template rebind_alloc< VectorState< Arc, M >>
 

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 115 of file fst-decl.h.

Member Typedef Documentation

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

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

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

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

template<class A , class M >
using fst::VectorState< A, M >::StateAllocator = typename std::allocator_traits< ArcAllocator>::template rebind_alloc<VectorState<Arc, M>>

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

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

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

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

Definition at line 63 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 69 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 71 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 106 of file vector-fst.h.

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

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

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

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

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

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

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

Definition at line 135 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 149 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 117 of file vector-fst.h.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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