#include "MarshaledG4VHitsCollection.h"
Definition at line 32 of file MarshaledG4VHitsCollection.h.
33 msh_isUnmarshalDone =
false;
G4VHitsCollection * param
ShadowedMarshaledG4VHitsCollection * Shadowed_param
MarshaledG4VHitsCollection::MarshaledG4VHitsCollection |
( |
void * |
buf, |
|
|
char |
isUnmarshaling = 'u' |
|
) |
| |
|
inline |
MarshaledG4VHitsCollection::~MarshaledG4VHitsCollection |
( |
| ) |
|
|
inline |
Definition at line 32 of file MarshaledG4VHitsCollection.h.
33 msh_isUnmarshalDone =
false;
G4VHitsCollection * param
ShadowedMarshaledG4VHitsCollection * Shadowed_param
MarshaledG4VHitsCollection::MarshaledG4VHitsCollection |
( |
void * |
buf, |
|
|
char |
isUnmarshaling = 'u' |
|
) |
| |
|
inline |
MarshaledG4VHitsCollection::~MarshaledG4VHitsCollection |
( |
| ) |
|
|
inline |
void MarshaledG4VHitsCollection::marshal1 |
( |
| ) |
|
|
inline |
Definition at line 90 of file MarshaledG4VHitsCollection.h.
References G4VHitsCollection::GetName(), and tmp.
92 int msh_currentSize = 0;
94 throw "Tried to marshal in obj marked isUnmarshaling == true";
103 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
105 msh_field_begin = msh_cursor;
108 msh_cursor +=
sizeof(int);
115 EXTEND_BUFFER(var.getBufferSize());
116 msh_currentSize = var.getBufferSize();
117 memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
120 msh_cursor += msh_currentSize;
123 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
124 memcpy(msh_field_begin, &tmp,
sizeof(
int));
127 msh_size = msh_cursor - msh_buffer;
128 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
G4VHitsCollection * param
void MarshaledG4VHitsCollection::marshal1 |
( |
| ) |
|
|
inline |
Definition at line 99 of file MarshaledG4VHitsCollection.h.
References G4VHitsCollection::GetName(), and tmp.
101 int msh_currentSize = 0;
102 if (isUnmarshaling())
103 throw "Tried to marshal in obj marked isUnmarshaling == true";
112 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
114 msh_field_begin = msh_cursor;
117 msh_cursor +=
sizeof(int);
124 EXTEND_BUFFER(var.getBufferSize());
125 msh_currentSize = var.getBufferSize();
126 memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
129 msh_cursor += msh_currentSize;
132 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
133 memcpy(msh_field_begin, &tmp,
sizeof(
int));
136 msh_size = msh_cursor - msh_buffer;
137 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
G4VHitsCollection * param
void MarshaledG4VHitsCollection::marshal2 |
( |
| ) |
|
|
inline |
Definition at line 148 of file MarshaledG4VHitsCollection.h.
References G4VHitsCollection::GetSDname(), and tmp.
150 int msh_currentSize = 0;
151 if (isUnmarshaling())
152 throw "Tried to marshal in obj marked isUnmarshaling == true";
161 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
163 msh_field_begin = msh_cursor;
166 msh_cursor +=
sizeof(int);
173 EXTEND_BUFFER(var.getBufferSize());
174 msh_currentSize = var.getBufferSize();
175 memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
178 msh_cursor += msh_currentSize;
181 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
182 memcpy(msh_field_begin, &tmp,
sizeof(
int));
185 msh_size = msh_cursor - msh_buffer;
186 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
G4VHitsCollection * param
void MarshaledG4VHitsCollection::marshal2 |
( |
| ) |
|
|
inline |
Definition at line 157 of file MarshaledG4VHitsCollection.h.
References G4VHitsCollection::GetSDname(), and tmp.
159 int msh_currentSize = 0;
160 if (isUnmarshaling())
161 throw "Tried to marshal in obj marked isUnmarshaling == true";
170 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
172 msh_field_begin = msh_cursor;
175 msh_cursor +=
sizeof(int);
182 EXTEND_BUFFER(var.getBufferSize());
183 msh_currentSize = var.getBufferSize();
184 memcpy(msh_cursor, var.getBuffer(), var.getBufferSize());
187 msh_cursor += msh_currentSize;
190 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
191 memcpy(msh_field_begin, &tmp,
sizeof(
int));
194 msh_size = msh_cursor - msh_buffer;
195 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
G4VHitsCollection * param
void MarshaledG4VHitsCollection::marshal3 |
( |
| ) |
|
|
inline |
Definition at line 206 of file MarshaledG4VHitsCollection.h.
References tmp.
208 int msh_currentSize = 0;
209 if (isUnmarshaling())
210 throw "Tried to marshal in obj marked isUnmarshaling == true";
219 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
221 msh_field_begin = msh_cursor;
224 msh_cursor +=
sizeof(int);
230 EXTEND_BUFFER(marChild.getBufferSize());
231 memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
232 msh_currentSize = marChild.getBufferSize();
237 msh_cursor += msh_currentSize;
240 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
241 memcpy(msh_field_begin, &tmp,
sizeof(
int));
244 msh_size = msh_cursor - msh_buffer;
245 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
G4VHitsCollection * param
void MarshaledG4VHitsCollection::marshal3 |
( |
| ) |
|
|
inline |
Definition at line 215 of file MarshaledG4VHitsCollection.h.
References G4VHitsCollection::GetName(), and tmp.
217 int msh_currentSize = 0;
218 if (isUnmarshaling())
219 throw "Tried to marshal in obj marked isUnmarshaling == true";
228 EXTEND_BUFFER(msh_currentSize +
sizeof(
int) +
sizeof(
int));
230 msh_field_begin = msh_cursor;
233 msh_cursor +=
sizeof(int);
241 EXTEND_BUFFER(marChild.getBufferSize());
242 memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
243 msh_currentSize = marChild.getBufferSize();
249 EXTEND_BUFFER(marChild.getBufferSize());
250 memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
251 msh_currentSize = marChild.getBufferSize();
257 EXTEND_BUFFER(marChild.getBufferSize());
258 memcpy(msh_cursor,marChild.getBuffer(), marChild.getBufferSize());
259 msh_currentSize = marChild.getBufferSize();
265 msh_cursor += msh_currentSize;
268 tmp = (msh_cursor-msh_field_begin) -
sizeof(
int);
269 memcpy(msh_field_begin, &tmp,
sizeof(
int));
272 msh_size = msh_cursor - msh_buffer;
273 MSH_SET_TOTALSIZE(msh_size); MSH_SET_TYPECHOICE(msh_typechoice);
G4VHitsCollection * param
Definition at line 55 of file MarshaledG4VHitsCollection.h.
57 if(msh_size <= MSH_HEADER_SIZE) {
64 else if(msh_typechoice == 0){
67 else if(msh_typechoice == 1){
70 else if(msh_typechoice == 2){
75 this->msh_isUnmarshalDone =
true;
G4VHitsCollection * param
ShadowedMarshaledG4VHitsCollection * Shadowed_param
void MarshaledG4VHitsCollection::unmarshal1 |
( |
| ) |
|
|
inline |
void MarshaledG4VHitsCollection::unmarshal1 |
( |
| ) |
|
|
inline |
void MarshaledG4VHitsCollection::unmarshal2 |
( |
| ) |
|
|
inline |
void MarshaledG4VHitsCollection::unmarshal2 |
( |
| ) |
|
|
inline |
void MarshaledG4VHitsCollection::unmarshal3 |
( |
| ) |
|
|
inline |
void MarshaledG4VHitsCollection::unmarshal3 |
( |
| ) |
|
|
inline |
Definition at line 276 of file MarshaledG4VHitsCollection.h.
References MarshaledG4THitsCollection< T >::unmarshalTo().
278 int msh_currentSize = 0;
280 memcpy(&msh_currentSize, msh_cursor,
sizeof(
int));
281 msh_cursor +=
sizeof(int);
285 else if(msh_typechoice == 0){
289 else if(msh_typechoice == 1){
293 else if(msh_typechoice == 2){
299 msh_cursor += msh_currentSize;
G4VHitsCollection * param
Definition at line 74 of file MarshaledG4VHitsCollection.h.
76 if(msh_size <= MSH_HEADER_SIZE) {
83 this->msh_isUnmarshalDone =
true;
G4VHitsCollection * param
ShadowedMarshaledG4VHitsCollection * Shadowed_param
Definition at line 83 of file MarshaledG4VHitsCollection.h.
85 if(msh_size <= MSH_HEADER_SIZE) {
92 this->msh_isUnmarshalDone =
true;
G4VHitsCollection * param
ShadowedMarshaledG4VHitsCollection * Shadowed_param
The documentation for this class was generated from the following file: