Public Types | Public Member Functions

fst::UnionFst< A > Class Template Reference

#include <fst/union.h>

Inherits fst::RationalFst< A >.

Collaboration diagram for fst::UnionFst< A >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef A Arc
typedef A::Weight Weight
typedef A::StateId StateId

Public Member Functions

 UnionFst (const Fst< A > &fst1, const Fst< A > &fst2)
 UnionFst (const Fst< A > &fst1, const Fst< A > &fst2, const UnionFstOptions &opts)
 UnionFst (const UnionFst< A > &fst, bool safe=false)
 See Fst<>::Copy() for doc.
virtual UnionFst< A > * Copy (bool safe=false) const
 Get a copy of this UnionFst. See Fst<>::Copy() for further doc.

Detailed Description

template<class A>
class fst::UnionFst< A >

Computes the union (sum) of two FSTs. This version is a delayed Fst. If A transduces string x to y with weight a and B transduces string w to v with weight b, then their union transduces x to y with weight a and w to v with weight b.

Complexity:

Definition at line 112 of file union.h.


Member Typedef Documentation

template<class A>
typedef A fst::UnionFst< A >::Arc

Reimplemented from fst::RationalFst< A >.

Definition at line 116 of file union.h.

template<class A>
typedef A::StateId fst::UnionFst< A >::StateId

Reimplemented from fst::RationalFst< A >.

Definition at line 118 of file union.h.

template<class A>
typedef A::Weight fst::UnionFst< A >::Weight

Reimplemented from fst::ImplToFst< RationalFstImpl< A > >.

Definition at line 117 of file union.h.


Constructor & Destructor Documentation

template<class A>
fst::UnionFst< A >::UnionFst ( const Fst< A > &  fst1,
const Fst< A > &  fst2 
) [inline]

Definition at line 120 of file union.h.

template<class A>
fst::UnionFst< A >::UnionFst ( const Fst< A > &  fst1,
const Fst< A > &  fst2,
const UnionFstOptions opts 
) [inline]

Definition at line 124 of file union.h.

template<class A>
fst::UnionFst< A >::UnionFst ( const UnionFst< A > &  fst,
bool  safe = false 
) [inline]

See Fst<>::Copy() for doc.

Definition at line 130 of file union.h.


Member Function Documentation

template<class A>
virtual UnionFst<A>* fst::UnionFst< A >::Copy ( bool  safe = false  )  const [inline, virtual]

Get a copy of this UnionFst. See Fst<>::Copy() for further doc.

Implements fst::Fst< typename RationalFstImpl< A >::Arc >.

Definition at line 134 of file union.h.


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