Geant4  10.02.p03
ParN02/include/MarshaledObj.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
Include dependency graph for ParN02/include/MarshaledObj.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MarshaledObj
 
class  MSH_IsSameClass< T, class >
 
class  MSH_IsSameClass< T, T >
 

Macros

#define MSH_ASSERT(X)   {assert(X);}
 
#define MSH_HEADER_SIZE   (sizeof(int)*2)
 
#define MSH_TOTALSIZE_OFFSET   (sizeof(int))
 
#define MSH_TYPECHOICE_OFFSET   0
 
#define MSH_SET_TYPECHOICE(X)   { memcpy(msh_buffer+MSH_TYPECHOICE_OFFSET,&(X),sizeof(int));}
 
#define MSH_SET_TOTALSIZE(X)   { memcpy(msh_buffer+MSH_TOTALSIZE_OFFSET,&(X),sizeof(int));}
 
#define MSH_GET_TYPECHOICE(X, BUF)   { memcpy(&(X), ((char*)BUF)+MSH_TYPECHOICE_OFFSET,sizeof(int));}
 
#define MSH_GET_TOTALSIZE(X, BUF)   { memcpy(&(X), ((char*)BUF)+MSH_TOTALSIZE_OFFSET,sizeof(int));}
 

Macro Definition Documentation

◆ MSH_ASSERT

#define MSH_ASSERT (   X)    {assert(X);}

Definition at line 13 of file ParN02/include/MarshaledObj.h.

◆ MSH_GET_TOTALSIZE

#define MSH_GET_TOTALSIZE (   X,
  BUF 
)    { memcpy(&(X), ((char*)BUF)+MSH_TOTALSIZE_OFFSET,sizeof(int));}

Definition at line 24 of file ParN02/include/MarshaledObj.h.

◆ MSH_GET_TYPECHOICE

#define MSH_GET_TYPECHOICE (   X,
  BUF 
)    { memcpy(&(X), ((char*)BUF)+MSH_TYPECHOICE_OFFSET,sizeof(int));}

Definition at line 23 of file ParN02/include/MarshaledObj.h.

◆ MSH_HEADER_SIZE

#define MSH_HEADER_SIZE   (sizeof(int)*2)

Definition at line 15 of file ParN02/include/MarshaledObj.h.

◆ MSH_SET_TOTALSIZE

#define MSH_SET_TOTALSIZE (   X)    { memcpy(msh_buffer+MSH_TOTALSIZE_OFFSET,&(X),sizeof(int));}

Definition at line 22 of file ParN02/include/MarshaledObj.h.

◆ MSH_SET_TYPECHOICE

#define MSH_SET_TYPECHOICE (   X)    { memcpy(msh_buffer+MSH_TYPECHOICE_OFFSET,&(X),sizeof(int));}

Definition at line 21 of file ParN02/include/MarshaledObj.h.

◆ MSH_TOTALSIZE_OFFSET

#define MSH_TOTALSIZE_OFFSET   (sizeof(int))

Definition at line 18 of file ParN02/include/MarshaledObj.h.

◆ MSH_TYPECHOICE_OFFSET

#define MSH_TYPECHOICE_OFFSET   0

Definition at line 19 of file ParN02/include/MarshaledObj.h.