CMS 3D CMS Logo

Public Member Functions | Public Attributes

BlobComplexObjects Struct Reference

#include <BlobComplex.h>

List of all members.

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

Detailed Description

Definition at line 36 of file BlobComplex.h.


Constructor & Destructor Documentation

BlobComplexObjects::BlobComplexObjects ( ) [inline]

Definition at line 37 of file BlobComplex.h.

{}

Member Function Documentation

void BlobComplexObjects::fill ( unsigned int &  serial)

Definition at line 73 of file BlobComplex.cc.

References a, b, content, and i.

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

Definition at line 42 of file BlobComplex.h.

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

Definition at line 94 of file BlobComplex.cc.

References a, b, and content.

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

Definition at line 83 of file BlobComplex.cc.

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

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

Member Data Documentation

unsigned int BlobComplexObjects::a

Definition at line 45 of file BlobComplex.h.

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

unsigned int BlobComplexObjects::b

Definition at line 45 of file BlobComplex.h.

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

Definition at line 46 of file BlobComplex.h.

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