atlas  0.6
Static Public Attributes | List of all members
atlas::bitset::BaseSize< n > Struct Template Reference

The class BaseSize computes (with its member 'value') the base size. More...

#include <bitset.h>

Static Public Attributes

static const size_t value = (n + constants::posBits)/constants::longBits
 

Detailed Description

template<size_t n>
struct atlas::bitset::BaseSize< n >

The class BaseSize computes (with its member 'value') the base size.

Essentially we must divide n by longBits, but the fractional result must be rounded up to the next integer; this is achieved by adding constants::posBits=longBits-1 to n before performing the division. Code simplified by MvL.

Member Data Documentation

template<size_t n>
const size_t atlas::bitset::BaseSize< n >::value = (n + constants::posBits)/constants::longBits
static

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