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,
Helper to pack a set of values bitwise into a stream.
Helper to unpack a set of values bitwise from a stream.
std::vector< size_t > vec
Pack/unpack floating-point data from/to a given number of bits.
Describe how the contents of a PackedContainer are to be saved.
Pack/unpack floating-point data from/to a given number of bits.
void writeUnsigned(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector of unsigned values to the stream.
void write(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector to the stream.
void read(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector from the stream.
void read(size_t nelt, std::vector< std::vector< U, ALLOC1 >, ALLOC2 > &vec, STREAM &stream)
Unpack a nested vector from the stream.
void readUnsigned(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector of unsigned values from the stream.
void writeFloat(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector of float values to the stream.
PackedConverter(const PackedParameters &parms)
Constructor.
void write(size_t nelt, const std::vector< std::vector< U, ALLOC1 >, ALLOC2 > &vec, STREAM &stream)
Pack a nested vector to the stream.
CxxUtils::FloatPacker m_packer
Object to pack/unpack floating-point values.
void readSigned(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector of signed values from the stream.
void writeSigned(size_t nelt, const std::vector< U, ALLOC > &vec, STREAM &stream)
Pack a vector of signed values to the stream.
void readFloat(size_t nelt, std::vector< U, ALLOC > &vec, STREAM &stream)
Unpack a vector of floating-point values from the stream.
PackedParameters m_parms
The parameters to use for the packing.
Describe how the contents of a PackedContainer are to be saved.