nlib
nn::nlib::SmartBitmapPtr< N, BIT > Class Template Referencefinal

The data structure holding bit data operated on by Rank and Select. More...

#include "nn/nlib/SmartBitmap.h"

+ Inheritance diagram for nn::nlib::SmartBitmapPtr< N, BIT >:

Public Types

enum  { ARRAY_SIZE = CrtpBase::WORD_COUNT }
 

Public Member Functions

void Init (BIT *bitmap) noexcept
 Sets a pointer to the bit data. More...
 

Detailed Description

template<size_t N, class BIT = uint32_t>
class nn::nlib::SmartBitmapPtr< N, BIT >

The data structure holding bit data operated on by Rank and Select.

Template Parameters
NThe size of the bit data (N bits).
Description
Holds the pointer to the bit data in a data member. Suited for situations where you want to use bit data that is statically present elsewhere. Note that the bit data in words must be arranged in order from the least significant bit.

Definition at line 162 of file SmartBitmap.h.

Member Enumeration Documentation

template<size_t N, class BIT = uint32_t>
anonymous enum

anonymous enum

Enumerator
ARRAY_SIZE 

The size required for the bit data (in number of words).

Definition at line 167 of file SmartBitmap.h.

Member Function Documentation

template<size_t N, class BIT = uint32_t>
nn::nlib::SmartBitmapPtr< N, BIT >::Init ( BIT *  bitmap)
inlinenoexcept

Sets a pointer to the bit data.

Parameters
[in]bitmapA pointer to the bit data. The size must be SmartBitmapPtr::ARRAY_SIZE words.

Definition at line 170 of file SmartBitmap.h.


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