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 31 of file CmsShowTaskExecutor.h.

Member Typedef Documentation

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

Definition at line 37 of file CmsShowTaskExecutor.h.

Constructor & Destructor Documentation

CmsShowTaskExecutor::CmsShowTaskExecutor ( )

Definition at line 31 of file CmsShowTaskExecutor.cc.

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

Definition at line 40 of file CmsShowTaskExecutor.cc.

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

Member Function Documentation

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

Implements CmsShowTaskExecutorBase.

Definition at line 74 of file CmsShowTaskExecutor.cc.

References f, and m_tasks.

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

Implements CmsShowTaskExecutorBase.

Definition at line 82 of file CmsShowTaskExecutor.cc.

References m_tasks.

83 {
84  return !m_tasks.empty();
85 }
std::deque< TaskFunctor > m_tasks
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().

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

Member Data Documentation

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

Definition at line 56 of file CmsShowTaskExecutor.h.

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