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

Constructor & Destructor Documentation

◆ BlobComplexObjects()

BlobComplexObjects::BlobComplexObjects ( )
inline

Definition at line 44 of file BlobComplex.h.

44  {
45  a = 0;
46  b = 0;
47  }

References a, and b.

Member Function Documentation

◆ fill()

void BlobComplexObjects::fill ( unsigned int &  serial)

Definition at line 68 of file BlobComplex.cc.

68  {
69  a = ++serial;
70  b = ++serial;
71  for (unsigned int i = 0; i < 3; i++) {
72  content.push_back(BlobComplexContent());
73  content.back().fill(serial);
74  }
75 }

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

◆ operator!=()

bool BlobComplexObjects::operator!= ( const BlobComplexObjects rhs) const
inline

Definition at line 52 of file BlobComplex.h.

52 { return !(*this == rhs); }

◆ operator==()

bool BlobComplexObjects::operator== ( const BlobComplexObjects rhs) const

Definition at line 86 of file BlobComplex.cc.

86  {
87  if (a != rhs.a)
88  return false;
89  if (b != rhs.b)
90  return false;
91  if (content.size() != rhs.content.size())
92  return false;
93  std::vector<BlobComplexContent>::const_iterator iter1 = content.begin();
94  std::vector<BlobComplexContent>::const_iterator iter2 = rhs.content.begin();
95  while (iter1 != content.end())
96  if (*iter1++ != *iter2++)
97  return false;
98  return true;
99 }

References a, b, and content.

◆ print()

void BlobComplexObjects::print ( void  ) const

Definition at line 77 of file BlobComplex.cc.

77  {
78  std::cout << " a = " << a << std::endl;
79  std::cout << " b = " << b << std::endl;
80  for (std::vector<BlobComplexContent>::const_iterator iter = content.begin(); iter != content.end(); iter++) {
81  std::cout << " content[" << (iter - content.begin()) << "] =" << std::endl;
82  iter->print();
83  }
84 }

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

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 57 of file BlobComplex.h.

◆ cond::serialization::access

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

Definition at line 57 of file BlobComplex.h.

Member Data Documentation

◆ a

unsigned int BlobComplexObjects::a

Definition at line 54 of file BlobComplex.h.

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

◆ b

unsigned int BlobComplexObjects::b

Definition at line 54 of file BlobComplex.h.

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

◆ content

std::vector<BlobComplexContent> BlobComplexObjects::content
BlobComplexObjects::a
unsigned int a
Definition: BlobComplex.h:54
mps_fire.i
i
Definition: mps_fire.py:355
BlobComplexContent
Definition: BlobComplex.h:26
BlobComplexObjects::content
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:55
BlobComplexObjects::b
unsigned int b
Definition: BlobComplex.h:54
gather_cfg.cout
cout
Definition: gather_cfg.py:144