CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CurrentProcessingContext.cc
Go to the documentation of this file.
2 
4 
5 namespace edm {
7  pathInSchedule_(0),
8  slotInPath_(0),
9  moduleDescription_(0),
10  pathName_(0),
11  isEndPath_(false),
12  unscheduledDepth_(0) {
13  }
14 
16  int bitpos,
17  bool isEndPth) :
18  pathInSchedule_(bitpos),
19  slotInPath_(0),
20  moduleDescription_(0),
21  pathName_(name),
22  isEndPath_(isEndPth),
23  unscheduledDepth_(0) {
24  }
25 
26  std::string const*
28  return is_active()
30  : 0;
31  }
32 
33  std::string const*
35  return pathName_;
36  }
37 
38  ModuleDescription const*
40  return moduleDescription_;
41  }
42 
43  int
45  return is_active()
47  : -1;
48  }
49 
50 
51  int
53  return is_active()
54  ? static_cast<int>(slotInPath_)
55  : -1;
56  }
57 
58  bool
60  return isEndPath_;
61  }
62 
63  unsigned int
65  return unscheduledDepth_;
66  }
67 
68  bool
70  return 0 != unscheduledDepth();
71  }
72 
73  void
75  unscheduledDepth_ = iDepth;
76  }
77 
78  void
79  CurrentProcessingContext::activate(size_t theSlotInPath,
80  ModuleDescription const* mod) {
81  assert( mod );
82  slotInPath_ = theSlotInPath;
84  }
85 
86  void
88  pathInSchedule_ = 0;
89  slotInPath_ = 0;
91  pathName_ = 0;
92  }
93 }
bool isEndPath() const
Return true if the path is an end path, and false otherwise.
ModuleDescription const * moduleDescription() const
std::string const * moduleLabel() const
void deactivate()
Set all data to reflect inactive state.
std::string const & moduleLabel() const
bool isUnscheduled() const
Returns true if the module is being called via unscheduled execution.
void activate(std::size_t theSlotInPath, ModuleDescription const *mod)
Set the context to reflect the active state.
list mod
Load physics model.
void setUnscheduledDepth(unsigned int)
Set the depth in a series of unscheduled callbacks.
CurrentProcessingContext()
Default-constructed objects reflect the inactive state.
unsigned int unscheduledDepth() const
Returns 0 if module is on the path and &gt;0 when the module executing is unscheduled.
ModuleDescription const * moduleDescription_
std::string const * pathName() const