atlas  0.6
Static Public Attributes | Static Private Member Functions | Static Private Attributes | List of all members
atlas::constants Struct Reference

#include <constants.h>

Collaboration diagram for atlas::constants:
Collaboration graph
[legend]

Static Public Attributes

static const unsigned charBits = std::numeric_limits<unsigned char>::digits
 
static const unsigned char ucharMax = ~0
 
static const unsigned longBits = std::numeric_limits<unsigned long>::digits
 
static const unsigned sizeBits = std::numeric_limits<size_t>::digits
 
static const unsigned long hiBit = 1ul << (longBits - 1)
 
static const unsigned long firstCharMask = (1ul << charBits) - 1
 
static const unsigned long posBits = longBits - 1
 
static const unsigned long baseBits = ~posBits
 
static const unsigned long baseShift = aux::BaseShift<longBits>::value
 
static unsigned long bitMask [longBits]
 
static unsigned char firstbit [1ul<< charBits]
 
static unsigned char lastbit [1ul<< charBits]
 
static unsigned long leqMask [longBits]
 
static unsigned long lMask [longBits+1]
 
static const size_t RANK_MAX = 32
 

Static Private Member Functions

static constants init ()
 

Static Private Attributes

static const constants dummy = constants::init()
 

Member Function Documentation

constants atlas::constants::init ( )
staticprivate

Member Data Documentation

const unsigned long atlas::constants::baseBits = ~posBits
static
const unsigned long atlas::constants::baseShift = aux::BaseShift<longBits>::value
static
unsigned long atlas::constants::bitMask
static
const unsigned atlas::constants::charBits = std::numeric_limits<unsigned char>::digits
static
const constants atlas::constants::dummy = constants::init()
staticprivate
unsigned char atlas::constants::firstbit
static
const unsigned long atlas::constants::firstCharMask = (1ul << charBits) - 1
static
const unsigned long atlas::constants::hiBit = 1ul << (longBits - 1)
static
unsigned char atlas::constants::lastbit
static
unsigned long atlas::constants::leqMask
static
unsigned long atlas::constants::lMask
static
const unsigned atlas::constants::longBits = std::numeric_limits<unsigned long>::digits
static
const unsigned long atlas::constants::posBits = longBits - 1
static
const size_t atlas::constants::RANK_MAX = 32
static

Implementation bound on rank of reductive group, used to allow working with fixed-size bit-arrays or char-arrays. Should (probably) be a power of 2, not exceeding 128 (assumption in Weyl group implementation).

const unsigned atlas::constants::sizeBits = std::numeric_limits<size_t>::digits
static
const unsigned char atlas::constants::ucharMax = ~0
static

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