Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MarshaledG4THitsCollection< T > Class Template Reference

#include <MarshaledG4THitsCollection.h>

Inheritance diagram for MarshaledG4THitsCollection< T >:
Collaboration diagram for MarshaledG4THitsCollection< T >:

Public Member Functions

 MarshaledG4THitsCollection (G4THitsCollection< T > *objptr)
 
 MarshaledG4THitsCollection (void *buf, char isUnmarshaling= 'u')
 
 ~MarshaledG4THitsCollection ()
 
G4THitsCollection< T > * unmarshal ()
 
void unmarshalTo (G4THitsCollection< T > *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
 MarshaledG4THitsCollection (G4THitsCollection< T > *objptr)
 
 MarshaledG4THitsCollection (void *buf, char chIsUnmarshaling= 'u')
 
 ~MarshaledG4THitsCollection ()
 
G4THitsCollection< T > * unmarshal ()
 
void unmarshalTo (G4THitsCollection< T > *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
 MarshaledG4THitsCollection (G4THitsCollection< T > *objptr)
 
 MarshaledG4THitsCollection (void *buf, char isUnmarshaling= 'u')
 
 ~MarshaledG4THitsCollection ()
 
G4THitsCollection< T > * unmarshal ()
 
void unmarshalTo (G4THitsCollection< T > *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
 MarshaledG4THitsCollection (G4THitsCollection< T > *objptr)
 
 MarshaledG4THitsCollection (void *buf, char chIsUnmarshaling= 'u')
 
 ~MarshaledG4THitsCollection ()
 
G4THitsCollection< T > * unmarshal ()
 
void unmarshalTo (G4THitsCollection< T > *obj)
 
void marshal1 ()
 
void unmarshal1 ()
 
- 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

G4THitsCollection< T > * param
 
ShadowedMarshaledG4THitsCollection
< T > * 
Shadowed_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

template<class T>
class MarshaledG4THitsCollection< T >

Definition at line 24 of file MarshaledG4THitsCollection.h.

Constructor & Destructor Documentation

template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( G4THitsCollection< T > *  objptr)
inline

Definition at line 173 of file MarshaledG4THitsCollection.h.

173  : MarshaledObj() {
174  msh_isUnmarshalDone = false;
175  this->param = objptr;
177  if (objptr == NULL)
178  return;
179 
180  marshal1();
181 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param

Here is the call graph for this function:

template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( void buf,
char  isUnmarshaling = 'u' 
)
inline

Definition at line 183 of file MarshaledG4THitsCollection.h.

185  msh_isUnmarshalDone = false;
186 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
bool isUnmarshaling()
Definition: MarshaledObj.h:92
template<class T>
MarshaledG4THitsCollection< T >::~MarshaledG4THitsCollection ( )
inline

Definition at line 188 of file MarshaledG4THitsCollection.h.

188  {
189  //if(msh_isUnmarshalDone && this->param != NULL) {
190  //delete this->param;
191  //}
192 }
template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( G4THitsCollection< T > *  objptr)
inline

Definition at line 174 of file MarshaledG4THitsCollection.h.

174  : MarshaledObj() {
175  msh_isUnmarshalDone = false;
176  this->param = objptr;
178  if (objptr == NULL)
179  return;
180 
181  marshal1();
182 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param

Here is the call graph for this function:

template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( void buf,
char  chIsUnmarshaling = 'u' 
)
inline

Definition at line 184 of file MarshaledG4THitsCollection.h.

185 : MarshaledObj(buf, chIsUnmarshaling) {
186  msh_isUnmarshalDone = false;
187 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
template<class T>
MarshaledG4THitsCollection< T >::~MarshaledG4THitsCollection ( )
inline

Definition at line 189 of file MarshaledG4THitsCollection.h.

189  {
190  //if(msh_isUnmarshalDone && this->param != NULL) {
191  //delete this->param;
192  //}
193 }
template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( G4THitsCollection< T > *  objptr)
inline

Definition at line 276 of file MarshaledG4THitsCollection.h.

276  : MarshaledObj() {
277  msh_isUnmarshalDone = false;
278  this->param = objptr;
280  if (objptr == NULL)
281  return;
282 
283  marshal1();
284 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param

Here is the call graph for this function:

template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( void buf,
char  isUnmarshaling = 'u' 
)
inline

Definition at line 286 of file MarshaledG4THitsCollection.h.

288  msh_isUnmarshalDone = false;
289 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
bool isUnmarshaling()
Definition: MarshaledObj.h:92
template<class T>
MarshaledG4THitsCollection< T >::~MarshaledG4THitsCollection ( )
inline

Definition at line 291 of file MarshaledG4THitsCollection.h.

291  {
292  //if(msh_isUnmarshalDone && this->param != NULL) {
293  //delete this->param;
294  //}
295 }
template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( G4THitsCollection< T > *  objptr)
inline

Definition at line 275 of file MarshaledG4THitsCollection.h.

275  : MarshaledObj() {
276  msh_isUnmarshalDone = false;
277  this->param = objptr;
279  if (objptr == NULL)
280  return;
281 
282  marshal1();
283 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param

Here is the call graph for this function:

template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( void buf,
char  chIsUnmarshaling = 'u' 
)
inline

Definition at line 285 of file MarshaledG4THitsCollection.h.

286 : MarshaledObj(buf, chIsUnmarshaling) {
287  msh_isUnmarshalDone = false;
288 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
template<class T>
MarshaledG4THitsCollection< T >::~MarshaledG4THitsCollection ( )
inline

Definition at line 290 of file MarshaledG4THitsCollection.h.

290  {
291  //if(msh_isUnmarshalDone && this->param != NULL) {
292  //delete this->param;
293  //}
294 }

Member Function Documentation

template<class T>
void MarshaledG4THitsCollection< T >::marshal1 ( )
inline

Definition at line 225 of file MarshaledG4THitsCollection.h.

225  {
226  //declare field_size to be the size of this field
227  int msh_currentSize = 0;
228  if (isUnmarshaling())
229  throw "Tried to marshal in obj marked isUnmarshaling == true";
230 
231  //Copy the sizespec into msh_currentSize here:
232  {
233  //code for size, just dummy code because the size will be set correctly at the end of marshaling code
234 
235  }
236 
237  //Increase the size of buffer if needed
238  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)
239  //Mark the beginning position for this field, will write the total size of this field here later
241 
242  //Advance cursor of distance = sizeof(int)
243  msh_cursor += sizeof(int);
244 
245  //Now just copy "get" functions here
246  {
247  MarshaledG4HitsCollection marParent(param);
248  EXTEND_BUFFER(marParent.getBufferSize());
249  memcpy(msh_cursor,marParent.getBuffer(), marParent.getBufferSize());
250  msh_currentSize = marParent.getBufferSize();
251 
252  }
253  //Now advance the cursor
254  msh_cursor += msh_currentSize;
255  //Now set the size of this field
256  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
257  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
258  memcpy(msh_field_begin, &tmp, sizeof(int));
259 
260  //Now set msh_size
263 }
#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:

template<class T>
void MarshaledG4THitsCollection< T >::marshal1 ( )
inline

Definition at line 226 of file MarshaledG4THitsCollection.h.

226  {
227  //declare field_size to be the size of this field
228  int msh_currentSize = 0;
229  if (isUnmarshaling())
230  throw "Tried to marshal in obj marked isUnmarshaling == true";
231 
232  //Copy the sizespec into msh_currentSize here:
233  {
234  //code for size, just dummy code because the size will be set correctly
235  // at the end of marshaling code
236 
237  }
238 
239  //Increase the size of buffer if needed
240  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
241  // 4 bytes for the total size of field, 4 bytes for the number
242  // of elements in the array (in the case of array marshaling)
243  //Mark the beginning position for this field, will write the total
244  //size of this field here later
246 
247  //Advance cursor of distance = sizeof(int)
248  msh_cursor += sizeof(int);
249 
250  //Now just copy "get" functions here
251  {
252  MarshaledG4HitsCollection marParent(param);
253  EXTEND_BUFFER(marParent.getBufferSize());
254  memcpy(msh_cursor,marParent.getBuffer(), marParent.getBufferSize());
255  msh_currentSize = marParent.getBufferSize();
256 
257  }
258  //Now advance the cursor
259  msh_cursor += msh_currentSize;
260  //Now set the size of this field
261  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
262  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
263  memcpy(msh_field_begin, &tmp, sizeof(int));
264 
265  //Now set msh_size
268 }
#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:

template<class T>
void MarshaledG4THitsCollection< T >::marshal1 ( )
inline

Definition at line 327 of file MarshaledG4THitsCollection.h.

327  {
328  //declare field_size to be the size of this field
329  int msh_currentSize = 0;
330  if (isUnmarshaling())
331  throw "Tried to marshal in obj marked isUnmarshaling == true";
332 
333  //Copy the sizespec into msh_currentSize here:
334  {
335  //code for size, just dummy code because the size will be set correctly
336  // at the end of marshaling code
337 
338  }
339 
340  //Increase the size of buffer if needed
341  EXTEND_BUFFER(msh_currentSize + sizeof(int) + sizeof(int));
342  // 4 bytes for the total size of field, 4 bytes for the number of
343  // elements in the array (in the case of array marshaling)
344  //Mark the beginning position for this field, will write the total size
345  //of this field here later
347 
348  //Advance cursor of distance = sizeof(int)
349  msh_cursor += sizeof(int);
350 
351  //Now just copy "get" functions here
352  {
353  MarshaledG4HitsCollection marParent(param);
354  EXTEND_BUFFER(marParent.getBufferSize());
355  memcpy(msh_cursor,marParent.getBuffer(), marParent.getBufferSize());
356  msh_currentSize = marParent.getBufferSize();
357 
358  }
359  //Now advance the cursor
360  msh_cursor += msh_currentSize;
361  //Now set the size of this field
362  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
363  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
364  memcpy(msh_field_begin, &tmp, sizeof(int));
365 
366  //Now set msh_size
369 }
#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:

template<class T>
void MarshaledG4THitsCollection< T >::marshal1 ( )
inline

Definition at line 328 of file MarshaledG4THitsCollection.h.

328  {
329  //declare field_size to be the size of this field
330  int msh_currentSize = 0;
331  if (isUnmarshaling())
332  throw "Tried to marshal in obj marked isUnmarshaling == true";
333 
334  //Copy the sizespec into msh_currentSize here:
335  {
336  //code for size, just dummy code because the size will be set correctly at the end of marshaling code
337 
338  }
339 
340  //Increase the size of buffer if needed
341  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)
342  //Mark the beginning position for this field, will write the total size of this field here later
344 
345  //Advance cursor of distance = sizeof(int)
346  msh_cursor += sizeof(int);
347 
348  //Now just copy "get" functions here
349  {
350  MarshaledG4HitsCollection marParent(param);
351  EXTEND_BUFFER(marParent.getBufferSize());
352  memcpy(msh_cursor,marParent.getBuffer(), marParent.getBufferSize());
353  msh_currentSize = marParent.getBufferSize();
354 
355  }
356  //Now advance the cursor
357  msh_cursor += msh_currentSize;
358  //Now set the size of this field
359  int tmp; //use memcpy instead of *(int*)... =... to prevent bus error
360  tmp = (msh_cursor-msh_field_begin) - sizeof(int);
361  memcpy(msh_field_begin, &tmp, sizeof(int));
362 
363  //Now set msh_size
366 }
#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:

template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 194 of file MarshaledG4THitsCollection.h.

194  {
195  //We don't want to unmarshal the buffer is empty.
196  if(msh_size <= MSH_HEADER_SIZE) {
197  //This is buggy, we can't always assume that
198  //obj == NULL <==> List is empty.
199  return NULL;
200  } else {
201  {
202  param = new G4THitsCollection<T>();
203  }
205  this->msh_isUnmarshalDone = true;
206  unmarshal1();
207  return this->param;
208  }
209 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 195 of file MarshaledG4THitsCollection.h.

195  {
196  //We don't want to unmarshal the buffer is empty.
197  if(msh_size <= MSH_HEADER_SIZE) {
198  //This is buggy, we can't always assume that
199  //obj == NULL <==> List is empty.
200  return NULL;
201  } else {
202  {
203  param = new G4THitsCollection<T>();
204  }
206  this->msh_isUnmarshalDone = true;
207  unmarshal1();
208  return this->param;
209  }
210 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 296 of file MarshaledG4THitsCollection.h.

296  {
297  //We don't want to unmarshal the buffer is empty.
298  if(msh_size <= MSH_HEADER_SIZE) {
299  //This is buggy, we can't always assume that
300  //obj == NULL <==> List is empty.
301  return NULL;
302  } else {
303  {
304  param = new G4THitsCollection<T>();
305  }
307  this->msh_isUnmarshalDone = true;
308  unmarshal1();
309  return this->param;
310  }
311 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 297 of file MarshaledG4THitsCollection.h.

297  {
298  //We don't want to unmarshal the buffer is empty.
299  if(msh_size <= MSH_HEADER_SIZE) {
300  //This is buggy, we can't always assume that
301  //obj == NULL <==> List is empty.
302  return NULL;
303  } else {
304  {
305  param = new G4THitsCollection<T>();
306  }
308  this->msh_isUnmarshalDone = true;
309  unmarshal1();
310  return this->param;
311  }
312 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 265 of file MarshaledG4THitsCollection.h.

265  {
266  //declare currentSize to be the size of this field
267  int msh_currentSize = 0;
268  //copy the size of the current field into currentSize
269  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
270  msh_cursor += sizeof(int);
271  //Now copy the setspec here
272  {
274  marObj.unmarshalTo(param);
275 
276  }
277  msh_cursor += msh_currentSize;
278 }
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:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 270 of file MarshaledG4THitsCollection.h.

270  {
271  //declare currentSize to be the size of this field
272  int msh_currentSize = 0;
273  //copy the size of the current field into currentSize
274  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
275  msh_cursor += sizeof(int);
276  //Now copy the setspec here
277  {
279  marObj.unmarshalTo(param);
280 
281  }
282  msh_cursor += msh_currentSize;
283 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 368 of file MarshaledG4THitsCollection.h.

368  {
369  //declare currentSize to be the size of this field
370  int msh_currentSize = 0;
371  //copy the size of the current field into currentSize
372  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
373  msh_cursor += sizeof(int);
374  //Now copy the setspec here
375  {
377  marObj.unmarshalTo(param);
378 
379  }
380  msh_cursor += msh_currentSize;
381 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 371 of file MarshaledG4THitsCollection.h.

371  {
372  //declare currentSize to be the size of this field
373  int msh_currentSize = 0;
374  //copy the size of the current field into currentSize
375  memcpy(&msh_currentSize, msh_cursor, sizeof(int));
376  msh_cursor += sizeof(int);
377  //Now copy the setspec here
378  {
380  marObj.unmarshalTo(param);
381 
382  }
383  msh_cursor += msh_currentSize;
384 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
char * msh_cursor
Definition: MarshaledObj.h:113

Here is the call graph for this function:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 211 of file MarshaledG4THitsCollection.h.

211  {
212  //We don't want to unmarshal the buffer is empty.
213  if(msh_size <= MSH_HEADER_SIZE) {
214  //This is buggy, we can't always assume that
215  //obj == NULL <==> List is empty.
216  return;
217  } else {
218  this->param = obj;
220  this->msh_isUnmarshalDone = true;
221  unmarshal1();
222  }
223 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 212 of file MarshaledG4THitsCollection.h.

212  {
213  //We don't want to unmarshal the buffer is empty.
214  if(msh_size <= MSH_HEADER_SIZE) {
215  //This is buggy, we can't always assume that
216  //obj == NULL <==> List is empty.
217  return;
218  } else {
219  this->param = obj;
221  this->msh_isUnmarshalDone = true;
222  unmarshal1();
223  }
224 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 313 of file MarshaledG4THitsCollection.h.

313  {
314  //We don't want to unmarshal the buffer is empty.
315  if(msh_size <= MSH_HEADER_SIZE) {
316  //This is buggy, we can't always assume that
317  //obj == NULL <==> List is empty.
318  return;
319  } else {
320  this->param = obj;
322  this->msh_isUnmarshalDone = true;
323  unmarshal1();
324  }
325 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 314 of file MarshaledG4THitsCollection.h.

314  {
315  //We don't want to unmarshal the buffer is empty.
316  if(msh_size <= MSH_HEADER_SIZE) {
317  //This is buggy, we can't always assume that
318  //obj == NULL <==> List is empty.
319  return;
320  } else {
321  this->param = obj;
323  this->msh_isUnmarshalDone = true;
324  unmarshal1();
325  }
326 }
bool msh_isUnmarshalDone
Definition: MarshaledObj.h:119
size_t msh_size
Definition: MarshaledObj.h:110
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
Definition: MarshaledObj.h:15

Here is the call graph for this function:

Member Data Documentation

template<class T>
G4THitsCollection< T > * MarshaledG4THitsCollection< T >::param

Definition at line 166 of file MarshaledG4THitsCollection.h.

template<class T>
ShadowedMarshaledG4THitsCollection< T > * MarshaledG4THitsCollection< T >::Shadowed_param

Definition at line 167 of file MarshaledG4THitsCollection.h.


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