#include <list>
#include <vector>
#include <string>
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <typeinfo>
#include "GaudiKernel/Kernel.h"
#include "GaudiKernel/swab.h"
Go to the source code of this file.
| #define IMPLEMENT_STREAMER |
( |
|
TYPE | ) |
|
Value:
swapToBuffer(&data, sizeof(data)); \
STREAM_ANALYSE(data, sizeof(data)); \
return *this; \
} \
swapFromBuffer(&data, sizeof(data)); \
return *this; \
}
Definition at line 343 of file StreamBuffer.h.
| #define STREAM_ANALYSE |
( |
|
data, |
|
|
|
len |
|
) |
| |
Definition at line 645 of file StreamBuffer.h.
{
s << v.size();
for (
typename std::vector<T>::const_iterator
i = v.begin();
i != v.end();
i++ ) {
s << (*i);
}
}
Definition at line 669 of file StreamBuffer.h.
{
s << l.size();
for (
typename std::list<T>::const_iterator
i = l.begin();
i != l.end();
i++ ) {
s << (*i);
}
}
Definition at line 655 of file StreamBuffer.h.
{
s >> len;
v.clear();
for ( i = 0; i < len; i++ ) {
T temp;
s >> temp;
v.push_back(temp);
}
}
Definition at line 679 of file StreamBuffer.h.
{
s >> len;
l.clear();
for ( i = 0; i < len; i++ ) {
T temp;
s >> temp;
l.push_back(temp);
}
}