Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Data Fields
MarshaledG4THitsCollection< T > Class Template Reference

#include <MarshaledG4THitsCollection.h>

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

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)
 

Data Fields

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 ParN02/AnnotatedFiles/MarshaledG4THitsCollection.h.

Constructor & Destructor Documentation

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

Definition at line 188 of file ParN02/AnnotatedFiles/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
template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( void buf,
char  chIsUnmarshaling = 'u' 
)
inline

Definition at line 184 of file ParN02/include/MarshaledG4THitsCollection.h.

References MarshaledObj::msh_isUnmarshalDone.

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

Definition at line 189 of file ParN02/include/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
template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( void buf,
char  isUnmarshaling = 'u' 
)
inline
template<class T>
MarshaledG4THitsCollection< T >::~MarshaledG4THitsCollection ( )
inline

Definition at line 291 of file ParN04/AnnotatedFiles/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
template<class T>
MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection ( void buf,
char  chIsUnmarshaling = 'u' 
)
inline

Definition at line 285 of file ParN04/include/MarshaledG4THitsCollection.h.

References MarshaledObj::msh_isUnmarshalDone.

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

Definition at line 290 of file ParN04/include/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 ParN02/AnnotatedFiles/MarshaledG4THitsCollection.h.

References MarshaledObj::EXTEND_BUFFER(), MarshaledObj::getBuffer(), MarshaledObj::getBufferSize(), int(), MarshaledObj::isUnmarshaling(), MarshaledObj::msh_buffer, MarshaledObj::msh_cursor, MarshaledObj::msh_field_begin, MSH_SET_TOTALSIZE, MSH_SET_TYPECHOICE, MarshaledObj::msh_size, MarshaledObj::msh_typechoice, and MarshaledG4THitsCollection< T >::param.

Referenced by MarshaledG4THitsCollection< T >::MarshaledG4THitsCollection().

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 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define MSH_SET_TYPECHOICE(X)
void EXTEND_BUFFER(int size)
#define MSH_SET_TOTALSIZE(X)
template<class T>
void MarshaledG4THitsCollection< T >::marshal1 ( )
inline

Definition at line 226 of file ParN02/include/MarshaledG4THitsCollection.h.

References MarshaledObj::EXTEND_BUFFER(), MarshaledObj::getBuffer(), MarshaledObj::getBufferSize(), int(), MarshaledObj::isUnmarshaling(), MarshaledObj::msh_buffer, MarshaledObj::msh_cursor, MarshaledObj::msh_field_begin, MSH_SET_TOTALSIZE, MSH_SET_TYPECHOICE, MarshaledObj::msh_size, MarshaledObj::msh_typechoice, and MarshaledG4THitsCollection< T >::param.

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 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define MSH_SET_TYPECHOICE(X)
void EXTEND_BUFFER(int size)
#define MSH_SET_TOTALSIZE(X)
template<class T>
void MarshaledG4THitsCollection< T >::marshal1 ( )
inline

Definition at line 327 of file ParN04/include/MarshaledG4THitsCollection.h.

References MarshaledObj::EXTEND_BUFFER(), MarshaledObj::getBuffer(), MarshaledObj::getBufferSize(), int(), MarshaledObj::isUnmarshaling(), MarshaledObj::msh_buffer, MarshaledObj::msh_cursor, MarshaledObj::msh_field_begin, MSH_SET_TOTALSIZE, MSH_SET_TYPECHOICE, MarshaledObj::msh_size, MarshaledObj::msh_typechoice, and MarshaledG4THitsCollection< T >::param.

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 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define MSH_SET_TYPECHOICE(X)
void EXTEND_BUFFER(int size)
#define MSH_SET_TOTALSIZE(X)
template<class T>
void MarshaledG4THitsCollection< T >::marshal1 ( )
inline

Definition at line 328 of file ParN04/AnnotatedFiles/MarshaledG4THitsCollection.h.

References MarshaledObj::EXTEND_BUFFER(), MarshaledObj::getBuffer(), MarshaledObj::getBufferSize(), int(), MarshaledObj::isUnmarshaling(), MarshaledObj::msh_buffer, MarshaledObj::msh_cursor, MarshaledObj::msh_field_begin, MSH_SET_TOTALSIZE, MSH_SET_TYPECHOICE, MarshaledObj::msh_size, MarshaledObj::msh_typechoice, and MarshaledG4THitsCollection< T >::param.

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 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
#define MSH_SET_TYPECHOICE(X)
void EXTEND_BUFFER(int size)
#define MSH_SET_TOTALSIZE(X)
template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 194 of file ParN02/AnnotatedFiles/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 195 of file ParN02/include/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 296 of file ParN04/include/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
template<class T>
G4THitsCollection<T>* MarshaledG4THitsCollection< T >::unmarshal ( )
inline

Definition at line 297 of file ParN04/AnnotatedFiles/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 265 of file ParN02/AnnotatedFiles/MarshaledG4THitsCollection.h.

References int(), MarshaledObj::msh_cursor, MarshaledG4THitsCollection< T >::param, and MarshaledG4HitsCollection::unmarshalTo().

Referenced by MarshaledG4THitsCollection< T >::unmarshal(), and MarshaledG4THitsCollection< T >::unmarshalTo().

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)
template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 270 of file ParN02/include/MarshaledG4THitsCollection.h.

References int(), MarshaledObj::msh_cursor, MarshaledG4THitsCollection< T >::param, and MarshaledG4HitsCollection::unmarshalTo().

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)
template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 368 of file ParN04/AnnotatedFiles/MarshaledG4THitsCollection.h.

References int(), MarshaledObj::msh_cursor, MarshaledG4THitsCollection< T >::param, and MarshaledG4HitsCollection::unmarshalTo().

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)
template<class T>
void MarshaledG4THitsCollection< T >::unmarshal1 ( )
inline

Definition at line 371 of file ParN04/include/MarshaledG4THitsCollection.h.

References int(), MarshaledObj::msh_cursor, MarshaledG4THitsCollection< T >::param, and MarshaledG4HitsCollection::unmarshalTo().

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)
template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 211 of file ParN02/AnnotatedFiles/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

Referenced by MarshaledG4VHitsCollection::unmarshal3().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 212 of file ParN02/include/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 313 of file ParN04/include/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE
template<class T>
void MarshaledG4THitsCollection< T >::unmarshalTo ( G4THitsCollection< T > *  obj)
inline

Definition at line 314 of file ParN04/AnnotatedFiles/MarshaledG4THitsCollection.h.

References MSH_HEADER_SIZE, MarshaledObj::msh_isUnmarshalDone, MarshaledObj::msh_size, MarshaledG4THitsCollection< T >::param, MarshaledG4THitsCollection< T >::Shadowed_param, and MarshaledG4THitsCollection< T >::unmarshal1().

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 }
ShadowedMarshaledG4THitsCollection< T > * Shadowed_param
#define MSH_HEADER_SIZE

Field Documentation

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

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