Cambridge SMT System
fst::MultiUnionRational< Arc > Class Template Reference

This class creates the Union of an arbitrarily large number of fsts. This implementation was suggested by Cyril (13-08-2009), as a more efficient alternative to using consecutive Union() over two VectorFsts. The reason being that this generates internally a list of ReplaceFsts. More...

#include <fstutils.multiunion.hpp>

Public Member Functions

 MultiUnionRational ()
 Empty Constructor. More...
 
void Add (boost::shared_ptr< Fst< Arc > const > fst)
 Adds an fst to the list. More...
 
void Add (Fst< Arc > const *fst)
 Also adds an fst, but takes a pointer as input. Note that we are using internally a list of shared_ptr that take ownership of these pointers. More...
 
VectorFst< Arc > * operator() ()
 

Detailed Description

template<class Arc>
class fst::MultiUnionRational< Arc >

This class creates the Union of an arbitrarily large number of fsts. This implementation was suggested by Cyril (13-08-2009), as a more efficient alternative to using consecutive Union() over two VectorFsts. The reason being that this generates internally a list of ReplaceFsts.

Definition at line 32 of file fstutils.multiunion.hpp.

Constructor & Destructor Documentation

template<class Arc>
fst::MultiUnionRational< Arc >::MultiUnionRational ( )
inline

Empty Constructor.

Definition at line 41 of file fstutils.multiunion.hpp.

Member Function Documentation

template<class Arc>
void fst::MultiUnionRational< Arc >::Add ( boost::shared_ptr< Fst< Arc > const >  fst)
inline

Adds an fst to the list.

Parameters
fstPointer to another fst to be unioned with previously stored ones.

Definition at line 47 of file fstutils.multiunion.hpp.

Here is the caller graph for this function:

template<class Arc>
void fst::MultiUnionRational< Arc >::Add ( Fst< Arc > const *  fst)
inline

Also adds an fst, but takes a pointer as input. Note that we are using internally a list of shared_ptr that take ownership of these pointers.

Definition at line 52 of file fstutils.multiunion.hpp.

template<class Arc>
VectorFst<Arc>* fst::MultiUnionRational< Arc >::operator() ( )
inline

Definition at line 60 of file fstutils.multiunion.hpp.


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