THnSparseCoordCompression Class Reference

Inheritance diagram for THnSparseCoordCompression:

THnSparseCompactBinCoord List of all members.

Public Member Functions

 THnSparseCoordCompression (Int_t dim, const Int_t *nbins)
 THnSparseCoordCompression (const THnSparseCoordCompression &other)
 ~THnSparseCoordCompression ()
ULong64_t GetHashFromBuffer (const Char_t *buf) const
Int_t GetBufferSize () const
Int_t GetNdimensions () const
void SetCoordFromBuffer (const Char_t *buf_in, Int_t *coord_out) const
ULong64_t SetBufferFromCoord (const Int_t *coord_in, Char_t *buf_out) const

Protected Member Functions

Int_t GetNumBits (Int_t n) const

Private Attributes

Int_t fNdimensions
Int_t fCoordBufferSize
Int_tfBitOffsets

Detailed Description

Definition at line 49 of file THnSparse.cxx.


Constructor & Destructor Documentation

THnSparseCoordCompression::THnSparseCoordCompression ( Int_t  dim,
const Int_t nbins 
)

Definition at line 80 of file THnSparse.cxx.

References fBitOffsets, fCoordBufferSize, GetNumBits(), and i.

THnSparseCoordCompression::THnSparseCoordCompression ( const THnSparseCoordCompression other  ) 

Definition at line 100 of file THnSparse.cxx.

References fBitOffsets, fCoordBufferSize, and fNdimensions.

THnSparseCoordCompression::~THnSparseCoordCompression (  ) 

Definition at line 111 of file THnSparse.cxx.

References fBitOffsets.


Member Function Documentation

ULong64_t THnSparseCoordCompression::GetHashFromBuffer ( const Char_t buf  )  const

Definition at line 232 of file THnSparse.cxx.

References fCoordBufferSize, hash, and str.

Referenced by THnSparse::FillExMap(), THnSparseCompactBinCoord::SetBuffer(), and SetBufferFromCoord().

Int_t THnSparseCoordCompression::GetBufferSize (  )  const [inline]

Definition at line 56 of file THnSparse.cxx.

References fCoordBufferSize.

Referenced by THnSparse::GetBinContent(), THnSparse::GetSparseFractionMem(), THnSparseCompactBinCoord::SetBuffer(), and THnSparseCompactBinCoord::THnSparseCompactBinCoord().

Int_t THnSparseCoordCompression::GetNdimensions (  )  const [inline]

Definition at line 57 of file THnSparse.cxx.

References fNdimensions.

Referenced by THnSparseCompactBinCoord::SetCoord().

void THnSparseCoordCompression::SetCoordFromBuffer ( const Char_t buf_in,
Int_t coord_out 
) const

Definition at line 119 of file THnSparse.cxx.

References fBitOffsets, fNdimensions, i, n, nbits, and pbuf.

Referenced by THnSparse::GetBinContent().

ULong64_t THnSparseCoordCompression::SetBufferFromCoord ( const Int_t coord_in,
Char_t buf_out 
) const

Definition at line 146 of file THnSparse.cxx.

References fBitOffsets, fCoordBufferSize, fNdimensions, GetHashFromBuffer(), i, Long64_t, pbuf, and val.

Referenced by THnSparseCompactBinCoord::SetCoord(), and THnSparseCompactBinCoord::UpdateCoord().

Int_t THnSparseCoordCompression::GetNumBits ( Int_t  n  )  const [inline, protected]

Definition at line 62 of file THnSparse.cxx.

Referenced by THnSparseCoordCompression().


Member Data Documentation

Int_t THnSparseCoordCompression::fNdimensions [private]

Definition at line 69 of file THnSparse.cxx.

Referenced by GetNdimensions(), SetBufferFromCoord(), SetCoordFromBuffer(), and THnSparseCoordCompression().

Int_t THnSparseCoordCompression::fCoordBufferSize [private]

Definition at line 70 of file THnSparse.cxx.

Referenced by GetBufferSize(), GetHashFromBuffer(), SetBufferFromCoord(), and THnSparseCoordCompression().

Int_t* THnSparseCoordCompression::fBitOffsets [private]

Definition at line 71 of file THnSparse.cxx.

Referenced by SetBufferFromCoord(), SetCoordFromBuffer(), THnSparseCoordCompression(), and ~THnSparseCoordCompression().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 16:41:38 2011 for ROOT_528-00b_version by  doxygen 1.5.1