CMS 3D CMS Logo

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

Member Typedef Documentation

◆ Data

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

Definition at line 34 of file BlobComplex.h.

Constructor & Destructor Documentation

◆ BlobComplexContent()

BlobComplexContent::BlobComplexContent ( )
inline

Definition at line 27 of file BlobComplex.h.

27 {}

Member Function Documentation

◆ fill()

void BlobComplexContent::fill ( unsigned int &  serial)

Definition at line 34 of file BlobComplex.cc.

References data1, data2, and data3.

34  {
35  data1.first.fill(serial);
36  data1.second = ++serial;
37  data2.first.fill(serial);
38  data2.second = ++serial;
39  data3.first.fill(serial);
40  data3.second = ++serial;
41 }

◆ operator!=()

bool BlobComplexContent::operator!= ( const BlobComplexContent rhs) const
inline

Definition at line 32 of file BlobComplex.h.

32 { return !(*this == rhs); }

◆ operator==()

bool BlobComplexContent::operator== ( const BlobComplexContent rhs) const

Definition at line 58 of file BlobComplex.cc.

References data1, data2, and data3.

58  {
59  if (data1.first != rhs.data1.first || data1.second != rhs.data1.second)
60  return false;
61  if (data2.first != rhs.data2.first || data2.second != rhs.data2.second)
62  return false;
63  if (data3.first != rhs.data3.first || data3.second != rhs.data3.second)
64  return false;
65  return true;
66 }

◆ print()

void BlobComplexContent::print ( void  ) const

Definition at line 49 of file BlobComplex.cc.

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

49  {
50  std::cout << " data1 = " << std::endl;
52  std::cout << " data2 = " << std::endl;
54  std::cout << " data3 = " << std::endl;
56 }
static void printBlobComplexContentData(const BlobComplexContent::Data &data)
Definition: BlobComplex.cc:43

◆ serialize()

template<class Archive >
void BlobComplexContent::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 40 of file BlobComplex.h.

◆ cond::serialization::access

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

Definition at line 40 of file BlobComplex.h.

Member Data Documentation

◆ data1

Data BlobComplexContent::data1

Definition at line 36 of file BlobComplex.h.

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

◆ data2

Data BlobComplexContent::data2

Definition at line 37 of file BlobComplex.h.

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

◆ data3

Data BlobComplexContent::data3

Definition at line 38 of file BlobComplex.h.

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