AGX Dynamics  2.37.2.0
BitArray.h File Reference
#include <agx/macros.h>
#include <stdlib.h>
#include <memory.h>

Go to the source code of this file.

Classes

class  agx::BitArray< NUM_BITS >
 Class for stack-storage of a (at compile time) specified number of bits with a minimal size of storage. More...
 
class  agx::BitArray< NUM_BITS >::const_reference
 Class which is a reference into an existing bitarray. More...
 
class  agx::BitArray< NUM_BITS >::reference
 Class which is a reference into an existing bitarray. More...
 

Namespaces

 agx
 The agx namespace contains the dynamics/math part of the AGX Dynamics API.
 

Macros

#define BITARRAY_BIT_INDEX(bit)   ((bit) / CHAR_BIT)
 
#define BITARRAY_BIT_MASK(bit)   (1 << (bit % CHAR_BIT))
 
#define CHAR_BIT   8
 

Macro Definition Documentation

◆ BITARRAY_BIT_INDEX

#define BITARRAY_BIT_INDEX (   bit)    ((bit) / CHAR_BIT)

Definition at line 34 of file BitArray.h.

Referenced by agx::BitArray< NUM_ELEMENTS >::get().

◆ BITARRAY_BIT_MASK

#define BITARRAY_BIT_MASK (   bit)    (1 << (bit % CHAR_BIT))

Definition at line 37 of file BitArray.h.

Referenced by agx::BitArray< NUM_ELEMENTS >::set().

◆ CHAR_BIT

#define CHAR_BIT   8