1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#ifndef Fireworks_Core_CmsShowTaskExecutor_h
#define Fireworks_Core_CmsShowTaskExecutor_h
// -*- C++ -*-
//
// Package: Core
// Class : CmsShowTaskExecutor
//
/**\class CmsShowTaskExecutor CmsShowTaskExecutor.h Fireworks/Core/interface/CmsShowTaskExecutor.h
Description: <one line class summary>
Usage:
<usage>
*/
//
// Original Author: Chris Jones
// Created: Fri Jul 11 12:09:45 EDT 2008
//
// system include files
#include <deque>
#include <functional>
// user include files
#include "Fireworks/Core/interface/CmsShowTaskExecutorBase.h"
// forward declarations
class CmsShowTaskExecutor : public CmsShowTaskExecutorBase {
public:
CmsShowTaskExecutor();
~CmsShowTaskExecutor() override;
typedef std::function<void()> TaskFunctor;
// ---------- const member functions ---------------------
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
void addTask(const TaskFunctor& iTask);
void startDoingTasks() override;
protected:
void doNextTaskImp() override;
bool moreTasksAvailable() override;
public:
CmsShowTaskExecutor(const CmsShowTaskExecutor&) = delete; // stop default
const CmsShowTaskExecutor& operator=(const CmsShowTaskExecutor&) = delete; // stop default
private:
// ---------- member data --------------------------------
std::deque<TaskFunctor> m_tasks;
};
#endif
|