CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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.

10 {}

Member Function Documentation

void BlobComplexData::fill ( unsigned int &  serial)

Definition at line 5 of file BlobComplex.cc.

References a, b, i, and values.

6 {
7  a = ++serial;
8  b = ++serial;
9  for(unsigned int i = 0; i < 10; i++)
10  values.push_back(++serial);
11 }
int i
Definition: DBlmapReader.cc:9
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.

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.

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
tuple cout
Definition: gather_cfg.py:145
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

Definition at line 18 of file BlobComplex.h.

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

unsigned int BlobComplexData::b

Definition at line 18 of file BlobComplex.h.

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

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

Definition at line 19 of file BlobComplex.h.

Referenced by Config.TestMakePSet::__insertValue(), fill(), operator==(), and print().