Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

atlas::bitset::BaseSize< n > Class Template Reference

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

#include <bitset.h>

List of all members.

Static Public Attributes

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


Detailed Description

template<size_t n>
class 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.

Definition at line 766 of file bitset.h.


Member Data Documentation

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

Definition at line 768 of file bitset.h.


The documentation for this class was generated from the following file:
Generated on Wed Mar 26 16:52:19 2008 for atlas by  doxygen 1.3.9.1