src
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/interface/CmsShowTaskExecutor.h
"
17
18
//
19
// constants, enums and typedefs
20
//
21
22
//
23
// static data member definitions
24
//
25
26
//
27
// constructors and destructor
28
//
29
CmsShowTaskExecutor::CmsShowTaskExecutor
() {}
30
31
// CmsShowTaskExecutor::CmsShowTaskExecutor(const CmsShowTaskExecutor& rhs)
32
// {
33
// // do actual copying here;
34
// }
35
36
CmsShowTaskExecutor::~CmsShowTaskExecutor
() {}
37
38
//
39
// assignment operators
40
//
41
// const CmsShowTaskExecutor& CmsShowTaskExecutor::operator=(const CmsShowTaskExecutor& rhs)
42
// {
43
// //An exception safe implementation is
44
// CmsShowTaskExecutor temp(rhs);
45
// swap(rhs);
46
//
47
// return *this;
48
// }
49
50
//
51
// member functions
52
//
53
void
CmsShowTaskExecutor::addTask
(
const
TaskFunctor
& iTask) {
m_tasks
.push_back(iTask); }
54
55
void
CmsShowTaskExecutor::startDoingTasks
() {
56
if
(!
m_tasks
.empty()) {
57
requestNextTask
();
58
}
59
}
60
61
void
CmsShowTaskExecutor::doNextTaskImp
() {
62
TaskFunctor
f
=
m_tasks
.front();
63
m_tasks
.pop_front();
64
f
();
65
}
66
67
bool
CmsShowTaskExecutor::moreTasksAvailable
() {
return
!
m_tasks
.empty(); }
68
69
//
70
// const member functions
71
//
72
73
//
74
// static member functions
75
//
CmsShowTaskExecutor::CmsShowTaskExecutor
CmsShowTaskExecutor()
Definition:
CmsShowTaskExecutor.cc:29
CmsShowTaskExecutor::startDoingTasks
void startDoingTasks() override
Definition:
CmsShowTaskExecutor.cc:55
CmsShowTaskExecutor::TaskFunctor
std::function< void()> TaskFunctor
Definition:
CmsShowTaskExecutor.h:35
CmsShowTaskExecutor.h
CmsShowTaskExecutorBase::requestNextTask
void requestNextTask()
Definition:
CmsShowTaskExecutorBase.cc:63
CmsShowTaskExecutor::doNextTaskImp
void doNextTaskImp() override
Definition:
CmsShowTaskExecutor.cc:61
CmsShowTaskExecutor::~CmsShowTaskExecutor
~CmsShowTaskExecutor() override
Definition:
CmsShowTaskExecutor.cc:36
CmsShowTaskExecutor::m_tasks
std::deque< TaskFunctor > m_tasks
Definition:
CmsShowTaskExecutor.h:56
f
double f[11][100]
Definition:
MuScleFitUtils.cc:78
CmsShowTaskExecutor::moreTasksAvailable
bool moreTasksAvailable() override
Definition:
CmsShowTaskExecutor.cc:67
CmsShowTaskExecutor::addTask
void addTask(const TaskFunctor &iTask)
Definition:
CmsShowTaskExecutor.cc:53
Generated for CMSSW Reference Manual by
1.8.14