test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
CmsShowTaskExecutor Class Reference

#include <Fireworks/Core/interface/CmsShowTaskExecutor.h>

Inheritance diagram for CmsShowTaskExecutor:
CmsShowTaskExecutorBase

Public Types

typedef boost::function0< void > TaskFunctor
 

Public Member Functions

void addTask (const TaskFunctor &iTask)
 
 CmsShowTaskExecutor ()
 
void startDoingTasks ()
 
virtual ~CmsShowTaskExecutor ()
 
- Public Member Functions inherited from CmsShowTaskExecutorBase
 CmsShowTaskExecutorBase ()
 
void doNextTask ()
 
void requestNextTask ()
 
virtual ~CmsShowTaskExecutorBase ()
 

Protected Member Functions

virtual void doNextTaskImp ()
 
virtual bool moreTasksAvailable ()
 

Private Member Functions

 CmsShowTaskExecutor (const CmsShowTaskExecutor &)
 
const CmsShowTaskExecutoroperator= (const CmsShowTaskExecutor &)
 

Private Attributes

std::deque< TaskFunctorm_tasks
 

Additional Inherited Members

- Public Attributes inherited from CmsShowTaskExecutorBase
sigc::signal< void > tasksCompleted_
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 30 of file CmsShowTaskExecutor.h.

Member Typedef Documentation

typedef boost::function0<void> CmsShowTaskExecutor::TaskFunctor

Definition at line 36 of file CmsShowTaskExecutor.h.

Constructor & Destructor Documentation

CmsShowTaskExecutor::CmsShowTaskExecutor ( )

Definition at line 30 of file CmsShowTaskExecutor.cc.

31 {
32 }
CmsShowTaskExecutor::~CmsShowTaskExecutor ( )
virtual

Definition at line 39 of file CmsShowTaskExecutor.cc.

40 {
41 }
CmsShowTaskExecutor::CmsShowTaskExecutor ( const CmsShowTaskExecutor )
private

Member Function Documentation

void CmsShowTaskExecutor::addTask ( const TaskFunctor iTask)
void CmsShowTaskExecutor::doNextTaskImp ( )
protectedvirtual

Implements CmsShowTaskExecutorBase.

Definition at line 73 of file CmsShowTaskExecutor.cc.

References f, and m_tasks.

74 {
75  TaskFunctor f = m_tasks.front();
76  m_tasks.pop_front();
77  f();
78 }
std::deque< TaskFunctor > m_tasks
double f[11][100]
boost::function0< void > TaskFunctor
bool CmsShowTaskExecutor::moreTasksAvailable ( )
protectedvirtual

Implements CmsShowTaskExecutorBase.

Definition at line 81 of file CmsShowTaskExecutor.cc.

References m_tasks.

82 {
83  return !m_tasks.empty();
84 }
std::deque< TaskFunctor > m_tasks
const CmsShowTaskExecutor& CmsShowTaskExecutor::operator= ( const CmsShowTaskExecutor )
private
void CmsShowTaskExecutor::startDoingTasks ( )
virtual

Implements CmsShowTaskExecutorBase.

Definition at line 65 of file CmsShowTaskExecutor.cc.

References m_tasks, and CmsShowTaskExecutorBase::requestNextTask().

Referenced by CmsShowMain::CmsShowMain(), FWFFService::postBeginJob(), and FWFFLooper::startingNewLoop().

66 {
67  if(m_tasks.size()) {
69  }
70 }
std::deque< TaskFunctor > m_tasks

Member Data Documentation

std::deque<TaskFunctor> CmsShowTaskExecutor::m_tasks
private

Definition at line 55 of file CmsShowTaskExecutor.h.

Referenced by addTask(), doNextTaskImp(), moreTasksAvailable(), and startDoingTasks().