CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
17 
18 
19 //
20 // constants, enums and typedefs
21 //
22 
23 //
24 // static data member definitions
25 //
26 
27 //
28 // constructors and destructor
29 //
31 {
32 }
33 
34 // CmsShowTaskExecutor::CmsShowTaskExecutor(const CmsShowTaskExecutor& rhs)
35 // {
36 // // do actual copying here;
37 // }
38 
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
60 {
61  m_tasks.push_back(iTask);
62 }
63 
64 void
66 {
67  if(m_tasks.size()) {
69  }
70 }
71 
72 void
74 {
75  TaskFunctor f = m_tasks.front();
76  m_tasks.pop_front();
77  f();
78 }
79 
80 bool
82 {
83  return !m_tasks.empty();
84 }
85 
86 //
87 // const member functions
88 //
89 
90 //
91 // static member functions
92 //
virtual bool moreTasksAvailable()
virtual void doNextTaskImp()
std::deque< TaskFunctor > m_tasks
double f[11][100]
boost::function0< void > TaskFunctor
void addTask(const TaskFunctor &iTask)