Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
// $Id: CmsShowTaskExecutor.cc,v 1.1 2008/07/12 00:32:58 chrjones Exp $
12
//
13
14
// system include files
15
16
// user include files
17
#include "
Fireworks/Core/src/CmsShowTaskExecutor.h
"
18
19
20
//
21
// constants, enums and typedefs
22
//
23
24
//
25
// static data member definitions
26
//
27
28
//
29
// constructors and destructor
30
//
31
CmsShowTaskExecutor::CmsShowTaskExecutor
()
32
{
33
}
34
35
// CmsShowTaskExecutor::CmsShowTaskExecutor(const CmsShowTaskExecutor& rhs)
36
// {
37
// // do actual copying here;
38
// }
39
40
CmsShowTaskExecutor::~CmsShowTaskExecutor
()
41
{
42
}
43
44
//
45
// assignment operators
46
//
47
// const CmsShowTaskExecutor& CmsShowTaskExecutor::operator=(const CmsShowTaskExecutor& rhs)
48
// {
49
// //An exception safe implementation is
50
// CmsShowTaskExecutor temp(rhs);
51
// swap(rhs);
52
//
53
// return *this;
54
// }
55
56
//
57
// member functions
58
//
59
void
60
CmsShowTaskExecutor::addTask
(
const
TaskFunctor
& iTask)
61
{
62
m_tasks
.push_back(iTask);
63
}
64
65
void
66
CmsShowTaskExecutor::startDoingTasks
()
67
{
68
if
(
m_tasks
.size()) {
69
requestNextTask
();
70
}
71
}
72
73
void
74
CmsShowTaskExecutor::doNextTaskImp
()
75
{
76
TaskFunctor
f
=
m_tasks
.front();
77
m_tasks
.pop_front();
78
f
();
79
}
80
81
bool
82
CmsShowTaskExecutor::moreTasksAvailable
()
83
{
84
return
!
m_tasks
.empty();
85
}
86
87
//
88
// const member functions
89
//
90
91
//
92
// static member functions
93
//
CmsShowTaskExecutor::CmsShowTaskExecutor
CmsShowTaskExecutor()
Definition:
CmsShowTaskExecutor.cc:31
CmsShowTaskExecutor.h
CmsShowTaskExecutorBase::requestNextTask
void requestNextTask()
Definition:
CmsShowTaskExecutorBase.cc:66
CmsShowTaskExecutor::moreTasksAvailable
virtual bool moreTasksAvailable()
Definition:
CmsShowTaskExecutor.cc:82
CmsShowTaskExecutor::doNextTaskImp
virtual void doNextTaskImp()
Definition:
CmsShowTaskExecutor.cc:74
CmsShowTaskExecutor::m_tasks
std::deque< TaskFunctor > m_tasks
Definition:
CmsShowTaskExecutor.h:56
CmsShowTaskExecutor::startDoingTasks
void startDoingTasks()
Definition:
CmsShowTaskExecutor.cc:66
f
double f[11][100]
Definition:
MuScleFitUtils.cc:79
CmsShowTaskExecutor::~CmsShowTaskExecutor
virtual ~CmsShowTaskExecutor()
Definition:
CmsShowTaskExecutor.cc:40
CmsShowTaskExecutor::TaskFunctor
boost::function0< void > TaskFunctor
Definition:
CmsShowTaskExecutor.h:37
CmsShowTaskExecutor::addTask
void addTask(const TaskFunctor &iTask)
Definition:
CmsShowTaskExecutor.cc:60
Generated for CMSSW Reference Manual by
1.8.5