Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MarshaledG4VHitsCollection Class Reference

#include <MarshaledG4VHitsCollection.h>

Inheritance diagram for MarshaledG4VHitsCollection:
Collaboration diagram for MarshaledG4VHitsCollection:

Public Member Functions

 MarshaledG4VHitsCollection (G4VHitsCollection *objptr)
 
 MarshaledG4VHitsCollection (void *buf, char isUnmarshaling= 'u')
 
 ~MarshaledG4VHitsCollection ()
 
G4VHitsCollectionunmarshal ()
 
void unmarshalTo (G4VHitsCollection *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
void marshal2 ()
 
void unmarshal2 ()
 
void marshal3 ()
 
void unmarshal3 ()
 
 MarshaledG4VHitsCollection (G4VHitsCollection *objptr)
 
 MarshaledG4VHitsCollection (void *buf, char chIsUnmarshaling= 'u')
 
 ~MarshaledG4VHitsCollection ()
 
G4VHitsCollectionunmarshal ()
 
void unmarshalTo (G4VHitsCollection *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
void marshal2 ()
 
void unmarshal2 ()
 
void marshal3 ()
 
void unmarshal3 ()
 
 MarshaledG4VHitsCollection (G4VHitsCollection *objptr)
 
 MarshaledG4VHitsCollection (void *buf, char isUnmarshaling= 'u')
 
 ~MarshaledG4VHitsCollection ()
 
G4VHitsCollectionunmarshal ()
 
void unmarshalTo (G4VHitsCollection *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
void marshal2 ()
 
void unmarshal2 ()
 
void marshal3 ()
 
void unmarshal3 ()
 
 MarshaledG4VHitsCollection (G4VHitsCollection *objptr)
 
 MarshaledG4VHitsCollection (void *buf, char chIsUnmarshaling= 'u')
 
 ~MarshaledG4VHitsCollection ()
 
G4VHitsCollectionunmarshal ()
 
void unmarshalTo (G4VHitsCollection *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
void marshal2 ()
 
void unmarshal2 ()
 
void marshal3 ()
 
void unmarshal3 ()
 
- Public Member Functions inherited from MarshaledObj
 MarshaledObj ()
 
 MarshaledObj (void *buf, char chIsUnmarshaling)
 
 ~MarshaledObj ()
 
bool isUnmarshaling ()
 
void EXTEND_BUFFER (int size)
 
void resizeBuffer (size_t new_size)
 
int getBufferSize ()
 
char * getBuffer ()
 
void marshalPrimitive (void *p, int size)
 
void unmarshalPrimitive (void *p, int size)
 
 MarshaledObj ()
 
 MarshaledObj (void *buf, char chIsUnmarshaling)
 
 ~MarshaledObj ()
 
bool isUnmarshaling ()
 
void EXTEND_BUFFER (int size)
 
void resizeBuffer (size_t new_size)
 
int getBufferSize ()
 
char * getBuffer ()
 
void marshalPrimitive (void *p, int size)
 
void unmarshalPrimitive (void *p, int size)
 

Public Attributes

G4VHitsCollectionparam
 
ShadowedMarshaledG4VHitsCollectionShadowed_param
 

Additional Inherited Members

- Static Public Member Functions inherited from MarshaledObj
static int ROUND_UP (int x)
 
static int ROUND_UP (int x)
 
- Protected Attributes inherited from MarshaledObj
int msh_typechoice
 
char * msh_buffer
 
char * msh_field_begin
 
size_t msh_size
 
char * msh_cursor
 
size_t msh_extent
 
bool msh_isUnmarshalDone
 

Detailed Description

Definition at line 23 of file MarshaledG4VHitsCollection.h.

Constructor & Destructor Documentation

MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( G4VHitsCollection objptr)
inline

Definition at line 32 of file MarshaledG4VHitsCollection.h.

32  : MarshaledObj() {
33  msh_isUnmarshalDone = false;
34  this->param = objptr;
36  if (objptr == NULL)
37  return;
38 
39  marshal1();
40  marshal2();
41  marshal3();
42 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119

Here is the call graph for this function:

MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( void buf,
char  isUnmarshaling = 'u' 
)
inline

Definition at line 44 of file MarshaledG4VHitsCollection.h.

46  msh_isUnmarshalDone = false;
47 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
bool isUnmarshaling()
Definition: MarshaledObj.h:92
MarshaledG4VHitsCollection::~MarshaledG4VHitsCollection ( )
inline

Definition at line 49 of file MarshaledG4VHitsCollection.h.

49  {
50  //if(msh_isUnmarshalDone && this->param != NULL) {
51  //delete this->param;
52  //}
53 }
MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( G4VHitsCollection objptr)
inline

Definition at line 29 of file MarshaledG4VHitsCollection.h.

29  : MarshaledObj() {
30  msh_isUnmarshalDone = false;
31  this->param = objptr;
33  if (objptr == NULL)
34  return;
35 
36  marshal1();
37  marshal2();
38  marshal3();
39 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119

Here is the call graph for this function:

MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( void buf,
char  chIsUnmarshaling = 'u' 
)
inline

Definition at line 41 of file MarshaledG4VHitsCollection.h.

42 : MarshaledObj(buf, chIsUnmarshaling) {
43  msh_isUnmarshalDone = false;
44 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
MarshaledG4VHitsCollection::~MarshaledG4VHitsCollection ( )
inline

Definition at line 46 of file MarshaledG4VHitsCollection.h.

46  {
47  //if(msh_isUnmarshalDone && this->param != NULL) {
48  //delete this->param;
49  //}
50 }
MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( G4VHitsCollection objptr)
inline

Definition at line 32 of file MarshaledG4VHitsCollection.h.

32  : MarshaledObj() {
33  msh_isUnmarshalDone = false;
34  this->param = objptr;
36  if (objptr == NULL)
37  return;
38 
39  marshal1();
40  marshal2();
41  marshal3();
42 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119

Here is the call graph for this function:

MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( void buf,
char  isUnmarshaling = 'u' 
)
inline

Definition at line 44 of file MarshaledG4VHitsCollection.h.

46  msh_isUnmarshalDone = false;
47 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
bool isUnmarshaling()
Definition: MarshaledObj.h:92
MarshaledG4VHitsCollection::~MarshaledG4VHitsCollection ( )
inline

Definition at line 49 of file MarshaledG4VHitsCollection.h.

49  {
50  //if(msh_isUnmarshalDone && this->param != NULL) {
51  //delete this->param;
52  //}
53 }
MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( G4VHitsCollection objptr)
inline

Definition at line 29 of file MarshaledG4VHitsCollection.h.

29  : MarshaledObj() {
30  msh_isUnmarshalDone = false;
31  this->param = objptr;
33  if (objptr == NULL)
34  return;
35 
36  marshal1();
37  marshal2();
38  marshal3();
39 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119

Here is the call graph for this function:

MarshaledG4VHitsCollection::MarshaledG4VHitsCollection ( void buf,
char  chIsUnmarshaling = 'u' 
)
inline

Definition at line 41 of file MarshaledG4VHitsCollection.h.

42 : MarshaledObj(buf, chIsUnmarshaling) {
43  msh_isUnmarshalDone = false;
44 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
MarshaledG4VHitsCollection::~MarshaledG4VHitsCollection ( )
inline

Definition at line 46 of file MarshaledG4VHitsCollection.h.

46  {
47  //if(msh_isUnmarshalDone && this->param != NULL) {
48  //delete this->param;
49  //}
50 }

Member Function Documentation

void MarshaledG4VHitsCollection::marshal1 ( )
inline

Definition at line 87 of file MarshaledG4VHitsCollection.h.

87  {
88  //declare field_size to be the size of this field
89  int msh_currentSize = 0;
90  if (isUnmarshaling())
91  throw "Tried to marshal in obj marked isUnmarshaling == true";
92 
93  //Copy the sizespec into msh_currentSize here:
94  {
95  // no need to declare size since msh_currentSize is already assigned
96  //in the MARSHAL field
97 
98  }
99 
100  //Increase the size of buffer if needed
101  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
102  // 4 bytes for the total size of field, 4 bytes for the number
103  // of elements in the array (in the case of array marshaling)
104  //Mark the beginning position for this field, will write the total
105  //size of this field here later
107 
108  //Advance cursor of distance = sizeof(int)
109  msh_cursor += sizeof(int);
110 
111  //Now just copy "get" functions here
112  {
113  G4String anElement;
114  anElement = param->GetName();
115  MarshaledG4String var(&anElement);
116  EXTEND_BUFFER(var.getBufferSize());
117  msh_currentSize = var.getBufferSize();
118  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
119  }
120  //Now advance the cursor
121  msh_cursor += msh_currentSize;
122  //Now set the size of this field
123  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
124  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
125  memcpy(msh_field_begin, &tmp, sizeof(int));
126 
127  //Now set msh_size
130 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal1 ( )
inline

Definition at line 90 of file MarshaledG4VHitsCollection.h.

90  {
91  //declare field_size to be the size of this field
92  int msh_currentSize = 0;
93  if (isUnmarshaling())
94  throw "Tried to marshal in obj marked isUnmarshaling == true";
95 
96  //Copy the sizespec into msh_currentSize here:
97  {
98  // no need to declare size since msh_currentSize is already assigned in the MARSHAL field
99 
100  }
101 
102  //Increase the size of buffer if needed
103  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int)); // 4 bytes for the total size of field, 4 bytes for the number of elements in the array (in the case of array marshaling)
104  //Mark the beginning position for this field, will write the total size of this field here later
106 
107  //Advance cursor of distance = sizeof(int)
108  msh_cursor += sizeof(int);
109 
110  //Now just copy "get" functions here
111  {
112  G4String anElement;
113  anElement = param->GetName();
114  MarshaledG4String var(&anElement);
115  EXTEND_BUFFER(var.getBufferSize());
116  msh_currentSize = var.getBufferSize();
117  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
118  }
119  //Now advance the cursor
120  msh_cursor += msh_currentSize;
121  //Now set the size of this field
122  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
123  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
124  memcpy(msh_field_begin, &tmp, sizeof(int));
125 
126  //Now set msh_size
129 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

Here is the caller graph for this function:

void MarshaledG4VHitsCollection::marshal1 ( )
inline

Definition at line 96 of file MarshaledG4VHitsCollection.h.

96  {
97  //declare field_size to be the size of this field
98  int msh_currentSize = 0;
99  if (isUnmarshaling())
100  throw "Tried to marshal in obj marked isUnmarshaling == true";
101 
102  //Copy the sizespec into msh_currentSize here:
103  {
104  // no need to declare size since msh_currentSize is already assigned
105  //in the MARSHAL field
106 
107  }
108 
109  //Increase the size of buffer if needed
110  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
111  // 4 bytes for the total size of field, 4 bytes for the number of
112  // elements in the array (in the case of array marshaling)
113  //Mark the beginning position for this field, will write the total size
114  //of this field here later
116 
117  //Advance cursor of distance = sizeof(int)
118  msh_cursor += sizeof(int);
119 
120  //Now just copy "get" functions here
121  {
122  G4String anElement;
123  anElement = param->GetName();
124  MarshaledG4String var(&anElement);
125  EXTEND_BUFFER(var.getBufferSize());
126  msh_currentSize = var.getBufferSize();
127  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
128  }
129  //Now advance the cursor
130  msh_cursor += msh_currentSize;
131  //Now set the size of this field
132  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
133  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
134  memcpy(msh_field_begin, &tmp, sizeof(int));
135 
136  //Now set msh_size
139 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal1 ( )
inline

Definition at line 99 of file MarshaledG4VHitsCollection.h.

99  {
100  //declare field_size to be the size of this field
101  int msh_currentSize = 0;
102  if (isUnmarshaling())
103  throw "Tried to marshal in obj marked isUnmarshaling == true";
104 
105  //Copy the sizespec into msh_currentSize here:
106  {
107  // no need to declare size since msh_currentSize is already assigned in the MARSHAL field
108 
109  }
110 
111  //Increase the size of buffer if needed
112  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int)); // 4 bytes for the total size of field, 4 bytes for the number of elements in the array (in the case of array marshaling)
113  //Mark the beginning position for this field, will write the total size of this field here later
115 
116  //Advance cursor of distance = sizeof(int)
117  msh_cursor += sizeof(int);
118 
119  //Now just copy "get" functions here
120  {
121  G4String anElement;
122  anElement = param->GetName();
123  MarshaledG4String var(&anElement);
124  EXTEND_BUFFER(var.getBufferSize());
125  msh_currentSize = var.getBufferSize();
126  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
127  }
128  //Now advance the cursor
129  msh_cursor += msh_currentSize;
130  //Now set the size of this field
131  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
132  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
133  memcpy(msh_field_begin, &tmp, sizeof(int));
134 
135  //Now set msh_size
138 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal2 ( )
inline

Definition at line 148 of file MarshaledG4VHitsCollection.h.

148  {
149  //declare field_size to be the size of this field
150  int msh_currentSize = 0;
151  if (isUnmarshaling())
152  throw "Tried to marshal in obj marked isUnmarshaling == true";
153 
154  //Copy the sizespec into msh_currentSize here:
155  {
156  // no need to declare size since msh_currentSize is already assigned in the MARSHAL field
157 
158  }
159 
160  //Increase the size of buffer if needed
161  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int)); // 4 bytes for the total size of field, 4 bytes for the number of elements in the array (in the case of array marshaling)
162  //Mark the beginning position for this field, will write the total size of this field here later
164 
165  //Advance cursor of distance = sizeof(int)
166  msh_cursor += sizeof(int);
167 
168  //Now just copy "get" functions here
169  {
170  G4String anElement;
171  anElement = param->GetSDname();
172  MarshaledG4String var(&anElement);
173  EXTEND_BUFFER(var.getBufferSize());
174  msh_currentSize = var.getBufferSize();
175  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
176  }
177  //Now advance the cursor
178  msh_cursor += msh_currentSize;
179  //Now set the size of this field
180  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
181  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
182  memcpy(msh_field_begin, &tmp, sizeof(int));
183 
184  //Now set msh_size
187 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

Here is the caller graph for this function:

void MarshaledG4VHitsCollection::marshal2 ( )
inline

Definition at line 149 of file MarshaledG4VHitsCollection.h.

149  {
150  //declare field_size to be the size of this field
151  int msh_currentSize = 0;
152  if (isUnmarshaling())
153  throw "Tried to marshal in obj marked isUnmarshaling == true";
154 
155  //Copy the sizespec into msh_currentSize here:
156  {
157  // no need to declare size since msh_currentSize is already assigned
158  // in the MARSHAL field
159 
160  }
161 
162  //Increase the size of buffer if needed
163  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
164  // 4 bytes for the total size of field, 4 bytes for the number
165  // of elements in the array (in the case of array marshaling)
166  //Mark the beginning position for this field, will write the total
167  // size of this field here later
169 
170  //Advance cursor of distance = sizeof(int)
171  msh_cursor += sizeof(int);
172 
173  //Now just copy "get" functions here
174  {
175  G4String anElement;
176  anElement = param->GetSDname();
177  MarshaledG4String var(&anElement);
178  EXTEND_BUFFER(var.getBufferSize());
179  msh_currentSize = var.getBufferSize();
180  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
181  }
182  //Now advance the cursor
183  msh_cursor += msh_currentSize;
184  //Now set the size of this field
185  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
186  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
187  memcpy(msh_field_begin, &tmp, sizeof(int));
188 
189  //Now set msh_size
192 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal2 ( )
inline

Definition at line 157 of file MarshaledG4VHitsCollection.h.

157  {
158  //declare field_size to be the size of this field
159  int msh_currentSize = 0;
160  if (isUnmarshaling())
161  throw "Tried to marshal in obj marked isUnmarshaling == true";
162 
163  //Copy the sizespec into msh_currentSize here:
164  {
165  // no need to declare size since msh_currentSize is already assigned in the MARSHAL field
166 
167  }
168 
169  //Increase the size of buffer if needed
170  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int)); // 4 bytes for the total size of field, 4 bytes for the number of elements in the array (in the case of array marshaling)
171  //Mark the beginning position for this field, will write the total size of this field here later
173 
174  //Advance cursor of distance = sizeof(int)
175  msh_cursor += sizeof(int);
176 
177  //Now just copy "get" functions here
178  {
179  G4String anElement;
180  anElement = param->GetSDname();
181  MarshaledG4String var(&anElement);
182  EXTEND_BUFFER(var.getBufferSize());
183  msh_currentSize = var.getBufferSize();
184  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
185  }
186  //Now advance the cursor
187  msh_cursor += msh_currentSize;
188  //Now set the size of this field
189  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
190  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
191  memcpy(msh_field_begin, &tmp, sizeof(int));
192 
193  //Now set msh_size
196 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal2 ( )
inline

Definition at line 158 of file MarshaledG4VHitsCollection.h.

158  {
159  //declare field_size to be the size of this field
160  int msh_currentSize = 0;
161  if (isUnmarshaling())
162  throw "Tried to marshal in obj marked isUnmarshaling == true";
163 
164  //Copy the sizespec into msh_currentSize here:
165  {
166  // no need to declare size since msh_currentSize is already assigned
167  // in the MARSHAL field
168 
169  }
170 
171  //Increase the size of buffer if needed
172  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
173  // 4 bytes for the total size of field, 4 bytes for the number of
174  // elements in the array (in the case of array marshaling)
175  //Mark the beginning position for this field, will write the total size
176  //of this field here later
178 
179  //Advance cursor of distance = sizeof(int)
180  msh_cursor += sizeof(int);
181 
182  //Now just copy "get" functions here
183  {
184  G4String anElement;
185  anElement = param->GetSDname();
186  MarshaledG4String var(&anElement);
187  EXTEND_BUFFER(var.getBufferSize());
188  msh_currentSize = var.getBufferSize();
189  memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
190  }
191  //Now advance the cursor
192  msh_cursor += msh_currentSize;
193  //Now set the size of this field
194  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
195  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
196  memcpy(msh_field_begin, &tmp, sizeof(int));
197 
198  //Now set msh_size
201 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal3 ( )
inline

Definition at line 206 of file MarshaledG4VHitsCollection.h.

206  {
207  //declare field_size to be the size of this field
208  int msh_currentSize = 0;
209  if (isUnmarshaling())
210  throw "Tried to marshal in obj marked isUnmarshaling == true";
211 
212  //Copy the sizespec into msh_currentSize here:
213  {
214  //code for size, just dummy code because the size will be set correctly at the end of marshaling code
215 
216  }
217 
218  //Increase the size of buffer if needed
219  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int)); // 4 bytes for the total size of field, 4 bytes for the number of elements in the array (in the case of array marshaling)
220  //Mark the beginning position for this field, will write the total size of this field here later
222 
223  //Advance cursor of distance = sizeof(int)
224  msh_cursor += sizeof(int);
225 
226  //Now just copy "get" functions here
227  {
230  EXTEND_BUFFER(marChild.getBufferSize());
231  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
232  msh_currentSize = marChild.getBufferSize();
233  msh_typechoice = 0;
234 
235  }
236  //Now advance the cursor
237  msh_cursor += msh_currentSize;
238  //Now set the size of this field
239  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
240  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
241  memcpy(msh_field_begin, &tmp, sizeof(int));
242 
243  //Now set msh_size
246 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

Here is the caller graph for this function:

void MarshaledG4VHitsCollection::marshal3 ( )
inline

Definition at line 211 of file MarshaledG4VHitsCollection.h.

211  {
212  //declare field_size to be the size of this field
213  int msh_currentSize = 0;
214  if (isUnmarshaling())
215  throw "Tried to marshal in obj marked isUnmarshaling == true";
216 
217  //Copy the sizespec into msh_currentSize here:
218  {
219  //code for size, just dummy code because the size will be
220  //set correctly at the end of marshaling code
221 
222  }
223 
224  //Increase the size of buffer if needed
225  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
226  // 4 bytes for the total size of field, 4 bytes for the number of
227  // elements in the array (in the case of array marshaling)
228  //Mark the beginning position for this field, will write the total
229  //size of this field here later
231 
232  //Advance cursor of distance = sizeof(int)
233  msh_cursor += sizeof(int);
234 
235  //Now just copy "get" functions here
236  {
239  EXTEND_BUFFER(marChild.getBufferSize());
240  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
241  msh_currentSize = marChild.getBufferSize();
242  msh_typechoice = 0;
243 
244  }
245  //Now advance the cursor
246  msh_cursor += msh_currentSize;
247  //Now set the size of this field
248  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
249  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
250  memcpy(msh_field_begin, &tmp, sizeof(int));
251 
252  //Now set msh_size
255 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal3 ( )
inline

Definition at line 215 of file MarshaledG4VHitsCollection.h.

215  {
216  //declare field_size to be the size of this field
217  int msh_currentSize = 0;
218  if (isUnmarshaling())
219  throw "Tried to marshal in obj marked isUnmarshaling == true";
220 
221  //Copy the sizespec into msh_currentSize here:
222  {
223  //code for size, just dummy code because the size will be set correctly at the end of marshaling code
224 
225  }
226 
227  //Increase the size of buffer if needed
228  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int)); // 4 bytes for the total size of field, 4 bytes for the number of elements in the array (in the case of array marshaling)
229  //Mark the beginning position for this field, will write the total size of this field here later
231 
232  //Advance cursor of distance = sizeof(int)
233  msh_cursor += sizeof(int);
234 
235  //Now just copy "get" functions here
236  {
237  if(0){}
238  else if((param->GetName() == "calCollection") ){
241  EXTEND_BUFFER(marChild.getBufferSize());
242  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
243  msh_currentSize = marChild.getBufferSize();
244  msh_typechoice = 0;
245  }
246  else if( (param->GetName() == "muonCollection") ){
249  EXTEND_BUFFER(marChild.getBufferSize());
250  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
251  msh_currentSize = marChild.getBufferSize();
252  msh_typechoice = 1;
253  }
254  else if( true ){
257  EXTEND_BUFFER(marChild.getBufferSize());
258  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
259  msh_currentSize = marChild.getBufferSize();
260  msh_typechoice = 2;
261  }
262 
263  }
264  //Now advance the cursor
265  msh_cursor += msh_currentSize;
266  //Now set the size of this field
267  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
268  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
269  memcpy(msh_field_begin, &tmp, sizeof(int));
270 
271  //Now set msh_size
274 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

void MarshaledG4VHitsCollection::marshal3 ( )
inline

Definition at line 220 of file MarshaledG4VHitsCollection.h.

220  {
221  //declare field_size to be the size of this field
222  int msh_currentSize = 0;
223  if (isUnmarshaling())
224  throw "Tried to marshal in obj marked isUnmarshaling == true";
225 
226  //Copy the sizespec into msh_currentSize here:
227  {
228  //code for size, just dummy code because the size will be set correctly
229  //at the end of marshaling code
230 
231  }
232 
233  //Increase the size of buffer if needed
234  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
235  // 4 bytes for the total size of field, 4 bytes for the number of
236  // elements in the array (in the case of array marshaling)
237  //Mark the beginning position for this field, will write the total size
238  //of this field here later
240 
241  //Advance cursor of distance = sizeof(int)
242  msh_cursor += sizeof(int);
243 
244  //Now just copy "get" functions here
245  {
246  if(0){}
247  else if((param->GetName() == "calCollection") ){
251  EXTEND_BUFFER(marChild.getBufferSize());
252  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
253  msh_currentSize = marChild.getBufferSize();
254  msh_typechoice = 0;
255  }
256  else if( (param->GetName() == "muonCollection") ){
260  EXTEND_BUFFER(marChild.getBufferSize());
261  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
262  msh_currentSize = marChild.getBufferSize();
263  msh_typechoice = 1;
264  }
265  else if( true ){
269  EXTEND_BUFFER(marChild.getBufferSize());
270  memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
271  msh_currentSize = marChild.getBufferSize();
272  msh_typechoice = 2;
273  }
274 
275  }
276  //Now advance the cursor
277  msh_cursor += msh_currentSize;
278  //Now set the size of this field
279  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
280  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
281  memcpy(msh_field_begin, &tmp, sizeof(int));
282 
283  //Now set msh_size
286 }
#define MSH_SET_TYPECHOICE(X)
Definition: MarshaledObj.h:21
bool isUnmarshaling()
Definition: MarshaledObj.h:92
size_t msh_size
Definition: MarshaledObj.h:110
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
void EXTEND_BUFFER(int size)
Definition: MarshaledObj.h:122
char * msh_field_begin
Definition: MarshaledObj.h:107
char * msh_cursor
Definition: MarshaledObj.h:113
#define MSH_SET_TOTALSIZE(X)
Definition: MarshaledObj.h:22
char * msh_buffer
Definition: MarshaledObj.h:104

Here is the call graph for this function:

G4VHitsCollection* MarshaledG4VHitsCollection::unmarshal ( )
inline

Definition at line 52 of file MarshaledG4VHitsCollection.h.

52  {
53  //We don't want to unmarshal the buffer is empty.
54  if(msh_size <= MSH_HEADER_SIZE) {
55  //This is buggy, we can't always assume that
56  //obj == NULL <==> List is empty.
57  return NULL;
58  } else {
59  {
61  }
63  this->msh_isUnmarshalDone = true;
64  unmarshal1();
65  unmarshal2();
66  unmarshal3();
67  return this->param;
68  }
69 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

G4VHitsCollection* MarshaledG4VHitsCollection::unmarshal ( )
inline

Definition at line 52 of file MarshaledG4VHitsCollection.h.

52  {
53  //We don't want to unmarshal the buffer is empty.
54  if(msh_size <= MSH_HEADER_SIZE) {
55  //This is buggy, we can't always assume that
56  //obj == NULL <==> List is empty.
57  return NULL;
58  } else {
59  {
60  if(0){}
61  else if(msh_typechoice == 0){
63  }
64  else if(msh_typechoice == 1){
66  }
67  else if(msh_typechoice == 2){
69  }
70  }
72  this->msh_isUnmarshalDone = true;
73  unmarshal1();
74  unmarshal2();
75  unmarshal3();
76  return this->param;
77  }
78 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

G4VHitsCollection* MarshaledG4VHitsCollection::unmarshal ( )
inline

Definition at line 55 of file MarshaledG4VHitsCollection.h.

55  {
56  //We don't want to unmarshal the buffer is empty.
57  if(msh_size <= MSH_HEADER_SIZE) {
58  //This is buggy, we can't always assume that
59  //obj == NULL <==> List is empty.
60  return NULL;
61  } else {
62  {
63  if(0){}
64  else if(msh_typechoice == 0){
66  }
67  else if(msh_typechoice == 1){
69  }
70  else if(msh_typechoice == 2){
72  }
73  }
75  this->msh_isUnmarshalDone = true;
76  unmarshal1();
77  unmarshal2();
78  unmarshal3();
79  return this->param;
80  }
81 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

G4VHitsCollection* MarshaledG4VHitsCollection::unmarshal ( )
inline

Definition at line 55 of file MarshaledG4VHitsCollection.h.

55  {
56  //We don't want to unmarshal the buffer is empty.
57  if(msh_size <= MSH_HEADER_SIZE) {
58  //This is buggy, we can't always assume that
59  //obj == NULL <==> List is empty.
60  return NULL;
61  } else {
62  {
64  }
66  this->msh_isUnmarshalDone = true;
67  unmarshal1();
68  unmarshal2();
69  unmarshal3();
70  return this->param;
71  }
72 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

Here is the caller graph for this function:

void MarshaledG4VHitsCollection::unmarshal1 ( )
inline

Definition at line 131 of file MarshaledG4VHitsCollection.h.

131  {
132  //declare currentSize to be the size of this field
133  int msh_currentSize = 0;
134  //copy the size of the current field into currentSize
135  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
136  msh_cursor += sizeof(int);
137  //Now copy the setspec here
138  {
139  MarshaledG4String var(msh_cursor, 'u');
140  G4String anElement;
141  var.unmarshalTo(&anElement);
142  Shadowed_param->collectionName=anElement;
143 
144  }
145  msh_cursor += msh_currentSize;
146 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

Here is the caller graph for this function:

void MarshaledG4VHitsCollection::unmarshal1 ( )
inline

Definition at line 132 of file MarshaledG4VHitsCollection.h.

132  {
133  //declare currentSize to be the size of this field
134  int msh_currentSize = 0;
135  //copy the size of the current field into currentSize
136  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
137  msh_cursor += sizeof(int);
138  //Now copy the setspec here
139  {
140  MarshaledG4String var(msh_cursor, 'u');
141  G4String anElement;
142  var.unmarshalTo(&anElement);
143  Shadowed_param->collectionName=anElement;
144 
145  }
146  msh_cursor += msh_currentSize;
147 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal1 ( )
inline

Definition at line 140 of file MarshaledG4VHitsCollection.h.

140  {
141  //declare currentSize to be the size of this field
142  int msh_currentSize = 0;
143  //copy the size of the current field into currentSize
144  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
145  msh_cursor += sizeof(int);
146  //Now copy the setspec here
147  {
148  MarshaledG4String var(msh_cursor, 'u');
149  G4String anElement;
150  var.unmarshalTo(&anElement);
151  Shadowed_param->collectionName=anElement;
152 
153  }
154  msh_cursor += msh_currentSize;
155 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal1 ( )
inline

Definition at line 141 of file MarshaledG4VHitsCollection.h.

141  {
142  //declare currentSize to be the size of this field
143  int msh_currentSize = 0;
144  //copy the size of the current field into currentSize
145  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
146  msh_cursor += sizeof(int);
147  //Now copy the setspec here
148  {
149  MarshaledG4String var(msh_cursor, 'u');
150  G4String anElement;
151  var.unmarshalTo(&anElement);
152  Shadowed_param->collectionName=anElement;
153 
154  }
155  msh_cursor += msh_currentSize;
156 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal2 ( )
inline

Definition at line 189 of file MarshaledG4VHitsCollection.h.

189  {
190  //declare currentSize to be the size of this field
191  int msh_currentSize = 0;
192  //copy the size of the current field into currentSize
193  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
194  msh_cursor += sizeof(int);
195  //Now copy the setspec here
196  {
197  MarshaledG4String var(msh_cursor, 'u');
198  G4String anElement;
199  var.unmarshalTo(&anElement);
200  Shadowed_param->SDname=anElement;
201 
202  }
203  msh_cursor += msh_currentSize;
204 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

Here is the caller graph for this function:

void MarshaledG4VHitsCollection::unmarshal2 ( )
inline

Definition at line 194 of file MarshaledG4VHitsCollection.h.

194  {
195  //declare currentSize to be the size of this field
196  int msh_currentSize = 0;
197  //copy the size of the current field into currentSize
198  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
199  msh_cursor += sizeof(int);
200  //Now copy the setspec here
201  {
202  MarshaledG4String var(msh_cursor, 'u');
203  G4String anElement;
204  var.unmarshalTo(&anElement);
205  Shadowed_param->SDname=anElement;
206 
207  }
208  msh_cursor += msh_currentSize;
209 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal2 ( )
inline

Definition at line 198 of file MarshaledG4VHitsCollection.h.

198  {
199  //declare currentSize to be the size of this field
200  int msh_currentSize = 0;
201  //copy the size of the current field into currentSize
202  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
203  msh_cursor += sizeof(int);
204  //Now copy the setspec here
205  {
206  MarshaledG4String var(msh_cursor, 'u');
207  G4String anElement;
208  var.unmarshalTo(&anElement);
209  Shadowed_param->SDname=anElement;
210 
211  }
212  msh_cursor += msh_currentSize;
213 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal2 ( )
inline

Definition at line 203 of file MarshaledG4VHitsCollection.h.

203  {
204  //declare currentSize to be the size of this field
205  int msh_currentSize = 0;
206  //copy the size of the current field into currentSize
207  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
208  msh_cursor += sizeof(int);
209  //Now copy the setspec here
210  {
211  MarshaledG4String var(msh_cursor, 'u');
212  G4String anElement;
213  var.unmarshalTo(&anElement);
214  Shadowed_param->SDname=anElement;
215 
216  }
217  msh_cursor += msh_currentSize;
218 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal3 ( )
inline

Definition at line 248 of file MarshaledG4VHitsCollection.h.

248  {
249  //declare currentSize to be the size of this field
250  int msh_currentSize = 0;
251  //copy the size of the current field into currentSize
252  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
253  msh_cursor += sizeof(int);
254  //Now copy the setspec here
255  {
257  marObj.unmarshalTo((G4THitsCollection<ExN02TrackerHit>*)param);
258 
259  }
260  msh_cursor += msh_currentSize;
261 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

Here is the caller graph for this function:

void MarshaledG4VHitsCollection::unmarshal3 ( )
inline

Definition at line 257 of file MarshaledG4VHitsCollection.h.

257  {
258  //declare currentSize to be the size of this field
259  int msh_currentSize = 0;
260  //copy the size of the current field into currentSize
261  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
262  msh_cursor += sizeof(int);
263  //Now copy the setspec here
264  {
266  marObj.unmarshalTo((G4THitsCollection<ExN02TrackerHit>*)param);
267 
268  }
269  msh_cursor += msh_currentSize;
270 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal3 ( )
inline

Definition at line 276 of file MarshaledG4VHitsCollection.h.

276  {
277  //declare currentSize to be the size of this field
278  int msh_currentSize = 0;
279  //copy the size of the current field into currentSize
280  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
281  msh_cursor += sizeof(int);
282  //Now copy the setspec here
283  {
284  if(0){}
285  else if(msh_typechoice == 0){
287  marObj.unmarshalTo((G4THitsCollection<ExN04CalorimeterHit>*)param);
288  }
289  else if(msh_typechoice == 1){
291  marObj.unmarshalTo((G4THitsCollection<ExN04MuonHit>*)param);
292  }
293  else if(msh_typechoice == 2){
295  marObj.unmarshalTo((G4THitsCollection<ExN04TrackerHit>*)param);
296  }
297 
298  }
299  msh_cursor += msh_currentSize;
300 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshal3 ( )
inline

Definition at line 288 of file MarshaledG4VHitsCollection.h.

288  {
289  //declare currentSize to be the size of this field
290  int msh_currentSize = 0;
291  //copy the size of the current field into currentSize
292  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
293  msh_cursor += sizeof(int);
294  //Now copy the setspec here
295  {
296  if(0){}
297  else if(msh_typechoice == 0){
299  marObj.unmarshalTo((G4THitsCollection<ExN04CalorimeterHit>*)param);
300  }
301  else if(msh_typechoice == 1){
303  marObj.unmarshalTo((G4THitsCollection<ExN04MuonHit>*)param);
304  }
305  else if(msh_typechoice == 2){
307  marObj.unmarshalTo((G4THitsCollection<ExN04TrackerHit>*)param);
308  }
309 
310  }
311  msh_cursor += msh_currentSize;
312 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshalTo ( G4VHitsCollection obj)
inline

Definition at line 71 of file MarshaledG4VHitsCollection.h.

71  {
72  //We don't want to unmarshal the buffer is empty.
73  if(msh_size <= MSH_HEADER_SIZE) {
74  //This is buggy, we can't always assume that
75  //obj == NULL <==> List is empty.
76  return;
77  } else {
78  this->param = obj;
80  this->msh_isUnmarshalDone = true;
81  unmarshal1();
82  unmarshal2();
83  unmarshal3();
84  }
85 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshalTo ( G4VHitsCollection obj)
inline

Definition at line 74 of file MarshaledG4VHitsCollection.h.

74  {
75  //We don't want to unmarshal the buffer is empty.
76  if(msh_size <= MSH_HEADER_SIZE) {
77  //This is buggy, we can't always assume that
78  //obj == NULL <==> List is empty.
79  return;
80  } else {
81  this->param = obj;
83  this->msh_isUnmarshalDone = true;
84  unmarshal1();
85  unmarshal2();
86  unmarshal3();
87  }
88 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshalTo ( G4VHitsCollection obj)
inline

Definition at line 80 of file MarshaledG4VHitsCollection.h.

80  {
81  //We don't want to unmarshal the buffer is empty.
82  if(msh_size <= MSH_HEADER_SIZE) {
83  //This is buggy, we can't always assume that
84  //obj == NULL <==> List is empty.
85  return;
86  } else {
87  this->param = obj;
89  this->msh_isUnmarshalDone = true;
90  unmarshal1();
91  unmarshal2();
92  unmarshal3();
93  }
94 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

void MarshaledG4VHitsCollection::unmarshalTo ( G4VHitsCollection obj)
inline

Definition at line 83 of file MarshaledG4VHitsCollection.h.

83  {
84  //We don't want to unmarshal the buffer is empty.
85  if(msh_size <= MSH_HEADER_SIZE) {
86  //This is buggy, we can't always assume that
87  //obj == NULL <==> List is empty.
88  return;
89  } else {
90  this->param = obj;
92  this->msh_isUnmarshalDone = true;
93  unmarshal1();
94  unmarshal2();
95  unmarshal3();
96  }
97 }
ShadowedMarshaledG4VHitsCollection * Shadowed_param
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

Member Data Documentation

G4VHitsCollection * MarshaledG4VHitsCollection::param

Definition at line 25 of file MarshaledG4VHitsCollection.h.

ShadowedMarshaledG4VHitsCollection * MarshaledG4VHitsCollection::Shadowed_param

Definition at line 26 of file MarshaledG4VHitsCollection.h.


The documentation for this class was generated from the following files: