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

Convenience class that loads an fst using a key defined in the constructor and delivers it to the data object. More...

#include <task.readfst.hpp>

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

Public Member Functions

 ReadFstTask (const ucam::util::RegistryPO &rg, const std::string &fstkey)
 Constructor with RegistryPO object and fstkey to access the registry object. More...
 
bool run (Data &d)
 Method inherited from TaskInterface. Loads an fst and stores a pointer into Data structure using a key. Will check that the same file hasn't been loaded before. In this case, it just assumes the fst in memory is already valid. More...
 
 ~ReadFstTask ()
 
- 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 ReadFstTaskinit (const ucam::util::RegistryPO &rg, const std::string &fstkey)
 Static constructor. May return NULL if relevant parameters in registrypo object tell that there will be no use of this object. More...
 

Detailed Description

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

Convenience class that loads an fst using a key defined in the constructor and delivers it to the data object.

Definition at line 33 of file task.readfst.hpp.

Constructor & Destructor Documentation

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

Constructor with RegistryPO object and fstkey to access the registry object.

Definition at line 48 of file task.readfst.hpp.

template<class Data, class Arc = fst::StdArc>
ucam::fsttools::ReadFstTask< Data, Arc >::~ReadFstTask ( )
inline

Definition at line 80 of file task.readfst.hpp.

Here is the call graph for this function:

Member Function Documentation

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

Static constructor. May return NULL if relevant parameters in registrypo object tell that there will be no use of this object.

Definition at line 56 of file task.readfst.hpp.

Here is the call graph for this function:

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

Method inherited from TaskInterface. Loads an fst and stores a pointer into Data structure using a key. Will check that the same file hasn't been loaded before. In this case, it just assumes the fst in memory is already valid.

Parameters
&ddata structure in which the null filter is to be stored.
Returns
false (does not break in any case the chain of tasks)

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

Definition at line 69 of file task.readfst.hpp.


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