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
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 ( )
inline

Definition at line 61 of file BlobComplex.h.

61 {}

Member Function Documentation

void BlobComplex::fill ( unsigned int &  serial)

Definition at line 101 of file BlobComplex.cc.

References mps_fire::i, and objects.

101  {
102  for (unsigned int i = 0; i < 3; i++) {
103  objects.push_back(BlobComplexObjects());
104  objects.back().fill(serial);
105  }
106 }
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:68
bool BlobComplex::operator!= ( const BlobComplex rhs) const
inline

Definition at line 66 of file BlobComplex.h.

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

Definition at line 115 of file BlobComplex.cc.

References objects.

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 }
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:68
void BlobComplex::print ( void  ) const

Definition at line 108 of file BlobComplex.cc.

References gather_cfg::cout, and objects.

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 }
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:68
tuple cout
Definition: gather_cfg.py:144
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 70 of file BlobComplex.h.

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

Definition at line 70 of file BlobComplex.h.

Member Data Documentation

std::vector<BlobComplexObjects> BlobComplex::objects

Definition at line 68 of file BlobComplex.h.

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