CMS 3D CMS Logo

Public Member Functions | Public Attributes

BlobComplex Struct Reference

#include <BlobComplex.h>

List of all members.

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.

{}

Member Function Documentation

void BlobComplex::fill ( unsigned int &  serial)

Definition at line 106 of file BlobComplex.cc.

References i, and objects.

{
  for(unsigned int i = 0; i < 3; i++) {
    objects.push_back(BlobComplexObjects());
    objects.back().fill(serial);
  }
}
bool BlobComplex::operator!= ( const BlobComplex rhs) const [inline]

Definition at line 55 of file BlobComplex.h.

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

Definition at line 123 of file BlobComplex.cc.

References objects.

{
  if (objects.size() != rhs.objects.size()) return false;
  std::vector<BlobComplexObjects>::const_iterator iter1 = objects.begin();
  std::vector<BlobComplexObjects>::const_iterator iter2 = rhs.objects.begin();
  while(iter1 != objects.end())
    if (*iter1++ != *iter2++) return false;
  return true;
}
void BlobComplex::print ( void  ) const

Definition at line 114 of file BlobComplex.cc.

References gather_cfg::cout, and objects.

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

Member Data Documentation

Definition at line 58 of file BlobComplex.h.

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