CMS 3D CMS Logo

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

List of all members.

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 CmsShowTaskExecutoroperator= (const CmsShowTaskExecutor &)

Private Attributes

std::deque< TaskFunctorm_tasks

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.

{
}
CmsShowTaskExecutor::~CmsShowTaskExecutor ( ) [virtual]

Definition at line 40 of file CmsShowTaskExecutor.cc.

{
}
CmsShowTaskExecutor::CmsShowTaskExecutor ( const CmsShowTaskExecutor ) [private]

Member Function Documentation

void CmsShowTaskExecutor::addTask ( const TaskFunctor iTask)
void CmsShowTaskExecutor::doNextTaskImp ( ) [protected, virtual]

Implements CmsShowTaskExecutorBase.

Definition at line 74 of file CmsShowTaskExecutor.cc.

References f, and m_tasks.

{
   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]

Member Data Documentation

Definition at line 56 of file CmsShowTaskExecutor.h.

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