Cambridge SMT System
|
Templated (hybrid) Interface for Task classes. More...
#include <taskinterface.hpp>
Public Member Functions | |
TaskInterface () | |
Constructor. More... | |
virtual bool | run (Data &d)=0 |
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) |
TaskInterface & | appendTask (TaskInterface *t) |
Appends a task class. If there is no task, append here, otherwise delegate in next task. More... | |
TaskInterface & | operator() (TaskInterface *t) |
TaskInterface * | getTask () |
Return appended task. More... | |
TaskInterface * | next () |
Templated (hybrid) Interface for Task classes.
Definition at line 37 of file taskinterface.hpp.
|
inline |
Constructor.
Definition at line 44 of file taskinterface.hpp.
|
inlinevirtual |
Definition at line 47 of file taskinterface.hpp.
|
inline |
Appends a task class. If there is no task, append here, otherwise delegate in next task.
t | Task to append. |
Definition at line 78 of file taskinterface.hpp.
|
inline |
Implements chain of responsability. Calls run method and, if there is another task, call its run method too.
d | Pass through |
Definition at line 58 of file taskinterface.hpp.
|
inline |
Return appended task.
Definition at line 97 of file taskinterface.hpp.
|
inline |
Definition at line 100 of file taskinterface.hpp.
|
inline |
Definition at line 65 of file taskinterface.hpp.
|
inline |
Definition at line 85 of file taskinterface.hpp.
|
pure virtual |
Implemented in ucam::fsttools::MultiThreadedApplyLanguageModelTask< DataT, ArcT >, ucam::hifst::MultiThreadedHifstTask< DataT, ArcT >, ucam::hifst::LoadSparseWeightsTask< DataT >, ucam::hifst::ReferenceFilterTask< Data, Arc >, ucam::fsttools::LoadLanguageModelTask< Data >, ucam::hifst::HiFSTTask< Data, Arc, OptimizeT, CYKdataT, MultiUnionT, ExpandedNumStatesRTNT, ReplaceFstByArcT, RTNT >, ucam::fsttools::ApplyBiLMTask< Data, Arc >, googletesting::PostEditTask< Data >, ucam::fsttools::SingleThreadedApplyLanguageModelTask< DataT, ArcT >, googletesting::Task4< Data >, ucam::hifst::MultiThreadedCreateSentenceSpecificGrammarTask< Data >, ucam::lmbr::MultiThreadedLmbrTask< Data >, ucam::lmbr::LmbrTask< Data >, ucam::hifst::GrammarTask< Data >, ucam::hifst::GrammarTask< uh::HifstTaskData<> >, ucam::fsttools::DisambigTask< Data, Arc >, ucam::hifst::DumpNbestFeaturesTask< Data, Arc >, ucam::fsttools::ApplyLanguageModelTask< Data, Arc >, ucam::hifst::SingleThreadedHifstTask< DataT, ArcT >, googletesting::Task2b< Data >, ucam::fsttools::LoadUnimapTask< Data, Arc >, ucam::hifst::LoadSparseWeightFlowerLatticeTask< DataT >, ucam::hifst::PostProTask< Data, Arc >, ucam::hifst::SparseWeightVectorLatticesTask< Data, Arc >, ucam::fsttools::TuneWpWriteFstTask< Data, Arc >, ucam::hifst::PreProTask< Data >, ucam::fsttools::OptimizeFstTask< Data, Arc >, ucam::hifst::CYKParserTask< Data >, ucam::hifst::CYKParserTask< uh::HifstTaskData<> >, ucam::fsttools::WriteFstTask< Data, Arc >, ucam::hifst::SentenceSpecificGrammarTask< Data >, ucam::hifst::SentenceSpecificGrammarTask< uh::HifstTaskData<> >, ucam::fsttools::ReadFstTask< Data, Arc >, ucam::hifst::SingleThreadedCreateSentenceSpecificGrammarTask< Data >, googletesting::Task3< Data >, ucam::hifst::PatternsToInstancesTask< Data >, ucam::hifst::HifstStatsTask< Data >, ucam::fsttools::LoadWordMapTask< Data >, googletesting::Task2< Data >, ucam::lmbr::SingleThreadedLmbrTask< Data >, ucam::fsttools::SpeedStatsTask< Data >, and googletesting::Task1< Data >.