CxxUtils::BitUnpacker< STREAM > Class Template Reference

Helper to unpack a set of values bitwise from a stream. More...

#include <BitUnpacker.h>

List of all members.

Public Member Functions

 BitUnpacker (uint8_t nbits, STREAM &stream)
 Constructor.
uint32_t unpack ()
 Unpack one value from the stream.

Detailed Description

template<class STREAM>
class CxxUtils::BitUnpacker< STREAM >

Helper to unpack a set of values bitwise from a stream.

This helper can be used to unpack a set of values from a stream and return them as a set of 32-bit words. The number of bits taken by each value is configurable.

STREAM should support input (operator>>) with uint32_t (satisfied by a ROOT TBuffer).


Constructor & Destructor Documentation

template<class STREAM >
CxxUtils::BitUnpacker< STREAM >::BitUnpacker ( uint8_t  nbits,
STREAM &  stream 
) [inline]

Constructor.

Parameters:
nbits Number of bits per item to use in the packed representation.
stream Input stream object.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1