test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
BlobComplex Struct Reference

#include <BlobComplex.h>

Public Member Functions

 BlobComplex ()
 
void fill (unsigned int &serial)
 
bool operator!= (const BlobComplex &rhs) const
 
bool operator== (const BlobComplex &rhs) const
 
void print () const
 

Public Attributes

std::vector< BlobComplexObjectsobjects
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 57 of file BlobComplex.h.

Constructor & Destructor Documentation

BlobComplex::BlobComplex ( )
inline

Definition at line 58 of file BlobComplex.h.

58 {}

Member Function Documentation

void BlobComplex::fill ( unsigned int &  serial)

Definition at line 106 of file BlobComplex.cc.

References i, and objects.

107 {
108  for(unsigned int i = 0; i < 3; i++) {
109  objects.push_back(BlobComplexObjects());
110  objects.back().fill(serial);
111  }
112 }
int i
Definition: DBlmapReader.cc:9
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:66
bool BlobComplex::operator!= ( const BlobComplex rhs) const
inline

Definition at line 63 of file BlobComplex.h.

64  { return !(*this == rhs); }
bool BlobComplex::operator== ( const BlobComplex rhs) const

Definition at line 123 of file BlobComplex.cc.

References objects.

124 {
125  if (objects.size() != rhs.objects.size()) return false;
126  std::vector<BlobComplexObjects>::const_iterator iter1 = objects.begin();
127  std::vector<BlobComplexObjects>::const_iterator iter2 = rhs.objects.begin();
128  while(iter1 != objects.end())
129  if (*iter1++ != *iter2++) return false;
130  return true;
131 }
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:66
void BlobComplex::print ( void  ) const

Definition at line 114 of file BlobComplex.cc.

References gather_cfg::cout, getDQMSummary::iter, and objects.

115 {
116  for(std::vector<BlobComplexObjects>::const_iterator iter = objects.begin();
117  iter != objects.end(); iter++) {
118  std::cout << "objects[" << (iter - objects.begin()) << "] =" << std::endl;
119  iter->print();
120  }
121 }
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:66
tuple cout
Definition: gather_cfg.py:121
template<class Archive >
void BlobComplex::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 68 of file BlobComplex.h.

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 68 of file BlobComplex.h.

Member Data Documentation

std::vector<BlobComplexObjects> BlobComplex::objects

Definition at line 66 of file BlobComplex.h.

Referenced by fill(), operator==(), and print().