16#ifndef ArrOfBit_included
17#define ArrOfBit_included
26template <
typename _SIZE_>
30 Declare_instanciable_sans_constructeur_ni_destructeur_32_64(
ArrOfBit_32_64);
58template <
typename _SIZE_>
61 assert(e >= 0 && e <
taille);
62 unsigned int i = (
unsigned int) e;
65 int resultat = ((x & flag) != 0) ? 1 : 0;
72template <
typename _SIZE_>
75 assert(e >= 0 && e <
taille);
76 unsigned int i = (
unsigned int) e;
84template <
typename _SIZE_>
87 assert(e >= 0 && e <
taille);
88 unsigned int i = (
unsigned int) e;
91 unsigned int old =
data[index];
92 data[index] = old | flag;
93 return ((old & flag) != 0) ? 1 : 0;
99template <
typename _SIZE_>
102 assert(e >= 0 && e <
taille);
103 unsigned int i = (
unsigned int) e;
int_t calculer_int_size(int_t taille) const
Size in "int" units of the array required to store a bit array of the given size.
int operator[](int_t i) const
Returns 1 if bit e is set, 0 otherwise.
int_t size_array() const
Returns the size of the array in bits.
int testsetbit(int_t i) const
Returns the value of bit e, then sets bit e to 1.
ArrOfBit_32_64 & operator=(int_t i)
If the value is non-zero, sets all elements of the array to 1; otherwise sets them to 0.
ArrOfBit_32_64 & operator=(const ArrOfBit_32_64 &array)
Copy operator (deep copy).
static constexpr unsigned int DRAPEAUX_INT
ArrOfBit_32_64(int_t n=0)
Constructor for an array of size n, uninitialized.
ArrOfBit_32_64 & resize_array(int_t n)
Changes the size of the array and copies existing data.
ArrOfBit_32_64(const ArrOfBit_32_64 &array)
Copy constructor (deep copy).
void setbit(int_t i) const
Set bit e to 1.
void clearbit(int_t i) const
Set bit e to 0.
static constexpr unsigned int SIZE_OF_INT_BITS
~ArrOfBit_32_64() override
Destructor.
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...