CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( )
inline

Definition at line 44 of file BlobComplex.h.

References a, and b.

44  {
45  a = 0;
46  b = 0;
47  }
unsigned int a
Definition: BlobComplex.h:54
unsigned int b
Definition: BlobComplex.h:54

Member Function Documentation

void BlobComplexObjects::fill ( unsigned int &  serial)

Definition at line 68 of file BlobComplex.cc.

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

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 }
unsigned int a
Definition: BlobComplex.h:54
unsigned int b
Definition: BlobComplex.h:54
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:55
bool BlobComplexObjects::operator!= ( const BlobComplexObjects rhs) const
inline

Definition at line 52 of file BlobComplex.h.

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

Definition at line 86 of file BlobComplex.cc.

References a, b, and content.

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 }
unsigned int a
Definition: BlobComplex.h:54
unsigned int b
Definition: BlobComplex.h:54
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:55
void BlobComplexObjects::print ( void  ) const

Definition at line 77 of file BlobComplex.cc.

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

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 }
unsigned int a
Definition: BlobComplex.h:54
unsigned int b
Definition: BlobComplex.h:54
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:55
tuple cout
Definition: gather_cfg.py:144
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 57 of file BlobComplex.h.

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

Definition at line 57 of file BlobComplex.h.

Member Data Documentation

unsigned int BlobComplexObjects::a

Definition at line 54 of file BlobComplex.h.

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

unsigned int BlobComplexObjects::b

Definition at line 54 of file BlobComplex.h.

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

std::vector<BlobComplexContent> BlobComplexObjects::content