PPL Logo

fixedlength_bitvector< NUM_BITS > Class Template Reference

Fast, fixed-size bitvector class. More...

#include <msa-DistPageMgr.h>

Inheritance diagram for fixedlength_bitvector< NUM_BITS >:

Inheritance graph
[legend]
Collaboration diagram for fixedlength_bitvector< NUM_BITS >:

Collaboration graph
[legend]

Public Types

enum  { store_bits = 8*sizeof(store_t) }
enum  { len = (NUM_BITS+(store_bits-1))/store_bits }
 Number of store_t's in our vector. More...
typedef unsigned long store_t
 Data type used to store actual bits in the vector.

Public Member Functions

 fixedlength_bitvector ()
void fill (store_t s)
 Fill the entire vector with this value.
void reset (void)
void set (unsigned int i)
 Set-to-1 bit i of the vector.
void reset (unsigned int i)
 Clear-to-0 bit i of the vector.
bool test (unsigned int i)
 Return the i'th bit of the vector.

Data Fields

store_t store [len]

Detailed Description

template<unsigned int NUM_BITS>
class fixedlength_bitvector< NUM_BITS >

Fast, fixed-size bitvector class.

Definition at line 83 of file msa-DistPageMgr.h.


Member Typedef Documentation

template<unsigned int NUM_BITS>
typedef unsigned long fixedlength_bitvector< NUM_BITS >::store_t

Data type used to store actual bits in the vector.

Definition at line 86 of file msa-DistPageMgr.h.


Member Enumeration Documentation

template<unsigned int NUM_BITS>
anonymous enum

Enumerator:
store_bits 

Definition at line 87 of file msa-DistPageMgr.h.

template<unsigned int NUM_BITS>
anonymous enum

Number of store_t's in our vector.

Enumerator:
len 

Definition at line 90 of file msa-DistPageMgr.h.


Constructor & Destructor Documentation

template<unsigned int NUM_BITS>
fixedlength_bitvector< NUM_BITS >::fixedlength_bitvector (  )  [inline]

Definition at line 93 of file msa-DistPageMgr.h.


Member Function Documentation

template<unsigned int NUM_BITS>
void fixedlength_bitvector< NUM_BITS >::fill ( store_t  s  )  [inline]

Fill the entire vector with this value.

Definition at line 96 of file msa-DistPageMgr.h.

Referenced by fixedlength_bitvector< ENTRIES_PER_PAGE >::reset().

Here is the caller graph for this function:

template<unsigned int NUM_BITS>
void fixedlength_bitvector< NUM_BITS >::reset ( void   )  [inline]

Definition at line 100 of file msa-DistPageMgr.h.

Referenced by fixedlength_bitvector< ENTRIES_PER_PAGE >::fixedlength_bitvector().

Here is the caller graph for this function:

template<unsigned int NUM_BITS>
void fixedlength_bitvector< NUM_BITS >::set ( unsigned int  i  )  [inline]

Set-to-1 bit i of the vector.

Definition at line 103 of file msa-DistPageMgr.h.

template<unsigned int NUM_BITS>
void fixedlength_bitvector< NUM_BITS >::reset ( unsigned int  i  )  [inline]

Clear-to-0 bit i of the vector.

Definition at line 106 of file msa-DistPageMgr.h.

template<unsigned int NUM_BITS>
bool fixedlength_bitvector< NUM_BITS >::test ( unsigned int  i  )  [inline]

Return the i'th bit of the vector.

Definition at line 109 of file msa-DistPageMgr.h.


Field Documentation

template<unsigned int NUM_BITS>
store_t fixedlength_bitvector< NUM_BITS >::store[len]

Definition at line 91 of file msa-DistPageMgr.h.


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

Generated on Mon Sep 21 08:25:02 2020 for Charm++ by  doxygen 1.5.5