|
ATLAS Offline Software
|
Go to the documentation of this file.
13 #ifndef ATHCONTAINERS_PACKEDCONVERTER_H
14 #define ATHCONTAINERS_PACKEDCONVERTER_H
59 template <
class U,
class ALLOC,
class STREAM>
61 const std::vector<U, ALLOC>&
vec,
71 template <
class U,
class ALLOC1,
class ALLOC2,
class STREAM>
73 const std::vector<std::vector<U, ALLOC1>, ALLOC2>&
vec,
83 template <
class U,
class ALLOC,
class STREAM>
85 std::vector<U, ALLOC>&
vec,
95 template <
class U,
class ALLOC1,
class ALLOC2,
class STREAM>
97 std::vector<std::vector<U, ALLOC1>, ALLOC2>&
vec,
108 template <
template<
class>
class PACKER,
class U,
class ALLOC,
class STREAM>
110 const std::vector<U, ALLOC>&
vec,
120 template <
template<
class>
class PACKER,
class U,
class ALLOC,
class STREAM>
122 const std::vector<U, ALLOC>&
vec,
132 template <
template<
class>
class PACKER,
class U,
class ALLOC,
class STREAM>
134 const std::vector<U, ALLOC>&
vec,
144 template <
template<
class>
class UNPACKER,
class U,
class ALLOC,
class STREAM>
146 std::vector<U, ALLOC>&
vec,
156 template <
template<
class>
class UNPACKER,
class U,
class ALLOC,
class STREAM>
158 std::vector<U, ALLOC>&
vec,
169 template <
template<
class>
class UNPACKER,
class U,
class ALLOC,
class STREAM>
171 std::vector<U, ALLOC>&
vec,
188 #endif // not ATHCONTAINERS_PACKEDCONVERTER_H
void readFloat(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector of floating-point values from the stream.
void write(size_t nelt, const std::vector< std::vector< U, ALLOC1 >, ALLOC2 > &vec, STREAM &stream)
Pack a nested vector to the stream.
Describe how the contents of a PackedContainer are to be saved.
std::vector< size_t > vec
void writeFloat(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector of float values to the stream.
void readSigned(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector of signed values from the stream.
Helper for packing/unpacking a PackedContainer to/from a stream.
Helper to pack a set of values bitwise into a stream.
void writeSigned(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector of signed values to the stream.
PackedConverter(const PackedParameters &parms)
Constructor.
void write(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector to the stream.
void readUnsigned(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector of unsigned values from the stream.
CxxUtils::FloatPacker m_packer
Object to pack/unpack floating-point values.
Pack/unpack floating-point data from/to a given number of bits.
Pack/unpack floating-point data from/to a given number of bits.
void read(size_t nelt, std::vector< std::vector< U, ALLOC1 >, ALLOC2 > &vec, STREAM &stream)
Unpack a nested vector from the stream.
void writeUnsigned(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector of unsigned values to the stream.
void read(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector from the stream.
Helper to unpack a set of values bitwise from a stream.
Describe how the contents of a PackedContainer are to be saved.
PackedParameters m_parms
The parameters to use for the packing.