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

Task that reads stats from data object and writes them to a [file]. More...

#include <task.stats.hpp>

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

Public Member Functions

 SpeedStatsTask (const ucam::util::RegistryPO &rg)
 Constructor with RegistryPO object. More...
 
bool run (Data &d)
 General run method from TaskInterface. Dumps all stats to a file. 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 ()
 

Detailed Description

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

Task that reads stats from data object and writes them to a [file].

Definition at line 29 of file task.stats.hpp.

Constructor & Destructor Documentation

template<class Data>
ucam::fsttools::SpeedStatsTask< Data >::SpeedStatsTask ( const ucam::util::RegistryPO rg)
inline

Constructor with RegistryPO object.

Definition at line 42 of file task.stats.hpp.

Member Function Documentation

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

General run method from TaskInterface. Dumps all stats to a file.

Parameters
&dgeneral Data structure containing a pointer to StatsData structure

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

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

Here is the call graph for this function:

Here is the caller graph for this function:


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