CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Types | Private Attributes
PrimitivePayload Class Reference

#include <PrimitivePayload.h>

Inheritance diagram for PrimitivePayload:
RegressionTestPayload

Public Member Functions

bool operator!= (const PrimitivePayload &rhs) const
 
bool operator== (const PrimitivePayload &rhs) const
 
 PrimitivePayload ()
 
 PrimitivePayload (int seed)
 

Private Types

enum  T_Enum {
  A =3, B, C = 101, D,
  E, F
}
 

Private Attributes

int m_i
 
bool t_bool
 
char t_char
 
double t_double
 
T_Enum t_enum
 
float t_float
 
int t_int
 
long long t_llong
 
long t_long
 
short t_short
 
std::string t_string
 
unsigned char t_uchar
 
unsigned int t_uint
 
unsigned long t_ulong
 
unsigned short t_ushort
 

Detailed Description

Definition at line 3 of file PrimitivePayload.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

PrimitivePayload::PrimitivePayload ( )

Definition at line 4 of file PrimitivePayload.cc.

4  :
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 }
unsigned long t_ulong
unsigned short t_ushort
std::string t_string
unsigned char t_uchar
unsigned int t_uint
PrimitivePayload::PrimitivePayload ( int  seed)

Definition at line 22 of file PrimitivePayload.cc.

References D, t_bool, t_enum, and t_string.

22  :
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 }
unsigned long t_ulong
unsigned short t_ushort
std::string t_string
unsigned char t_uchar
unsigned int t_uint

Member Function Documentation

bool PrimitivePayload::operator!= ( const PrimitivePayload rhs) const

Definition at line 65 of file PrimitivePayload.cc.

References operator==().

65  {
66  return !operator==(rhs);
67 }
bool operator==(const PrimitivePayload &rhs) const
bool PrimitivePayload::operator== ( const PrimitivePayload rhs) const

Definition at line 47 of file PrimitivePayload.cc.

References m_i, t_bool, t_char, t_double, t_enum, t_float, t_int, t_llong, t_long, t_short, t_string, t_uchar, t_uint, t_ulong, and t_ushort.

Referenced by operator!=().

47  {
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 }
unsigned long t_ulong
unsigned short t_ushort
std::string t_string
unsigned char t_uchar
unsigned int t_uint

Member Data Documentation

int PrimitivePayload::m_i
private

Definition at line 10 of file PrimitivePayload.h.

Referenced by operator==().

bool PrimitivePayload::t_bool
private

Definition at line 11 of file PrimitivePayload.h.

Referenced by operator==(), and PrimitivePayload().

char PrimitivePayload::t_char
private

Definition at line 13 of file PrimitivePayload.h.

Referenced by operator==().

double PrimitivePayload::t_double
private

Definition at line 22 of file PrimitivePayload.h.

Referenced by operator==().

T_Enum PrimitivePayload::t_enum
private

Definition at line 25 of file PrimitivePayload.h.

Referenced by operator==(), and PrimitivePayload().

float PrimitivePayload::t_float
private

Definition at line 21 of file PrimitivePayload.h.

Referenced by operator==().

int PrimitivePayload::t_int
private

Definition at line 16 of file PrimitivePayload.h.

Referenced by operator==().

long long PrimitivePayload::t_llong
private

Definition at line 20 of file PrimitivePayload.h.

Referenced by operator==().

long PrimitivePayload::t_long
private

Definition at line 18 of file PrimitivePayload.h.

Referenced by operator==().

short PrimitivePayload::t_short
private

Definition at line 14 of file PrimitivePayload.h.

Referenced by operator==().

std::string PrimitivePayload::t_string
private

Definition at line 23 of file PrimitivePayload.h.

Referenced by operator==(), and PrimitivePayload().

unsigned char PrimitivePayload::t_uchar
private

Definition at line 12 of file PrimitivePayload.h.

Referenced by operator==().

unsigned int PrimitivePayload::t_uint
private

Definition at line 17 of file PrimitivePayload.h.

Referenced by operator==().

unsigned long PrimitivePayload::t_ulong
private

Definition at line 19 of file PrimitivePayload.h.

Referenced by operator==().

unsigned short PrimitivePayload::t_ushort
private

Definition at line 15 of file PrimitivePayload.h.

Referenced by operator==().