PPL Logo

ck::FixedArrayIndexCompressor Class Reference

#include <ckarrayindex.h>

Inheritance diagram for ck::FixedArrayIndexCompressor:

Inheritance graph
[legend]
Collaboration diagram for ck::FixedArrayIndexCompressor:

Collaboration graph
[legend]

Public Member Functions

CmiUInt8 compress (const CkArrayIndex &idx)
 Pack the bits of.
CkArrayIndex decompress (CmiUInt8 id)

Static Public Member Functions

static FixedArrayIndexCompressormake (const CkArrayIndex &bounds)
 Factory that checks whether a bit-packing compression is possible given.

Private Member Functions

 FixedArrayIndexCompressor (char dims, char *bits)

Static Private Member Functions

static unsigned int bitCount (int bound)
 Compute the number of bits to represent integer indices in the range [0.

Private Attributes

char bitsPerDim [6]
char dims

Detailed Description

Definition at line 360 of file ckarrayindex.h.


Constructor & Destructor Documentation

ck::FixedArrayIndexCompressor::FixedArrayIndexCompressor ( char  dims,
char *  bits 
) [inline, private]

Definition at line 428 of file ckarrayindex.h.

References bitsPerDim.

Referenced by make().

Here is the caller graph for this function:


Member Function Documentation

static FixedArrayIndexCompressor* ck::FixedArrayIndexCompressor::make ( const CkArrayIndex &  bounds  )  [inline, static]

Factory that checks whether a bit-packing compression is possible given.

  • bounds

Definition at line 364 of file ckarrayindex.h.

References PUP::b, bitCount(), dims, and FixedArrayIndexCompressor().

Referenced by CkLocMgr::CkLocMgr(), and CkLocMgr::pup().

Here is the call graph for this function:

Here is the caller graph for this function:

CmiUInt8 ck::FixedArrayIndexCompressor::compress ( const CkArrayIndex &  idx  )  [inline, virtual]

Pack the bits of.

Implements ck::ArrayIndexCompressor.

Definition at line 387 of file ckarrayindex.h.

References bitsPerDim, and dims.

CkArrayIndex ck::FixedArrayIndexCompressor::decompress ( CmiUInt8  id  )  [inline, virtual]

Implements ck::ArrayIndexCompressor.

Definition at line 403 of file ckarrayindex.h.

References bitsPerDim, and dims.

static unsigned int ck::FixedArrayIndexCompressor::bitCount ( int  bound  )  [inline, static, private]

Compute the number of bits to represent integer indices in the range [0.

.bound). Essentially, ceil(log2(bound)).

Definition at line 436 of file ckarrayindex.h.

Referenced by make().

Here is the caller graph for this function:


Field Documentation

Definition at line 431 of file ckarrayindex.h.

Referenced by compress(), decompress(), and FixedArrayIndexCompressor().

Definition at line 432 of file ckarrayindex.h.

Referenced by compress(), decompress(), and make().


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:33:34 2020 for Charm++ by  doxygen 1.5.5