CMS 3D CMS Logo

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

Constructor & Destructor Documentation

◆ BlobComplex()

BlobComplex::BlobComplex ( )
inline

Definition at line 61 of file BlobComplex.h.

61 {}

Member Function Documentation

◆ fill()

void BlobComplex::fill ( unsigned int &  serial)

Definition at line 101 of file BlobComplex.cc.

101  {
102  for (unsigned int i = 0; i < 3; i++) {
103  objects.push_back(BlobComplexObjects());
104  objects.back().fill(serial);
105  }
106 }

References mps_fire::i.

◆ operator!=()

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

Definition at line 66 of file BlobComplex.h.

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

◆ operator==()

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

Definition at line 115 of file BlobComplex.cc.

115  {
116  if (objects.size() != rhs.objects.size())
117  return false;
118  std::vector<BlobComplexObjects>::const_iterator iter1 = objects.begin();
119  std::vector<BlobComplexObjects>::const_iterator iter2 = rhs.objects.begin();
120  while (iter1 != objects.end())
121  if (*iter1++ != *iter2++)
122  return false;
123  return true;
124 }

References objects.

◆ print()

void BlobComplex::print ( void  ) const

Definition at line 108 of file BlobComplex.cc.

108  {
109  for (std::vector<BlobComplexObjects>::const_iterator iter = objects.begin(); iter != objects.end(); iter++) {
110  std::cout << "objects[" << (iter - objects.begin()) << "] =" << std::endl;
111  iter->print();
112  }
113 }

References gather_cfg::cout.

◆ serialize()

template<class Archive >
void BlobComplex::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 70 of file BlobComplex.h.

◆ cond::serialization::access

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

Definition at line 70 of file BlobComplex.h.

Member Data Documentation

◆ objects

std::vector<BlobComplexObjects> BlobComplex::objects

Definition at line 68 of file BlobComplex.h.

Referenced by operator==().

mps_fire.i
i
Definition: mps_fire.py:355
gather_cfg.cout
cout
Definition: gather_cfg.py:144
objects
Definition: __init__.py:1
BlobComplexObjects
Definition: BlobComplex.h:43
BlobComplex::objects
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:68