FST  openfst-1.7.0
OpenFst Library
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
fst::internal::EquivalenceUtil< Arc > Struct Template Reference

#include <equivalent.h>

Public Types

using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using MappedId = StateId
 

Static Public Member Functions

static MappedId MapState (StateId s, int32 which_fst)
 
static StateId UnMapState (MappedId id)
 
static bool IsFinal (const Fst< Arc > &fa, MappedId s)
 
static MappedId FindSet (UnionFind< MappedId > *sets, MappedId id)
 

Static Public Attributes

static constexpr MappedId kDeadState = 0
 
static constexpr MappedId kInvalidId = -1
 

Detailed Description

template<class Arc>
struct fst::internal::EquivalenceUtil< Arc >

Definition at line 37 of file equivalent.h.

Member Typedef Documentation

template<class Arc>
using fst::internal::EquivalenceUtil< Arc >::MappedId = StateId

Definition at line 41 of file equivalent.h.

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

Definition at line 38 of file equivalent.h.

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

Definition at line 39 of file equivalent.h.

Member Function Documentation

template<class Arc>
static MappedId fst::internal::EquivalenceUtil< Arc >::FindSet ( UnionFind< MappedId > *  sets,
MappedId  id 
)
inlinestatic

Definition at line 70 of file equivalent.h.

template<class Arc>
static bool fst::internal::EquivalenceUtil< Arc >::IsFinal ( const Fst< Arc > &  fa,
MappedId  s 
)
inlinestatic

Definition at line 64 of file equivalent.h.

template<class Arc>
static MappedId fst::internal::EquivalenceUtil< Arc >::MapState ( StateId  s,
int32  which_fst 
)
inlinestatic

Definition at line 52 of file equivalent.h.

template<class Arc>
static StateId fst::internal::EquivalenceUtil< Arc >::UnMapState ( MappedId  id)
inlinestatic

Definition at line 58 of file equivalent.h.

Member Data Documentation

template<class Arc>
constexpr EquivalenceUtil< Arc >::MappedId fst::internal::EquivalenceUtil< Arc >::kDeadState = 0
static

Definition at line 44 of file equivalent.h.

template<class Arc>
constexpr EquivalenceUtil< Arc >::MappedId fst::internal::EquivalenceUtil< Arc >::kInvalidId = -1
static

Definition at line 47 of file equivalent.h.


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