test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ArrayPayload.h
Go to the documentation of this file.
1 #include <string>
2 #include <vector>
3 #include <map>
4 #include <list>
5 #include <set>
6 #include <bitset>
7 
8 struct Param {
9  Param();
10  Param( int seed );
11  int p_i;
13  bool operator ==(const Param& rhs) const;
14  bool operator !=(const Param& rhs) const;
15 };
16 
17 class ArrayPayload {
18  public:
19  ArrayPayload();
20  ArrayPayload( int seed );
21  bool operator ==(const ArrayPayload& rhs) const;
22  bool operator !=(const ArrayPayload& rhs) const;
23  private:
24  int m_i;
25  // c-arrays
26  int m_ai0[4];
27  int m_ai1[112];
28  int m_ai2[3][2];
29  int m_ai3[2][80];
33  Param m_ap1[112];
34  // stl containers
35  std::pair<unsigned int,unsigned int> m_p0;
36  std::pair<int,std::string> m_p1;
37  std::pair<int,Param> m_p2;
38  std::vector<int> m_vec0;
39  std::vector<std::string> m_vec1;
40  std::map<unsigned int,unsigned int> m_map0;
41  std::map<std::string,std::string> m_map1;
42  std::list<int> m_list;
43  std::set<std::string> m_set;
44  std::bitset<128> m_bitset;
45  std::vector<Param> m_vec2;
46  std::map<int,Param> m_map2;
47  // blob streaming
48  std::vector<Param> m_vec3;
49 };
Param m_ap0[4]
Definition: ArrayPayload.h:32
bool operator==(const ArrayPayload &rhs) const
bool operator!=(const ArrayPayload &rhs) const
std::set< std::string > m_set
Definition: ArrayPayload.h:43
Param m_ap1[112]
Definition: ArrayPayload.h:33
std::vector< int > m_vec0
Definition: ArrayPayload.h:38
std::vector< Param > m_vec2
Definition: ArrayPayload.h:45
std::vector< Param > m_vec3
Definition: ArrayPayload.h:48
std::pair< int, std::string > m_p1
Definition: ArrayPayload.h:36
std::bitset< 128 > m_bitset
Definition: ArrayPayload.h:44
int m_ai2[3][2]
Definition: ArrayPayload.h:28
bool operator!=(const Param &rhs) const
Definition: ArrayPayload.cc:23
std::string m_as0[4]
Definition: ArrayPayload.h:30
int m_ai1[112]
Definition: ArrayPayload.h:27
std::string p_s
Definition: ArrayPayload.h:12
std::pair< unsigned int, unsigned int > m_p0
Definition: ArrayPayload.h:35
int p_i
Definition: ArrayPayload.h:11
std::map< std::string, std::string > m_map1
Definition: ArrayPayload.h:41
bool operator==(const Param &rhs) const
Definition: ArrayPayload.cc:17
std::pair< int, Param > m_p2
Definition: ArrayPayload.h:37
std::map< int, Param > m_map2
Definition: ArrayPayload.h:46
std::list< int > m_list
Definition: ArrayPayload.h:42
std::string m_as1[112]
Definition: ArrayPayload.h:31
int m_ai3[2][80]
Definition: ArrayPayload.h:29
std::map< unsigned int, unsigned int > m_map0
Definition: ArrayPayload.h:40
int m_ai0[4]
Definition: ArrayPayload.h:26
std::vector< std::string > m_vec1
Definition: ArrayPayload.h:39