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() {}

◆ 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.

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  }

References append().

Member Function Documentation

◆ append() [1/2]

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

Definition at line 34 of file DQWorkerTask.h.

34  {
35  if (_r != int(dependant))
36  requisite.insert(_r);
37  }

References dependant, and requisite.

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

◆ append() [2/2]

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

Definition at line 38 of file DQWorkerTask.h.

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

References append().

Referenced by diclist.diclist::add().

Member Data Documentation

◆ dependant

Collections ecaldqm::Dependency::dependant

◆ requisite

std::set<Collections> ecaldqm::Dependency::requisite
ecaldqm::Dependency::requisite
std::set< Collections > requisite
Definition: DQWorkerTask.h:21
ecaldqm::Dependency::append
void append(Collections _r)
Definition: DQWorkerTask.h:34
ecaldqm::Collections
Collections
Definition: Collections.h:8
ecaldqm::Dependency::dependant
Collections dependant
Definition: DQWorkerTask.h:20