FST  openfst-1.8.3
OpenFst Library
Public Types | Public Member Functions | List of all members
fst::MPdtParenFilter< Filter > Class Template Reference

#include <compose.h>

Public Types

using FST1 = typename Filter::FST1
 
using FST2 = typename Filter::FST2
 
using Arc = typename Filter::Arc
 
using Label = typename Arc::Label
 
using StateId = typename Arc::StateId
 
using Weight = typename Arc::Weight
 
using Matcher1 = typename Filter::Matcher1
 
using Matcher2 = typename Filter::Matcher2
 
using StackId = StateId
 
using ParenStack = internal::MPdtStack< StackId, Label >
 
using FilterState1 = typename Filter::FilterState
 
using FilterState2 = IntegerFilterState< StackId >
 
using FilterState = PairFilterState< FilterState1, FilterState2 >
 

Public Member Functions

 MPdtParenFilter (const FST1 &fst1, const FST2 &fst2, Matcher1 *matcher1=nullptr, Matcher2 *matcher2=nullptr, const std::vector< std::pair< Label, Label >> *parens=nullptr, const std::vector< Label > *assignments=nullptr, bool expand=false, bool keep_parens=true)
 
 MPdtParenFilter (const MPdtParenFilter &filter, bool safe=false)
 
FilterState Start () const
 
void SetState (StateId s1, StateId s2, const FilterState &fs)
 
FilterState FilterArc (Arc *arc1, Arc *arc2) const
 
void FilterFinal (Weight *w1, Weight *w2) const
 
Matcher1GetMatcher1 ()
 
Matcher2GetMatcher2 ()
 
uint64_t Properties (uint64_t iprops) const
 

Detailed Description

template<class Filter>
class fst::MPdtParenFilter< Filter >

Definition at line 43 of file compose.h.

Member Typedef Documentation

template<class Filter>
using fst::MPdtParenFilter< Filter >::Arc = typename Filter::Arc

Definition at line 47 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::FilterState = PairFilterState<FilterState1, FilterState2>

Definition at line 59 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::FilterState1 = typename Filter::FilterState

Definition at line 57 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::FilterState2 = IntegerFilterState<StackId>

Definition at line 58 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::FST1 = typename Filter::FST1

Definition at line 45 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::FST2 = typename Filter::FST2

Definition at line 46 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::Label = typename Arc::Label

Definition at line 48 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::Matcher1 = typename Filter::Matcher1

Definition at line 52 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::Matcher2 = typename Filter::Matcher2

Definition at line 53 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::ParenStack = internal::MPdtStack<StackId, Label>

Definition at line 56 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::StackId = StateId

Definition at line 55 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::StateId = typename Arc::StateId

Definition at line 49 of file compose.h.

template<class Filter>
using fst::MPdtParenFilter< Filter >::Weight = typename Arc::Weight

Definition at line 50 of file compose.h.

Constructor & Destructor Documentation

template<class Filter>
fst::MPdtParenFilter< Filter >::MPdtParenFilter ( const FST1 fst1,
const FST2 fst2,
Matcher1 matcher1 = nullptr,
Matcher2 matcher2 = nullptr,
const std::vector< std::pair< Label, Label >> *  parens = nullptr,
const std::vector< Label > *  assignments = nullptr,
bool  expand = false,
bool  keep_parens = true 
)
inline

Definition at line 61 of file compose.h.

template<class Filter>
fst::MPdtParenFilter< Filter >::MPdtParenFilter ( const MPdtParenFilter< Filter > &  filter,
bool  safe = false 
)
inline

Definition at line 87 of file compose.h.

Member Function Documentation

template<class Filter>
FilterState fst::MPdtParenFilter< Filter >::FilterArc ( Arc arc1,
Arc arc2 
) const
inline

Definition at line 118 of file compose.h.

template<class Filter>
void fst::MPdtParenFilter< Filter >::FilterFinal ( Weight w1,
Weight w2 
) const
inline

Definition at line 141 of file compose.h.

template<class Filter>
Matcher1* fst::MPdtParenFilter< Filter >::GetMatcher1 ( )
inline

Definition at line 148 of file compose.h.

template<class Filter>
Matcher2* fst::MPdtParenFilter< Filter >::GetMatcher2 ( )
inline

Definition at line 150 of file compose.h.

template<class Filter>
uint64_t fst::MPdtParenFilter< Filter >::Properties ( uint64_t  iprops) const
inline

Definition at line 152 of file compose.h.

template<class Filter>
void fst::MPdtParenFilter< Filter >::SetState ( StateId  s1,
StateId  s2,
const FilterState fs 
)
inline

Definition at line 100 of file compose.h.

template<class Filter>
FilterState fst::MPdtParenFilter< Filter >::Start ( ) const
inline

Definition at line 96 of file compose.h.


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