#include <Fireworks/Core/interface/CmsShowTaskExecutor.h>
Public Types | |
typedef boost::function0< void > | TaskFunctor |
Public Member Functions | |
void | addTask (const TaskFunctor &iTask) |
CmsShowTaskExecutor () | |
void | startDoingTasks () |
virtual | ~CmsShowTaskExecutor () |
Protected Member Functions | |
virtual void | doNextTaskImp () |
virtual bool | moreTasksAvailable () |
Private Member Functions | |
CmsShowTaskExecutor (const CmsShowTaskExecutor &) | |
const CmsShowTaskExecutor & | operator= (const CmsShowTaskExecutor &) |
Private Attributes | |
std::deque< TaskFunctor > | m_tasks |
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 31 of file CmsShowTaskExecutor.h.
typedef boost::function0<void> CmsShowTaskExecutor::TaskFunctor |
Definition at line 37 of file CmsShowTaskExecutor.h.
CmsShowTaskExecutor::CmsShowTaskExecutor | ( | ) |
Definition at line 31 of file CmsShowTaskExecutor.cc.
{ }
CmsShowTaskExecutor::~CmsShowTaskExecutor | ( | ) | [virtual] |
Definition at line 40 of file CmsShowTaskExecutor.cc.
{ }
CmsShowTaskExecutor::CmsShowTaskExecutor | ( | const CmsShowTaskExecutor & | ) | [private] |
void CmsShowTaskExecutor::addTask | ( | const TaskFunctor & | iTask | ) |
Definition at line 60 of file CmsShowTaskExecutor.cc.
References m_tasks.
Referenced by CmsShowMain::CmsShowMain(), FWFFService::FWFFService(), FWFFLooper::loadDefaultGeometryFile(), FWFFService::postBeginJob(), and FWFFLooper::startingNewLoop().
{ m_tasks.push_back(iTask); }
void CmsShowTaskExecutor::doNextTaskImp | ( | ) | [protected, virtual] |
Implements CmsShowTaskExecutorBase.
Definition at line 74 of file CmsShowTaskExecutor.cc.
{ TaskFunctor f = m_tasks.front(); m_tasks.pop_front(); f(); }
bool CmsShowTaskExecutor::moreTasksAvailable | ( | ) | [protected, virtual] |
Implements CmsShowTaskExecutorBase.
Definition at line 82 of file CmsShowTaskExecutor.cc.
References m_tasks.
{ return !m_tasks.empty(); }
const CmsShowTaskExecutor& CmsShowTaskExecutor::operator= | ( | const CmsShowTaskExecutor & | ) | [private] |
void CmsShowTaskExecutor::startDoingTasks | ( | ) | [virtual] |
Implements CmsShowTaskExecutorBase.
Definition at line 66 of file CmsShowTaskExecutor.cc.
References m_tasks, and CmsShowTaskExecutorBase::requestNextTask().
Referenced by CmsShowMain::CmsShowMain(), FWFFService::postBeginJob(), and FWFFLooper::startingNewLoop().
{ if(m_tasks.size()) { requestNextTask(); } }
std::deque<TaskFunctor> CmsShowTaskExecutor::m_tasks [private] |
Definition at line 56 of file CmsShowTaskExecutor.h.
Referenced by addTask(), doNextTaskImp(), moreTasksAvailable(), and startDoingTasks().