test
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
BlobComplexObjects Struct Reference

#include <BlobComplex.h>

Public Member Functions

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

Public Attributes

unsigned int a
 
unsigned int b
 
std::vector< BlobComplexContentcontent
 

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

Constructor & Destructor Documentation

BlobComplexObjects::BlobComplexObjects ( )
inline

Definition at line 43 of file BlobComplex.h.

43 {}

Member Function Documentation

void BlobComplexObjects::fill ( unsigned int &  serial)

Definition at line 73 of file BlobComplex.cc.

References a, b, content, and i.

74 {
75  a = ++serial;
76  b = ++serial;
77  for(unsigned int i = 0; i < 3; i++) {
78  content.push_back(BlobComplexContent());
79  content.back().fill(serial);
80  }
81 }
int i
Definition: DBlmapReader.cc:9
unsigned int a
Definition: BlobComplex.h:51
unsigned int b
Definition: BlobComplex.h:51
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:52
bool BlobComplexObjects::operator!= ( const BlobComplexObjects rhs) const
inline

Definition at line 48 of file BlobComplex.h.

49  { return !(*this == rhs); }
bool BlobComplexObjects::operator== ( const BlobComplexObjects rhs) const

Definition at line 94 of file BlobComplex.cc.

References a, b, and content.

95 {
96  if (a != rhs.a) return false;
97  if (b != rhs.b) return false;
98  if (content.size() != rhs.content.size()) return false;
99  std::vector<BlobComplexContent>::const_iterator iter1 = content.begin();
100  std::vector<BlobComplexContent>::const_iterator iter2 = rhs.content.begin();
101  while(iter1 != content.end())
102  if (*iter1++ != *iter2++) return false;
103  return true;
104 }
unsigned int a
Definition: BlobComplex.h:51
unsigned int b
Definition: BlobComplex.h:51
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:52
void BlobComplexObjects::print ( void  ) const

Definition at line 83 of file BlobComplex.cc.

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

84 {
85  std::cout << " a = " << a << std::endl;
86  std::cout << " b = " << b << std::endl;
87  for(std::vector<BlobComplexContent>::const_iterator iter = content.begin();
88  iter != content.end(); iter++) {
89  std::cout << " content[" << (iter - content.begin()) << "] =" << std::endl;
90  iter->print();
91  }
92 }
unsigned int a
Definition: BlobComplex.h:51
unsigned int b
Definition: BlobComplex.h:51
std::vector< BlobComplexContent > content
Definition: BlobComplex.h:52
tuple cout
Definition: gather_cfg.py:145
template<class Archive >
void BlobComplexObjects::serialize ( Archive &  ar,
const unsigned int  version 
)
private

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 54 of file BlobComplex.h.

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

Definition at line 54 of file BlobComplex.h.

Member Data Documentation

unsigned int BlobComplexObjects::a

Definition at line 51 of file BlobComplex.h.

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

unsigned int BlobComplexObjects::b

Definition at line 51 of file BlobComplex.h.

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

std::vector<BlobComplexContent> BlobComplexObjects::content