GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > RIM / V1-0-0

Constituent: rim     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

RIM_number.ic File Reference

Static inline functions that calculate some numerical values. More...

#include "RIM/RIM.h"
#include "RIM_AG_number_s.h"
#include <string.h>

Include dependency graph for RIM_number.ic:

This graph shows which files directly or indirectly include this file:


Functions

static size_t sizeofMap (RIM_type type)
 Return the size of the 32-bit word bit-map that would hold enough bits to map all the instances of this type.
static void clearMap (unsigned *map, RIM_type type)
 Set all bits of a map to zero.
static void setMap (unsigned *map, RIM_type type)
 Set all bits of a map to one.
static unsigned countMap (const unsigned *map, RIM_type type)
 Count the number of set bits in a map.
static void setBit (unsigned *map, unsigned i)
 Set a bit in a map.
static void clearBit (unsigned *map, unsigned i)
 Clear a bit in a map.
static int checkBit (const unsigned *map, unsigned i)
 Check a bit in a map.

Detailed Description

Static inline functions that calculate some numerical values.

Author:
James Swain & Owen Saxton
Id
RIM_number.ic,v 1.1 2007/03/16 19:27:59 saxton Exp

Function Documentation

int checkBit const unsigned *  map,
unsigned  i
[inline, static]
 

Check a bit in a map.

Parameters:
map Map being manipulated
i Bit to check
Returns:
Value of the bit being checked (0/1)

void clearBit unsigned *  map,
unsigned  i
[inline, static]
 

Clear a bit in a map.

Parameters:
map Map being manipulated
i Bit number to clear

void clearMap unsigned *  map,
RIM_type  type
[inline, static]
 

Set all bits of a map to zero.

Parameters:
map Map being manipulated
type Component type to be mapped

unsigned countMap const unsigned *  map,
RIM_type  type
[inline, static]
 

Count the number of set bits in a map.

Parameters:
map Map being manipulated
type Component type to be mapped
Returns:
Number of set bits

void setBit unsigned *  map,
unsigned  i
[inline, static]
 

Set a bit in a map.

Parameters:
map Map being manipulated
i Bit number to set

void setMap unsigned *  map,
RIM_type  type
[inline, static]
 

Set all bits of a map to one.

Parameters:
map Map being manipulated
type Component type to be mapped

size_t sizeofMap RIM_type  type  )  [inline, static]
 

Return the size of the 32-bit word bit-map that would hold enough bits to map all the instances of this type.

Parameters:
type Component type to be mapped
Returns:
Corresponding map size.


Generated on Fri Jun 15 02:03:40 2007 by  doxygen 1.4.4