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 // $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
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32 {
33 }
34 
35 // CmsShowTaskExecutor::CmsShowTaskExecutor(const CmsShowTaskExecutor& rhs)
36 // {
37 // // do actual copying here;
38 // }
39 
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
61 {
62  m_tasks.push_back(iTask);
63 }
64 
65 void
67 {
68  if(m_tasks.size()) {
70  }
71 }
72 
73 void
75 {
76  TaskFunctor f = m_tasks.front();
77  m_tasks.pop_front();
78  f();
79 }
80 
81 bool
83 {
84  return !m_tasks.empty();
85 }
86 
87 //
88 // const member functions
89 //
90 
91 //
92 // static member functions
93 //
virtual bool moreTasksAvailable()
virtual void doNextTaskImp()
std::deque< TaskFunctor > m_tasks
double f[11][100]
boost::function0< void > TaskFunctor
void addTask(const TaskFunctor &iTask)