Main Page
Namespaces
Classes
Package Documentation
Fireworks
Core
src
CmsShowTaskExecutor.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: Core
4
// Class : CmsShowTaskExecutor
5
//
6
// Implementation:
7
// <Notes on implementation>
8
//
9
// Original Author: Chris Jones
10
// Created: Fri Jul 11 12:09:47 EDT 2008
11
//
12
13
// system include files
14
15
// user include files
16
#include "
Fireworks/Core/src/CmsShowTaskExecutor.h
"
17
18
19
//
20
// constants, enums and typedefs
21
//
22
23
//
24
// static data member definitions
25
//
26
27
//
28
// constructors and destructor
29
//
30
CmsShowTaskExecutor::CmsShowTaskExecutor
()
31
{
32
}
33
34
// CmsShowTaskExecutor::CmsShowTaskExecutor(const CmsShowTaskExecutor& rhs)
35
// {
36
// // do actual copying here;
37
// }
38
39
CmsShowTaskExecutor::~CmsShowTaskExecutor
()
40
{
41
}
42
43
//
44
// assignment operators
45
//
46
// const CmsShowTaskExecutor& CmsShowTaskExecutor::operator=(const CmsShowTaskExecutor& rhs)
47
// {
48
// //An exception safe implementation is
49
// CmsShowTaskExecutor temp(rhs);
50
// swap(rhs);
51
//
52
// return *this;
53
// }
54
55
//
56
// member functions
57
//
58
void
59
CmsShowTaskExecutor::addTask
(
const
TaskFunctor
& iTask)
60
{
61
m_tasks
.push_back(iTask);
62
}
63
64
void
65
CmsShowTaskExecutor::startDoingTasks
()
66
{
67
if
(!
m_tasks
.empty()) {
68
requestNextTask
();
69
}
70
}
71
72
void
73
CmsShowTaskExecutor::doNextTaskImp
()
74
{
75
TaskFunctor
f
=
m_tasks
.front();
76
m_tasks
.pop_front();
77
f
();
78
}
79
80
bool
81
CmsShowTaskExecutor::moreTasksAvailable
()
82
{
83
return
!
m_tasks
.empty();
84
}
85
86
//
87
// const member functions
88
//
89
90
//
91
// static member functions
92
//
CmsShowTaskExecutor::CmsShowTaskExecutor
CmsShowTaskExecutor()
Definition:
CmsShowTaskExecutor.cc:30
CmsShowTaskExecutor::startDoingTasks
void startDoingTasks() override
Definition:
CmsShowTaskExecutor.cc:65
CmsShowTaskExecutor.h
CmsShowTaskExecutorBase::requestNextTask
void requestNextTask()
Definition:
CmsShowTaskExecutorBase.cc:65
CmsShowTaskExecutor::doNextTaskImp
void doNextTaskImp() override
Definition:
CmsShowTaskExecutor.cc:73
CmsShowTaskExecutor::~CmsShowTaskExecutor
~CmsShowTaskExecutor() override
Definition:
CmsShowTaskExecutor.cc:39
CmsShowTaskExecutor::m_tasks
std::deque< TaskFunctor > m_tasks
Definition:
CmsShowTaskExecutor.h:55
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
CmsShowTaskExecutor::moreTasksAvailable
bool moreTasksAvailable() override
Definition:
CmsShowTaskExecutor.cc:81
CmsShowTaskExecutor::TaskFunctor
boost::function0< void > TaskFunctor
Definition:
CmsShowTaskExecutor.h:36
CmsShowTaskExecutor::addTask
void addTask(const TaskFunctor &iTask)
Definition:
CmsShowTaskExecutor.cc:59
Generated for CMSSW Reference Manual by
1.8.11