Cambridge SMT System
ucam::fsttools::TuneWpWriteFstTask< Data, Arc > Class Template Reference

Convenience class that inherits Taskinterface behaviour and writes an fst to [file] using a key defined in the constructor. The key is used to access the registry object (i.e. actual program option telling where to write the fst) and a pointer in the data object, telling where to read the fst from. More...

#include <task.tunewpwrite.hpp>

Inheritance diagram for ucam::fsttools::TuneWpWriteFstTask< Data, Arc >:
Collaboration diagram for ucam::fsttools::TuneWpWriteFstTask< Data, Arc >:

Public Member Functions

 TuneWpWriteFstTask (const ucam::util::RegistryPO &rg, const std::string &fstkey, const std::string &readfstkey="")
 
bool run (Data &d)
 Method inherited from TaskInterface. Stores fst to [file]. The fst is accessed via data object using access key fstkey_. PDAs not supported. More...
 
- Public Member Functions inherited from ucam::util::TaskInterface< Data >
 TaskInterface ()
 Constructor. More...
 
virtual ~TaskInterface ()
 
bool chainrun (Data &d)
 Implements chain of responsability. Calls run method and, if there is another task, call its run method too. More...
 
bool operator() (Data &d)
 
TaskInterfaceappendTask (TaskInterface *t)
 Appends a task class. If there is no task, append here, otherwise delegate in next task. More...
 
TaskInterfaceoperator() (TaskInterface *t)
 
TaskInterfacegetTask ()
 Return appended task. More...
 
TaskInterfacenext ()
 

Static Public Member Functions

static TuneWpWriteFstTaskinit (const ucam::util::RegistryPO &rg, const std::string &fstkey, const std::string &readfstkey="")
 

Detailed Description

template<class Data, class Arc = fst::StdArc>
class ucam::fsttools::TuneWpWriteFstTask< Data, Arc >

Convenience class that inherits Taskinterface behaviour and writes an fst to [file] using a key defined in the constructor. The key is used to access the registry object (i.e. actual program option telling where to write the fst) and a pointer in the data object, telling where to read the fst from.

Definition at line 36 of file task.tunewpwrite.hpp.

Constructor & Destructor Documentation

template<class Data , class Arc = fst::StdArc>
ucam::fsttools::TuneWpWriteFstTask< Data, Arc >::TuneWpWriteFstTask ( const ucam::util::RegistryPO rg,
const std::string &  fstkey,
const std::string &  readfstkey = "" 
)
inline

Definition at line 51 of file task.tunewpwrite.hpp.

Member Function Documentation

template<class Data , class Arc = fst::StdArc>
static TuneWpWriteFstTask* ucam::fsttools::TuneWpWriteFstTask< Data, Arc >::init ( const ucam::util::RegistryPO rg,
const std::string &  fstkey,
const std::string &  readfstkey = "" 
)
inlinestatic

Definition at line 67 of file task.tunewpwrite.hpp.

Here is the call graph for this function:

template<class Data , class Arc = fst::StdArc>
bool ucam::fsttools::TuneWpWriteFstTask< Data, Arc >::run ( Data &  d)
inlinevirtual

Method inherited from TaskInterface. Stores fst to [file]. The fst is accessed via data object using access key fstkey_. PDAs not supported.

Parameters
&ddata object
Returns
false (does not break in any case the chain of tasks)

Implements ucam::util::TaskInterface< Data >.

Definition at line 84 of file task.tunewpwrite.hpp.

Here is the call graph for this function:


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