ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MarshaledObj Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/parallel/TopC/ParN02/include/MarshaledObj.h>

+ Inheritance diagram for MarshaledObj:

Public Member Functions

 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)
 

Static Public Member Functions

static int ROUND_UP (int x)
 
static int ROUND_UP (int x)
 

Protected Attributes

int msh_typechoice
 
char * msh_buffer
 
char * msh_field_begin
 
size_t msh_size
 
char * msh_cursor
 
size_t msh_extent
 
bool msh_isUnmarshalDone
 

Private Member Functions

const MarshaledObjoperator= (const MarshaledObj &right)
 
const MarshaledObjoperator= (const MarshaledObj &right)
 

Static Private Attributes

static const int WORD_SIZE = sizeof(long)
 

Detailed Description

Definition at line 27 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 27 of file MarshaledObj.h

Constructor & Destructor Documentation

MarshaledObj::MarshaledObj ( )
inline

Definition at line 38 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 38 of file MarshaledObj.h

References MSH_ASSERT, msh_buffer, msh_cursor, msh_extent, msh_field_begin, MSH_HEADER_SIZE, msh_isUnmarshalDone, MSH_SET_TOTALSIZE, MSH_SET_TYPECHOICE, msh_size, and msh_typechoice.

MarshaledObj::MarshaledObj ( void buf,
char  chIsUnmarshaling 
)
inline

Definition at line 62 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 62 of file MarshaledObj.h

References MSH_ASSERT, msh_buffer, msh_cursor, msh_extent, msh_field_begin, MSH_GET_TOTALSIZE, MSH_GET_TYPECHOICE, MSH_HEADER_SIZE, msh_isUnmarshalDone, msh_size, msh_typechoice, printf(), and ROUND_UP().

+ Here is the call graph for this function:

MarshaledObj::~MarshaledObj ( )
inline

Definition at line 87 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 87 of file MarshaledObj.h

References isUnmarshaling(), and msh_buffer.

+ Here is the call graph for this function:

MarshaledObj::MarshaledObj ( )
inline

Definition at line 38 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 38 of file MarshaledObj.h

References MSH_ASSERT, msh_buffer, msh_cursor, msh_extent, msh_field_begin, MSH_HEADER_SIZE, msh_isUnmarshalDone, MSH_SET_TOTALSIZE, MSH_SET_TYPECHOICE, msh_size, and msh_typechoice.

MarshaledObj::MarshaledObj ( void buf,
char  chIsUnmarshaling 
)
inline

Definition at line 62 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 62 of file MarshaledObj.h

References MSH_ASSERT, msh_buffer, msh_cursor, msh_extent, msh_field_begin, MSH_GET_TOTALSIZE, MSH_GET_TYPECHOICE, MSH_HEADER_SIZE, msh_isUnmarshalDone, msh_size, msh_typechoice, printf(), and ROUND_UP().

+ Here is the call graph for this function:

MarshaledObj::~MarshaledObj ( )
inline

Definition at line 87 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 87 of file MarshaledObj.h

References isUnmarshaling(), and msh_buffer.

+ Here is the call graph for this function:

Member Function Documentation

void MarshaledObj::EXTEND_BUFFER ( int  size)
inline

Definition at line 122 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 122 of file MarshaledObj.h

References msh_extent, msh_size, and resizeBuffer().

+ Here is the call graph for this function:

char* MarshaledObj::getBuffer ( )
inline

Definition at line 149 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 149 of file MarshaledObj.h

References msh_buffer.

char* MarshaledObj::getBuffer ( )
inline

Definition at line 149 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 149 of file MarshaledObj.h

References msh_buffer.

Referenced by MarshaledG4VHitsCollection::marshal1(), MarshaledG4HCofThisEvent::marshal1(), MarshaledG4HitsCollection::marshal1(), MarshaledG4THitsCollection< T >::marshal1(), MarshaledG4VHitsCollection::marshal2(), and MarshaledG4VHitsCollection::marshal3().

+ Here is the caller graph for this function:

int MarshaledObj::getBufferSize ( )
inline

Definition at line 145 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 145 of file MarshaledObj.h

References msh_size.

Referenced by MarshaledG4VHitsCollection::marshal1(), MarshaledG4HCofThisEvent::marshal1(), MarshaledG4HitsCollection::marshal1(), MarshaledG4THitsCollection< T >::marshal1(), MarshaledG4VHitsCollection::marshal2(), MarshaledG4VHitsCollection::marshal3(), MarshaledG4HCofThisEvent::unmarshal1(), and MarshaledG4HitsCollection::unmarshal1().

+ Here is the caller graph for this function:

int MarshaledObj::getBufferSize ( )
inline

Definition at line 145 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 145 of file MarshaledObj.h

References msh_size.

bool MarshaledObj::isUnmarshaling ( )
inline

Definition at line 92 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 92 of file MarshaledObj.h

References msh_extent.

void MarshaledObj::marshalPrimitive ( void p,
int  size 
)
inline

Definition at line 154 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 154 of file MarshaledObj.h

References EXTEND_BUFFER(), int(), isUnmarshaling(), msh_buffer, msh_cursor, MSH_SET_TOTALSIZE, and msh_size.

+ Here is the call graph for this function:

void MarshaledObj::marshalPrimitive ( void p,
int  size 
)
inline

Definition at line 154 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 154 of file MarshaledObj.h

References EXTEND_BUFFER(), int(), isUnmarshaling(), msh_buffer, msh_cursor, MSH_SET_TOTALSIZE, and msh_size.

+ Here is the call graph for this function:

const MarshaledObj& MarshaledObj::operator= ( const MarshaledObj right)
private
const MarshaledObj& MarshaledObj::operator= ( const MarshaledObj right)
private
void MarshaledObj::resizeBuffer ( size_t  new_size)
inline

Definition at line 129 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 129 of file MarshaledObj.h

References MSH_ASSERT, msh_buffer, msh_cursor, msh_extent, and msh_field_begin.

Referenced by EXTEND_BUFFER().

+ Here is the caller graph for this function:

void MarshaledObj::resizeBuffer ( size_t  new_size)
inline

Definition at line 129 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 129 of file MarshaledObj.h

References MSH_ASSERT, msh_buffer, msh_cursor, msh_extent, and msh_field_begin.

static int MarshaledObj::ROUND_UP ( int  x)
inlinestatic

Definition at line 32 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 32 of file MarshaledObj.h

References WORD_SIZE.

static int MarshaledObj::ROUND_UP ( int  x)
inlinestatic

Definition at line 32 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 32 of file MarshaledObj.h

References WORD_SIZE.

Referenced by MarshaledObj().

+ Here is the caller graph for this function:

void MarshaledObj::unmarshalPrimitive ( void p,
int  size 
)
inline

Definition at line 171 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 171 of file MarshaledObj.h

References int(), and msh_cursor.

+ Here is the call graph for this function:

void MarshaledObj::unmarshalPrimitive ( void p,
int  size 
)
inline

Definition at line 171 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 171 of file MarshaledObj.h

References int(), and msh_cursor.

+ Here is the call graph for this function:

Member Data Documentation

char * MarshaledObj::msh_cursor
protected

Definition at line 113 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 113 of file MarshaledObj.h

Referenced by MarshaledG4String::marshal1(), MarshaledExN04MuonHit::marshal1(), MarshaledExN04TrackerHit::marshal1(), MarshaledG4VHitsCollection::marshal1(), MarshaledG4HitsCollection::marshal1(), MarshaledG4HCofThisEvent::marshal1(), MarshaledExN04CalorimeterHit::marshal1(), MarshaledExN02TrackerHit::marshal1(), MarshaledG4THitsCollection< T >::marshal1(), MarshaledExN04MuonHit::marshal2(), MarshaledExN04TrackerHit::marshal2(), MarshaledG4VHitsCollection::marshal2(), MarshaledExN02TrackerHit::marshal2(), MarshaledExN04CalorimeterHit::marshal2(), MarshaledExN02TrackerHit::marshal3(), MarshaledG4VHitsCollection::marshal3(), MarshaledExN04CalorimeterHit::marshal3(), MarshaledExN04CalorimeterHit::marshal4(), MarshaledExN02TrackerHit::marshal4(), MarshaledObj(), marshalPrimitive(), resizeBuffer(), MarshaledG4String::unmarshal1(), MarshaledExN04TrackerHit::unmarshal1(), MarshaledExN04MuonHit::unmarshal1(), MarshaledG4VHitsCollection::unmarshal1(), MarshaledExN04CalorimeterHit::unmarshal1(), MarshaledExN02TrackerHit::unmarshal1(), MarshaledG4HCofThisEvent::unmarshal1(), MarshaledG4HitsCollection::unmarshal1(), MarshaledG4THitsCollection< T >::unmarshal1(), MarshaledExN04TrackerHit::unmarshal2(), MarshaledExN04MuonHit::unmarshal2(), MarshaledG4VHitsCollection::unmarshal2(), MarshaledExN02TrackerHit::unmarshal2(), MarshaledExN04CalorimeterHit::unmarshal2(), MarshaledExN02TrackerHit::unmarshal3(), MarshaledExN04CalorimeterHit::unmarshal3(), MarshaledG4VHitsCollection::unmarshal3(), MarshaledExN04CalorimeterHit::unmarshal4(), MarshaledExN02TrackerHit::unmarshal4(), and unmarshalPrimitive().

size_t MarshaledObj::msh_extent
protected

Definition at line 117 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 117 of file MarshaledObj.h

Referenced by EXTEND_BUFFER(), isUnmarshaling(), MarshaledObj(), and resizeBuffer().

size_t MarshaledObj::msh_size
protected

Definition at line 110 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 110 of file MarshaledObj.h

Referenced by EXTEND_BUFFER(), getBufferSize(), MarshaledG4String::marshal1(), MarshaledExN04MuonHit::marshal1(), MarshaledExN04TrackerHit::marshal1(), MarshaledG4VHitsCollection::marshal1(), MarshaledG4HitsCollection::marshal1(), MarshaledG4HCofThisEvent::marshal1(), MarshaledExN02TrackerHit::marshal1(), MarshaledExN04CalorimeterHit::marshal1(), MarshaledG4THitsCollection< T >::marshal1(), MarshaledExN04MuonHit::marshal2(), MarshaledExN04TrackerHit::marshal2(), MarshaledG4VHitsCollection::marshal2(), MarshaledExN02TrackerHit::marshal2(), MarshaledExN04CalorimeterHit::marshal2(), MarshaledG4VHitsCollection::marshal3(), MarshaledExN04CalorimeterHit::marshal3(), MarshaledExN02TrackerHit::marshal3(), MarshaledExN02TrackerHit::marshal4(), MarshaledExN04CalorimeterHit::marshal4(), MarshaledObj(), marshalPrimitive(), MarshaledG4String::unmarshal(), MarshaledExN04MuonHit::unmarshal(), MarshaledExN04TrackerHit::unmarshal(), MarshaledG4VHitsCollection::unmarshal(), MarshaledExN02TrackerHit::unmarshal(), MarshaledExN04CalorimeterHit::unmarshal(), MarshaledG4HCofThisEvent::unmarshal(), MarshaledG4HitsCollection::unmarshal(), MarshaledG4THitsCollection< T >::unmarshal(), MarshaledG4String::unmarshalTo(), MarshaledExN04MuonHit::unmarshalTo(), MarshaledExN04TrackerHit::unmarshalTo(), MarshaledG4VHitsCollection::unmarshalTo(), MarshaledExN02TrackerHit::unmarshalTo(), MarshaledExN04CalorimeterHit::unmarshalTo(), MarshaledG4HitsCollection::unmarshalTo(), MarshaledG4HCofThisEvent::unmarshalTo(), and MarshaledG4THitsCollection< T >::unmarshalTo().

static const int MarshaledObj::WORD_SIZE = sizeof(long)
staticprivate

Definition at line 30 of file MarshaledObj.h.

View newest version in sPHENIX GitHub at line 30 of file MarshaledObj.h

Referenced by ROUND_UP().


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