CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
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
 

Detailed Description

Definition at line 49 of file BlobComplex.h.

Constructor & Destructor Documentation

BlobComplex::BlobComplex ( )
inline

Definition at line 50 of file BlobComplex.h.

50 {}

Member Function Documentation

void BlobComplex::fill ( unsigned int &  serial)

Definition at line 106 of file BlobComplex.cc.

References i, and objects.

107 {
108  for(unsigned int i = 0; i < 3; i++) {
109  objects.push_back(BlobComplexObjects());
110  objects.back().fill(serial);
111  }
112 }
int i
Definition: DBlmapReader.cc:9
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:58
bool BlobComplex::operator!= ( const BlobComplex rhs) const
inline

Definition at line 55 of file BlobComplex.h.

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

Definition at line 123 of file BlobComplex.cc.

References objects.

124 {
125  if (objects.size() != rhs.objects.size()) return false;
126  std::vector<BlobComplexObjects>::const_iterator iter1 = objects.begin();
127  std::vector<BlobComplexObjects>::const_iterator iter2 = rhs.objects.begin();
128  while(iter1 != objects.end())
129  if (*iter1++ != *iter2++) return false;
130  return true;
131 }
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:58
void BlobComplex::print ( void  ) const

Definition at line 114 of file BlobComplex.cc.

References gather_cfg::cout, and objects.

115 {
116  for(std::vector<BlobComplexObjects>::const_iterator iter = objects.begin();
117  iter != objects.end(); iter++) {
118  std::cout << "objects[" << (iter - objects.begin()) << "] =" << std::endl;
119  iter->print();
120  }
121 }
std::vector< BlobComplexObjects > objects
Definition: BlobComplex.h:58
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

std::vector<BlobComplexObjects> BlobComplex::objects

Definition at line 58 of file BlobComplex.h.

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