Cambridge SMT System
ucam::fsttools::LoadWordMapTask< Data > Class Template Reference

Loads wordmap in constructor and delivers pointer to data object during run time. More...

#include <task.loadwordmap.hpp>

Inheritance diagram for ucam::fsttools::LoadWordMapTask< Data >:
Collaboration diagram for ucam::fsttools::LoadWordMapTask< Data >:

Public Member Functions

 LoadWordMapTask (const ucam::util::RegistryPO &rg, const std::string &key, bool reverse=false)
 Constructor with ucam::util::RegistryPO object. More...
 
bool run (Data &d)
 Delivers pointer to wordmap. 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 LoadWordMapTaskinit (const ucam::util::RegistryPO &rg, const std::string &key, bool reverse=false)
 Static constructor, will return NULL if there is no need for word-mapping. More...
 

Detailed Description

template<class Data>
class ucam::fsttools::LoadWordMapTask< Data >

Loads wordmap in constructor and delivers pointer to data object during run time.

Definition at line 30 of file task.loadwordmap.hpp.

Constructor & Destructor Documentation

template<class Data >
ucam::fsttools::LoadWordMapTask< Data >::LoadWordMapTask ( const ucam::util::RegistryPO rg,
const std::string &  key,
bool  reverse = false 
)
inline

Constructor with ucam::util::RegistryPO object.

Definition at line 50 of file task.loadwordmap.hpp.

Member Function Documentation

template<class Data >
static LoadWordMapTask* ucam::fsttools::LoadWordMapTask< Data >::init ( const ucam::util::RegistryPO rg,
const std::string &  key,
bool  reverse = false 
)
inlinestatic

Static constructor, will return NULL if there is no need for word-mapping.

Definition at line 41 of file task.loadwordmap.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class Data >
bool ucam::fsttools::LoadWordMapTask< Data >::run ( Data &  d)
inlinevirtual

Delivers pointer to wordmap.

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

Definition at line 59 of file task.loadwordmap.hpp.


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