CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 a, and b.

10  {
11  a = 0;
12  b = 0;
13  }
unsigned int a
Definition: BlobComplex.h:20
unsigned int b
Definition: BlobComplex.h:20

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.

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

Definition at line 18 of file BlobComplex.h.

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

Definition at line 19 of file BlobComplex.cc.

References a, b, and values.

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

Definition at line 12 of file BlobComplex.cc.

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

12  {
13  std::cout << " a = " << a << std::endl;
14  std::cout << " b = " << b << std::endl;
15  for (std::vector<unsigned int>::const_iterator iter = values.begin(); iter != values.end(); iter++)
16  std::cout << " value[" << (iter - values.begin()) << "] = " << *iter << std::endl;
17 }
unsigned int a
Definition: BlobComplex.h:20
unsigned int b
Definition: BlobComplex.h:20
std::vector< unsigned int > values
Definition: BlobComplex.h:21
tuple cout
Definition: gather_cfg.py:144
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 23 of file BlobComplex.h.

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

Definition at line 23 of file BlobComplex.h.

Member Data Documentation

unsigned int BlobComplexData::a

Definition at line 20 of file BlobComplex.h.

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

unsigned int BlobComplexData::b

Definition at line 20 of file BlobComplex.h.

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

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