CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
BlobComplexObjects Struct Reference

#include <BlobComplex.h>

Public Member Functions

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

Public Attributes

unsigned int a
 
unsigned int b
 
std::vector< BlobComplexContentcontent
 

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 46 of file BlobComplex.h.

Constructor & Destructor Documentation

BlobComplexObjects::BlobComplexObjects ( )
inline

Definition at line 47 of file BlobComplex.h.

References BlobComplexData::a, BlobComplexData::b, BlobComplexData::fill(), BlobComplexData::operator==(), and BlobComplexData::print().

47  {
48  a = 0;
49  b = 0;
50  }
unsigned int a
Definition: BlobComplex.h:58
unsigned int b
Definition: BlobComplex.h:58

Member Function Documentation

void BlobComplexObjects::fill ( unsigned int &  serial)

Definition at line 73 of file BlobComplex.cc.

References BlobComplexData::a, BlobComplexData::b, ws_sso_content_reader::content, and mps_fire::i.

74 {
75  a = ++serial;
76  b = ++serial;
77  for(unsigned int i = 0; i < 3; i++) {
78  content.push_back(BlobComplexContent());
79  content.back().fill(serial);
80  }
81 }
unsigned int a
Definition: BlobComplex.h:58
unsigned int b
Definition: BlobComplex.h:58
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:59
bool BlobComplexObjects::operator!= ( const BlobComplexObjects rhs) const
inline

Definition at line 55 of file BlobComplex.h.

56  { return !(*this == rhs); }
bool BlobComplexObjects::operator== ( const BlobComplexObjects rhs) const

Definition at line 94 of file BlobComplex.cc.

References BlobComplexData::a, a, BlobComplexData::b, b, content, and ws_sso_content_reader::content.

95 {
96  if (a != rhs.a) return false;
97  if (b != rhs.b) return false;
98  if (content.size() != rhs.content.size()) return false;
99  std::vector<BlobComplexContent>::const_iterator iter1 = content.begin();
100  std::vector<BlobComplexContent>::const_iterator iter2 = rhs.content.begin();
101  while(iter1 != content.end())
102  if (*iter1++ != *iter2++) return false;
103  return true;
104 }
unsigned int a
Definition: BlobComplex.h:58
unsigned int b
Definition: BlobComplex.h:58
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:59
void BlobComplexObjects::print ( void  ) const

Definition at line 83 of file BlobComplex.cc.

References BlobComplexData::a, BlobComplexData::b, ws_sso_content_reader::content, and gather_cfg::cout.

84 {
85  std::cout << " a = " << a << std::endl;
86  std::cout << " b = " << b << std::endl;
87  for(std::vector<BlobComplexContent>::const_iterator iter = content.begin();
88  iter != content.end(); iter++) {
89  std::cout << " content[" << (iter - content.begin()) << "] =" << std::endl;
90  iter->print();
91  }
92 }
unsigned int a
Definition: BlobComplex.h:58
unsigned int b
Definition: BlobComplex.h:58
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:59
template<class Archive >
void BlobComplexObjects::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 61 of file BlobComplex.h.

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

Definition at line 61 of file BlobComplex.h.

Member Data Documentation

unsigned int BlobComplexObjects::a

Definition at line 58 of file BlobComplex.h.

Referenced by operator==().

unsigned int BlobComplexObjects::b

Definition at line 58 of file BlobComplex.h.

Referenced by operator==().

std::vector<BlobComplexContent> BlobComplexObjects::content