CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Friends
BlobComplexData Struct Reference

#include <BlobComplex.h>

Public Member Functions

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

Public Attributes

unsigned int a
 
unsigned int b
 
std::vector< unsigned int > values
 

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

Constructor & Destructor Documentation

BlobComplexData::BlobComplexData ( )
inline

Definition at line 10 of file BlobComplex.h.

References fill(), operator==(), and print().

10 {}

Member Function Documentation

void BlobComplexData::fill ( unsigned int &  serial)

Definition at line 5 of file BlobComplex.cc.

References a, b, mps_fire::i, and values.

Referenced by BlobComplex::BlobComplex(), BlobComplexContent::BlobComplexContent(), BlobComplexData(), and BlobComplexObjects::BlobComplexObjects().

6 {
7  a = ++serial;
8  b = ++serial;
9  for(unsigned int i = 0; i < 10; i++)
10  values.push_back(++serial);
11 }
unsigned int a
Definition: BlobComplex.h:18
unsigned int b
Definition: BlobComplex.h:18
std::vector< unsigned int > values
Definition: BlobComplex.h:19
bool BlobComplexData::operator!= ( const BlobComplexData rhs) const
inline

Definition at line 15 of file BlobComplex.h.

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

Definition at line 23 of file BlobComplex.cc.

References a, b, and values.

Referenced by BlobComplex::BlobComplex(), BlobComplexContent::BlobComplexContent(), BlobComplexData(), and BlobComplexObjects::BlobComplexObjects().

24 {
25  if (a != rhs.a) return false;
26  if (b != rhs.b) return false;
27  if (values.size() != rhs.values.size()) return false;
28  std::vector<unsigned int>::const_iterator iter1 = values.begin();
29  std::vector<unsigned int>::const_iterator iter2 = rhs.values.begin();
30  while(iter1 != values.end())
31  if (*iter1++ != *iter2++) return false;
32  return true;
33 }
unsigned int a
Definition: BlobComplex.h:18
unsigned int b
Definition: BlobComplex.h:18
std::vector< unsigned int > values
Definition: BlobComplex.h:19
void BlobComplexData::print ( void  ) const

Definition at line 13 of file BlobComplex.cc.

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

Referenced by BlobComplex::BlobComplex(), BlobComplexContent::BlobComplexContent(), BlobComplexData(), and BlobComplexObjects::BlobComplexObjects().

14 {
15  std::cout << " a = " << a << std::endl;
16  std::cout << " b = " << b << std::endl;
17  for(std::vector<unsigned int>::const_iterator iter = values.begin();
18  iter != values.end(); iter++)
19  std::cout << " value[" << (iter - values.begin()) << "] = "
20  << *iter << std::endl;
21 }
unsigned int a
Definition: BlobComplex.h:18
unsigned int b
Definition: BlobComplex.h:18
std::vector< unsigned int > values
Definition: BlobComplex.h:19
template<class Archive >
void BlobComplexData::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 21 of file BlobComplex.h.

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

Definition at line 21 of file BlobComplex.h.

Member Data Documentation

unsigned int BlobComplexData::a
unsigned int BlobComplexData::b
std::vector<unsigned int> BlobComplexData::values