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 | Private Member Functions | Friends
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
 

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 24 of file BlobComplex.h.

Member Typedef Documentation

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

Definition at line 33 of file BlobComplex.h.

Constructor & Destructor Documentation

BlobComplexContent::BlobComplexContent ( )
inline

Definition at line 25 of file BlobComplex.h.

25 {}

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 30 of file BlobComplex.h.

31  { 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:121
template<class Archive >
void BlobComplexContent::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 39 of file BlobComplex.h.

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

Definition at line 39 of file BlobComplex.h.

Member Data Documentation

Data BlobComplexContent::data1

Definition at line 35 of file BlobComplex.h.

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

Data BlobComplexContent::data2

Definition at line 36 of file BlobComplex.h.

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

Data BlobComplexContent::data3

Definition at line 37 of file BlobComplex.h.

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