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
Param Struct Reference

#include <ArrayPayload.h>

Public Member Functions

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

Public Attributes

int p_i
 
std::string p_s
 

Detailed Description

Definition at line 8 of file ArrayPayload.h.

Constructor & Destructor Documentation

Param::Param ( )

Definition at line 4 of file ArrayPayload.cc.

4  :
5  p_i( -1 ),
6  p_s(""){
7 }
std::string p_s
Definition: ArrayPayload.h:12
int p_i
Definition: ArrayPayload.h:11
Param::Param ( int  seed)

Definition at line 9 of file ArrayPayload.cc.

References p_s.

9  :
10  p_i( seed ),
11  p_s(""){
12  std::stringstream ss;
13  ss << seed;
14  p_s = ss.str();
15 }
std::string p_s
Definition: ArrayPayload.h:12
int p_i
Definition: ArrayPayload.h:11

Member Function Documentation

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

Definition at line 23 of file ArrayPayload.cc.

References operator==().

23  {
24  return !operator==( rhs );
25 }
bool operator==(const Param &rhs) const
Definition: ArrayPayload.cc:17
bool Param::operator== ( const Param rhs) const

Definition at line 17 of file ArrayPayload.cc.

References p_i, and p_s.

Referenced by operator!=().

17  {
18  if( p_i != rhs.p_i ) return false;
19  if( p_s != rhs.p_s ) return false;
20  return true;
21 }
std::string p_s
Definition: ArrayPayload.h:12
int p_i
Definition: ArrayPayload.h:11

Member Data Documentation

int Param::p_i

Definition at line 11 of file ArrayPayload.h.

Referenced by operator==().

std::string Param::p_s

Definition at line 12 of file ArrayPayload.h.

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