AliHLTDataDeflaterParameter(const char* name, int length, int reduced)
: fName(name), fFullBitLength(length), fReducedBitLength(reduced)
, fMax((((AliHLTUInt64_t)0x1)<<length)-1), fMaxReduced((((AliHLTUInt64_t)0x1)<<reduced)-1)
- , fMask(fMask), fMaskReduced(fMaskReduced)
+ , fMask(fMax), fMaskReduced(fMaxReduced)
, fValueCount(0), fBitCount(0) {}
AliHLTDataDeflaterParameter(const AliHLTDataDeflaterParameter& src)
, fValueCount(0), fBitCount(0) {}
AliHLTDataDeflaterParameter& operator=(const AliHLTDataDeflaterParameter& src) {
+ if (this==&src) return *this;
fName=src.fName; fFullBitLength=src.fFullBitLength; fReducedBitLength=src.fReducedBitLength;
fMax=src.fMax; fMaxReduced=src.fMaxReduced;
fMask=src.fMask; fMaskReduced=src.fMaskReduced;
};
/// add a parameter definition to the configuration, return reference id
- int AddParameterDefinition(const char* name, int bitLength, int reducedBitLength) {
- fParameterDefinitions.push_back(AliHLTDataDeflaterParameter(name, bitLength, reducedBitLength));
- return fParameterDefinitions.size()-1;
- }
+ int AddParameterDefinition(const char* name, int bitLength, int reducedBitLength);
/// inherited from AliHLTDataDeflater: write bit pattern according to configuration
virtual bool OutputParameterBits( int parameterId, AliHLTUInt64_t const & value );
protected:
private:
+ /// copy constructor prohibited
+ AliHLTDataDeflaterSimple(const AliHLTDataDeflaterSimple&);
+ /// assignment operator prohibited
+ AliHLTDataDeflaterSimple& operator=(const AliHLTDataDeflaterSimple&);
+
vector<AliHLTDataDeflaterParameter> fParameterDefinitions; //!
ClassDef(AliHLTDataDeflaterSimple, 0)