Public Types | Public Member Functions

fst::MatchComposeFilter< M1, M2 > Class Template Reference

#include <fst/compose-filter.h>

Collaboration diagram for fst::MatchComposeFilter< M1, M2 >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef M1::FST FST1
typedef M2::FST FST2
typedef FST1::Arc Arc
typedef CharFilterState FilterState
typedef M1 Matcher1
typedef M2 Matcher2
typedef Arc::StateId StateId
typedef Arc::Label Label
typedef Arc::Weight Weight

Public Member Functions

 MatchComposeFilter (const FST1 &fst1, const FST2 &fst2, M1 *matcher1=0, M2 *matcher2=0)
 MatchComposeFilter (const MatchComposeFilter< M1, M2 > &filter, bool safe=false)
 ~MatchComposeFilter ()
FilterState Start () const
void SetState (StateId s1, StateId s2, const FilterState &f)
FilterState FilterArc (Arc *arc1, Arc *arc2) const
void FilterFinal (Weight *, Weight *) const
Matcher1GetMatcher1 ()
 Return resp matchers. Ownership stays with filter.
Matcher2GetMatcher2 ()
uint64 Properties (uint64 props) const

Detailed Description

template<class M1, class M2>
class fst::MatchComposeFilter< M1, M2 >

This filter requires epsilons on FST1 to be matched with epsilons on FST2 whenever possible.

Definition at line 377 of file compose-filter.h.


Member Typedef Documentation

template<class M1, class M2>
typedef FST1::Arc fst::MatchComposeFilter< M1, M2 >::Arc

Definition at line 381 of file compose-filter.h.

template<class M1, class M2>
typedef CharFilterState fst::MatchComposeFilter< M1, M2 >::FilterState

Definition at line 382 of file compose-filter.h.

template<class M1, class M2>
typedef M1::FST fst::MatchComposeFilter< M1, M2 >::FST1

Definition at line 379 of file compose-filter.h.

template<class M1, class M2>
typedef M2::FST fst::MatchComposeFilter< M1, M2 >::FST2

Definition at line 380 of file compose-filter.h.

template<class M1, class M2>
typedef Arc::Label fst::MatchComposeFilter< M1, M2 >::Label

Definition at line 387 of file compose-filter.h.

template<class M1, class M2>
typedef M1 fst::MatchComposeFilter< M1, M2 >::Matcher1

Definition at line 383 of file compose-filter.h.

template<class M1, class M2>
typedef M2 fst::MatchComposeFilter< M1, M2 >::Matcher2

Definition at line 384 of file compose-filter.h.

template<class M1, class M2>
typedef Arc::StateId fst::MatchComposeFilter< M1, M2 >::StateId

Definition at line 386 of file compose-filter.h.

template<class M1, class M2>
typedef Arc::Weight fst::MatchComposeFilter< M1, M2 >::Weight

Definition at line 388 of file compose-filter.h.


Constructor & Destructor Documentation

template<class M1, class M2>
fst::MatchComposeFilter< M1, M2 >::MatchComposeFilter ( const FST1 fst1,
const FST2 fst2,
M1 *  matcher1 = 0,
M2 *  matcher2 = 0 
) [inline]

Definition at line 390 of file compose-filter.h.

template<class M1, class M2>
fst::MatchComposeFilter< M1, M2 >::MatchComposeFilter ( const MatchComposeFilter< M1, M2 > &  filter,
bool  safe = false 
) [inline]

Definition at line 400 of file compose-filter.h.

template<class M1, class M2>
fst::MatchComposeFilter< M1, M2 >::~MatchComposeFilter (  )  [inline]

Definition at line 410 of file compose-filter.h.


Member Function Documentation

template<class M1, class M2>
FilterState fst::MatchComposeFilter< M1, M2 >::FilterArc ( Arc arc1,
Arc arc2 
) const [inline]

Definition at line 435 of file compose-filter.h.

template<class M1, class M2>
void fst::MatchComposeFilter< M1, M2 >::FilterFinal ( Weight ,
Weight  
) const [inline]

Definition at line 452 of file compose-filter.h.

template<class M1, class M2>
Matcher1* fst::MatchComposeFilter< M1, M2 >::GetMatcher1 (  )  [inline]

Return resp matchers. Ownership stays with filter.

Definition at line 455 of file compose-filter.h.

template<class M1, class M2>
Matcher2* fst::MatchComposeFilter< M1, M2 >::GetMatcher2 (  )  [inline]

Definition at line 456 of file compose-filter.h.

template<class M1, class M2>
uint64 fst::MatchComposeFilter< M1, M2 >::Properties ( uint64  props  )  const [inline]

Definition at line 458 of file compose-filter.h.

template<class M1, class M2>
void fst::MatchComposeFilter< M1, M2 >::SetState ( StateId  s1,
StateId  s2,
const FilterState f 
) [inline]

Definition at line 417 of file compose-filter.h.

template<class M1, class M2>
FilterState fst::MatchComposeFilter< M1, M2 >::Start (  )  const [inline]

Definition at line 415 of file compose-filter.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines