Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
CondCore
RegressionTest
src
PrimitivePayload.cc
Go to the documentation of this file.
1
#include "
CondCore/RegressionTest/interface/PrimitivePayload.h
"
2
#include <sstream>
3
4
PrimitivePayload::PrimitivePayload
():
5
m_i(-1),
6
t_bool(
false
),
7
t_uchar(0),
8
t_char(-1),
9
t_short(-1),
10
t_ushort(0),
11
t_int(-1),
12
t_uint(0),
13
t_long(-1),
14
t_ulong(0),
15
t_llong(-1),
16
t_float(0.),
17
t_double(0.),
18
t_string(
""
),
19
t_enum(
A
){
20
}
21
22
PrimitivePayload::PrimitivePayload
(
int
seed
):
23
m_i(seed + 9999),
24
t_bool(
false
),
25
t_uchar(seed),
26
t_char(seed),
27
t_short(seed),
28
t_ushort(seed),
29
t_int(seed),
30
t_uint(seed),
31
t_long(seed),
32
t_ulong(seed),
33
t_llong(seed),
34
t_float(seed),
35
t_double(seed),
36
t_string(
""
),
37
t_enum(
A
){
38
if
( seed % 2== 0 ){
39
t_bool
=
true
;
40
t_enum
=
D
;
41
}
42
std::stringstream
ss
;
43
ss <<
seed
;
44
t_string
= ss.str();
45
}
46
47
bool
PrimitivePayload::operator ==
(
const
PrimitivePayload
& rhs)
const
{
48
if
(
m_i
!= rhs.
m_i
)
return
false
;
49
if
(
t_bool
!= rhs.
t_bool
)
return
false
;
50
if
(
t_uchar
!= rhs.
t_uchar
)
return
false
;
51
if
(
t_char
!= rhs.
t_char
)
return
false
;
52
if
(
t_short
!= rhs.
t_short
)
return
false
;
53
if
(
t_ushort
!= rhs.
t_ushort
)
return
false
;
54
if
(
t_int
!= rhs.
t_int
)
return
false
;
55
if
(
t_uint
!= rhs.
t_uint
)
return
false
;
56
if
(
t_long
!= rhs.
t_long
)
return
false
;
57
if
(
t_ulong
!= rhs.
t_ulong
)
return
false
;
58
if
(
t_llong
!= rhs.
t_llong
)
return
false
;
59
if
(
t_float
!= rhs.
t_float
)
return
false
;
60
if
(
t_double
!= rhs.
t_double
)
return
false
;
61
if
(
t_string
!= rhs.
t_string
)
return
false
;
62
if
(
t_enum
!= rhs.
t_enum
)
return
false
;
63
return
true
;
64
}
65
bool
PrimitivePayload::operator !=
(
const
PrimitivePayload
& rhs)
const
{
66
return
!
operator==
(rhs);
67
}
PrimitivePayload::t_bool
bool t_bool
Definition:
PrimitivePayload.h:11
PrimitivePayload::D
Definition:
PrimitivePayload.h:24
PrimitivePayload::PrimitivePayload
PrimitivePayload()
Definition:
PrimitivePayload.cc:4
PrimitivePayload::t_ulong
unsigned long t_ulong
Definition:
PrimitivePayload.h:19
PrimitivePayload::t_ushort
unsigned short t_ushort
Definition:
PrimitivePayload.h:15
PrimitivePayload::t_string
std::string t_string
Definition:
PrimitivePayload.h:23
PrimitivePayload::t_int
int t_int
Definition:
PrimitivePayload.h:16
PrimitivePayload::m_i
int m_i
Definition:
PrimitivePayload.h:10
PrimitivePayload::t_short
short t_short
Definition:
PrimitivePayload.h:14
PrimitivePayload::t_llong
long long t_llong
Definition:
PrimitivePayload.h:20
PrimitivePayload::t_double
double t_double
Definition:
PrimitivePayload.h:22
PrimitivePayload::t_uchar
unsigned char t_uchar
Definition:
PrimitivePayload.h:12
PrimitivePayload::t_enum
T_Enum t_enum
Definition:
PrimitivePayload.h:25
PrimitivePayload::t_uint
unsigned int t_uint
Definition:
PrimitivePayload.h:17
contentValuesCheck.ss
list ss
Definition:
contentValuesCheck.py:32
PrimitivePayload::operator!=
bool operator!=(const PrimitivePayload &rhs) const
Definition:
PrimitivePayload.cc:65
PrimitivePayload
Definition:
PrimitivePayload.h:3
PrimitivePayload.h
PrimitivePayload::t_long
long t_long
Definition:
PrimitivePayload.h:18
fileCollector.seed
tuple seed
Definition:
fileCollector.py:125
edm::false
volatile std::atomic< bool > shutdown_flag false
Definition:
UnixSignalHandlers.cc:22
PrimitivePayload::t_float
float t_float
Definition:
PrimitivePayload.h:21
funct::A
A
Definition:
Factorize.h:54
PrimitivePayload::operator==
bool operator==(const PrimitivePayload &rhs) const
Definition:
PrimitivePayload.cc:47
PrimitivePayload::t_char
char t_char
Definition:
PrimitivePayload.h:13
Generated for CMSSW Reference Manual by
1.8.5