CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
ecaldqm::Dependency Struct Reference

#include <DQWorkerTask.h>

Public Member Functions

void append (Collections _r)
 
void append (std::set< Collections > const &_s)
 
 Dependency ()
 
 Dependency (Collections _d, int _r1=-1, int _r2=-1, int _r3=-1, int _r4=-1)
 

Public Attributes

Collections dependant
 
std::set< Collectionsrequisite
 

Detailed Description

Definition at line 19 of file DQWorkerTask.h.

Constructor & Destructor Documentation

◆ Dependency() [1/2]

ecaldqm::Dependency::Dependency ( )
inline

Definition at line 23 of file DQWorkerTask.h.

23 : dependant(Collections(-1)), requisite() {}
Collections dependant
Definition: DQWorkerTask.h:20
std::set< Collections > requisite
Definition: DQWorkerTask.h:21

◆ Dependency() [2/2]

ecaldqm::Dependency::Dependency ( Collections  _d,
int  _r1 = -1,
int  _r2 = -1,
int  _r3 = -1,
int  _r4 = -1 
)
inline

Definition at line 24 of file DQWorkerTask.h.

References append().

24  : dependant(_d), requisite() {
25  if (_r1 >= 0)
26  append(Collections(_r1));
27  if (_r2 >= 0)
28  append(Collections(_r2));
29  if (_r3 >= 0)
30  append(Collections(_r3));
31  if (_r4 >= 0)
32  append(Collections(_r4));
33  }
Collections dependant
Definition: DQWorkerTask.h:20
void append(Collections _r)
Definition: DQWorkerTask.h:34
std::set< Collections > requisite
Definition: DQWorkerTask.h:21

Member Function Documentation

◆ append() [1/2]

void ecaldqm::Dependency::append ( Collections  _r)
inline

Definition at line 34 of file DQWorkerTask.h.

References dependant, and requisite.

Referenced by diclist.diclist::add(), append(), and Dependency().

34  {
35  if (_r != int(dependant))
36  requisite.insert(_r);
37  }
Collections dependant
Definition: DQWorkerTask.h:20
std::set< Collections > requisite
Definition: DQWorkerTask.h:21

◆ append() [2/2]

void ecaldqm::Dependency::append ( std::set< Collections > const &  _s)
inline

Definition at line 38 of file DQWorkerTask.h.

References append().

Referenced by diclist.diclist::add().

38  {
39  for (std::set<Collections>::const_iterator sItr(_s.begin()); sItr != _s.end(); ++sItr)
40  append(*sItr);
41  }
void append(Collections _r)
Definition: DQWorkerTask.h:34

Member Data Documentation

◆ dependant

Collections ecaldqm::Dependency::dependant

◆ requisite

std::set<Collections> ecaldqm::Dependency::requisite