#include <PrimitivePayload.h>
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 |
Definition at line 3 of file PrimitivePayload.h.
enum PrimitivePayload::T_Enum [private] |
PrimitivePayload::PrimitivePayload | ( | ) |
PrimitivePayload::PrimitivePayload | ( | int | seed | ) |
Definition at line 22 of file PrimitivePayload.cc.
References D, t_bool, t_enum, and t_string.
: m_i(seed + 9999), t_bool(false), t_uchar(seed), t_char(seed), t_short(seed), t_ushort(seed), t_int(seed), t_uint(seed), t_long(seed), t_ulong(seed), t_llong(seed), t_float(seed), t_double(seed), t_string(""), t_enum(A){ if( seed % 2== 0 ){ t_bool = true; t_enum = D; } std::stringstream ss; ss << seed; t_string = ss.str(); }
bool PrimitivePayload::operator!= | ( | const PrimitivePayload & | rhs | ) | const |
Definition at line 65 of file PrimitivePayload.cc.
References operator==().
{ return !operator==(rhs); }
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!=().
{ if( m_i != rhs.m_i ) return false; if( t_bool != rhs.t_bool ) return false; if( t_uchar != rhs.t_uchar ) return false; if( t_char != rhs.t_char ) return false; if( t_short != rhs.t_short ) return false; if( t_ushort != rhs.t_ushort ) return false; if( t_int != rhs.t_int ) return false; if( t_uint != rhs.t_uint ) return false; if( t_long != rhs.t_long ) return false; if( t_ulong != rhs.t_ulong ) return false; if( t_llong != rhs.t_llong ) return false; if( t_float != rhs.t_float ) return false; if( t_double != rhs.t_double ) return false; if( t_string != rhs.t_string ) return false; if( t_enum != rhs.t_enum ) return false; return true; }
int PrimitivePayload::m_i [private] |
Reimplemented in RegressionTestPayload.
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==().