CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes
BlobComplexContent Struct Reference

#include <BlobComplex.h>

Public Types

typedef std::pair
< BlobComplexData, unsigned
int > 
Data
 

Public Member Functions

 BlobComplexContent ()
 
void fill (unsigned int &serial)
 
bool operator!= (const BlobComplexContent &rhs) const
 
bool operator== (const BlobComplexContent &rhs) const
 
void print () const
 

Public Attributes

Data data1
 
Data data2
 
Data data3
 

Detailed Description

Definition at line 20 of file BlobComplex.h.

Member Typedef Documentation

typedef std::pair<BlobComplexData, unsigned int> BlobComplexContent::Data

Definition at line 29 of file BlobComplex.h.

Constructor & Destructor Documentation

BlobComplexContent::BlobComplexContent ( )
inline

Definition at line 21 of file BlobComplex.h.

21 {}

Member Function Documentation

void BlobComplexContent::fill ( unsigned int &  serial)

Definition at line 35 of file BlobComplex.cc.

References data1, data2, and data3.

36 {
37  data1.first.fill(serial);
38  data1.second = ++serial;
39  data2.first.fill(serial);
40  data2.second = ++serial;
41  data3.first.fill(serial);
42  data3.second = ++serial;
43 }
bool BlobComplexContent::operator!= ( const BlobComplexContent rhs) const
inline

Definition at line 26 of file BlobComplex.h.

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

Definition at line 62 of file BlobComplex.cc.

References data1, data2, and data3.

63 {
64  if (data1.first != rhs.data1.first ||
65  data1.second != rhs.data1.second) return false;
66  if (data2.first != rhs.data2.first ||
67  data2.second != rhs.data2.second) return false;
68  if (data3.first != rhs.data3.first ||
69  data3.second != rhs.data3.second) return false;
70  return true;
71 }
void BlobComplexContent::print ( void  ) const

Definition at line 52 of file BlobComplex.cc.

References gather_cfg::cout, data1, data2, data3, and printBlobComplexContentData().

53 {
54  std::cout << " data1 = " << std::endl;
56  std::cout << " data2 = " << std::endl;
58  std::cout << " data3 = " << std::endl;
60 }
static void printBlobComplexContentData(const BlobComplexContent::Data &data)
Definition: BlobComplex.cc:45
tuple cout
Definition: gather_cfg.py:41

Member Data Documentation

Data BlobComplexContent::data1

Definition at line 31 of file BlobComplex.h.

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

Data BlobComplexContent::data2

Definition at line 32 of file BlobComplex.h.

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

Data BlobComplexContent::data3

Definition at line 33 of file BlobComplex.h.

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